*
* Must be synchronized with JNI if changed.
*/
- public static final int O_RDONLY = 1;
- public static final int O_RDWR = 2;
- public static final int O_APPEND = 4;
- public static final int O_CREAT = 8;
- public static final int O_TRUNC = 16;
- public static final int O_EXCL = 32;
- public static final int O_WRONLY = 64;
+ public static final int O_RDONLY = 1;
+ public static final int O_RDWR = 2;
+ public static final int O_APPEND = 4;
+ public static final int O_CREAT = 8;
+ public static final int O_TRUNC = 16;
+ public static final int O_EXCL = 32;
+ public static final int O_WRONLY = 64;
+ public static final int O_DIRECTORY = 128;
/*
* Whence flags for seek().
* keeping the values in Java and making a cross-JNI up-call to retrieve them,
* and makes it easy to keep any platform specific value changes in this file.
*/
-#define JAVA_O_RDONLY 1
-#define JAVA_O_RDWR 2
-#define JAVA_O_APPEND 4
-#define JAVA_O_CREAT 8
-#define JAVA_O_TRUNC 16
-#define JAVA_O_EXCL 32
-#define JAVA_O_WRONLY 64
+#define JAVA_O_RDONLY 1
+#define JAVA_O_RDWR 2
+#define JAVA_O_APPEND 4
+#define JAVA_O_CREAT 8
+#define JAVA_O_TRUNC 16
+#define JAVA_O_EXCL 32
+#define JAVA_O_WRONLY 64
+#define JAVA_O_DIRECTORY 128
/*
* Whence flags for seek(). sync with CephMount.java if changed.
FIXUP_OPEN_FLAG(O_TRUNC)
FIXUP_OPEN_FLAG(O_EXCL)
FIXUP_OPEN_FLAG(O_WRONLY)
+ FIXUP_OPEN_FLAG(O_DIRECTORY)
#undef FIXUP_OPEN_FLAG