summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2014-08-21 17:48:45 -0700
committerCarl Lerche <me@carllerche.com>2014-08-21 17:48:45 -0700
commitf4b9966038514458c65028a2569f9bb69e67aac7 (patch)
treef7be5158de832df37eee9b5edf1a8762ce78a715 /src/fcntl.rs
parent2abaad5fbce61ec566a244c1d2eae2bc3aa5fd5b (diff)
downloadnix-f4b9966038514458c65028a2569f9bb69e67aac7.zip
Fix O_* flags for Darwin. Minor kqueue tweaks.
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs38
1 files changed, 17 insertions, 21 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index 80290aec..9f3c28db 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -157,27 +157,23 @@ mod consts {
bitflags!(
flags OFlag: c_int {
- static O_ACCMODE = 0o00000003,
- static O_RDONLY = 0o00000000,
- static O_WRONLY = 0o00000001,
- static O_RDWR = 0o00000002,
- static O_CREAT = 0o00000100,
- static O_EXCL = 0o00000200,
- static O_NOCTTY = 0o00000400,
- static O_TRUNC = 0o00001000,
- static O_APPEND = 0o00002000,
- static O_NONBLOCK = 0o00004000,
- static O_DSYNC = 0o00010000,
- static O_DIRECT = 0o00040000,
- static O_LARGEFILE = 0o00100000,
- static O_DIRECTORY = 0o00200000,
- static O_NOFOLLOW = 0o00400000,
- static O_NOATIME = 0o01000000,
- static O_CLOEXEC = 0o02000000,
- static O_SYNC = 0o04000000,
- static O_PATH = 0o10000000,
- static O_TMPFILE = 0o20000000,
- static O_NDELAY = O_NONBLOCK.bits
+ static O_ACCMODE = 0x0000003,
+ static O_RDONLY = 0x0000000,
+ static O_WRONLY = 0x0000001,
+ static O_RDWR = 0x0000002,
+ static O_CREAT = 0x0000200,
+ static O_EXCL = 0x0000800,
+ static O_NOCTTY = 0x0020000,
+ static O_TRUNC = 0x0000400,
+ static O_APPEND = 0x0000008,
+ static O_NONBLOCK = 0x0000004,
+ static O_DSYNC = 0x0400000,
+ static O_DIRECTORY = 0x0100000,
+ static O_NOFOLLOW = 0x0000100,
+ static O_CLOEXEC = 0x1000000,
+ static O_SYNC = 0x0000080,
+ static O_NDELAY = O_NONBLOCK.bits,
+ static O_FSYNC = O_SYNC.bits
}
)