commit | 6207166bc9d0f0a1be01de2b37b06fc20eed0195 | [log] [tgz] |
---|---|---|
author | Mathias Svensson <idolf@pwnies.dk> | Sun Jan 29 02:45:40 2017 +0100 |
committer | Mathias Svensson <idolf@pwnies.dk> | Sun Jan 29 02:49:09 2017 +0100 |
tree | 7356b12359dc33457a0d1fc1e2f912dd8b4a92b3 | |
parent | bce927b36878cd7ed708447b79b4e8ad87b39246 [diff] |
Add O_TMPFILE constant
diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index 9e0916a..8ee7cf8 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs
@@ -253,6 +253,7 @@ pub const O_RDONLY: ::c_int = 0; pub const O_WRONLY: ::c_int = 1; pub const O_RDWR: ::c_int = 2; +pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY; pub const SOCK_CLOEXEC: ::c_int = O_CLOEXEC;