Skip to content

Commit 43f1d3f

Browse files
committed
Auto merge of #504 - Idolf:tmpfile, r=alexcrichton
Add O_TMPFILE constant
2 parents bce927b + 6207166 commit 43f1d3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ pub const RUSAGE_SELF: ::c_int = 0;
253253
pub const O_RDONLY: ::c_int = 0;
254254
pub const O_WRONLY: ::c_int = 1;
255255
pub const O_RDWR: ::c_int = 2;
256+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
256257

257258
pub const SOCK_CLOEXEC: ::c_int = O_CLOEXEC;
258259

0 commit comments

Comments
 (0)