java: add O_WRONLY open flag

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2012-10-19 12:20:40 -07:00
parent 712bfa59b9
commit 1c45775a83
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public class CephMount {
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;
/*
* Whence flags for seek().

View File

@ -53,6 +53,7 @@
#define JAVA_O_CREAT 8
#define JAVA_O_TRUNC 16
#define JAVA_O_EXCL 32
#define JAVA_O_WRONLY 64
/*
* Whence flags for seek(). sync with CephMount.java if changed.
@ -94,6 +95,7 @@ static inline int fixup_open_flags(jint jflags)
FIXUP_OPEN_FLAG(O_CREAT)
FIXUP_OPEN_FLAG(O_TRUNC)
FIXUP_OPEN_FLAG(O_EXCL)
FIXUP_OPEN_FLAG(O_WRONLY)
#undef FIXUP_OPEN_FLAG