-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
#include <liblustre.h>
#include "test_common.h"
-#include <lustre/liblustreapi.h>
+#include <lustre/lustreapi.h>
#define _npages (2048)
}
t_fcntl(fd, F_SETFL, O_APPEND);
- if (!(ret = t_fcntl(fd, F_GETFL)) & O_APPEND) {
- printf("error get flag: ret %x\n", ret);
+ ret = t_fcntl(fd, F_GETFL);
+ if ((ret & O_APPEND) == 0) {
+ printf("error get flag: ret %o\n", ret);
return(-1);
}