File tree 5 files changed +12
-0
lines changed
5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ pub const PTHREAD_STACK_MIN: ::size_t = 1024;
138
138
pub const SIGSTKSZ : :: size_t = 40960 ;
139
139
pub const MADV_INVAL : :: c_int = 10 ;
140
140
pub const O_CLOEXEC : :: c_int = 0x00020000 ;
141
+ pub const O_DIRECTORY : :: c_int = 0x08000000 ;
141
142
pub const F_GETLK : :: c_int = 7 ;
142
143
pub const F_SETLK : :: c_int = 8 ;
143
144
pub const F_SETLKW : :: c_int = 9 ;
Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ pub const SF_NODISKIO: ::c_int = 0x00000001;
139
139
pub const SF_MNOWAIT : :: c_int = 0x00000002 ;
140
140
pub const SF_SYNC : :: c_int = 0x00000004 ;
141
141
pub const O_CLOEXEC : :: c_int = 0x00100000 ;
142
+ pub const O_DIRECTORY : :: c_int = 0x00020000 ;
143
+ pub const O_EXEC : :: c_int = 0x00040000 ;
144
+ pub const O_TTY_INIT : :: c_int = 0x00080000 ;
142
145
pub const F_GETLK : :: c_int = 11 ;
143
146
pub const F_SETLK : :: c_int = 12 ;
144
147
pub const F_SETLKW : :: c_int = 13 ;
Original file line number Diff line number Diff line change @@ -273,6 +273,8 @@ pub const L_tmpnam: ::c_uint = 1024;
273
273
pub const TMP_MAX : :: c_uint = 308915776 ;
274
274
275
275
pub const O_NOCTTY : :: c_int = 32768 ;
276
+ pub const O_DIRECT : :: c_int = 0x00010000 ;
277
+
276
278
pub const S_IFIFO : mode_t = 4096 ;
277
279
pub const S_IFCHR : mode_t = 8192 ;
278
280
pub const S_IFBLK : mode_t = 24576 ;
Original file line number Diff line number Diff line change @@ -271,6 +271,8 @@ pub const O_ALT_IO: ::c_int = 0x40000;
271
271
pub const O_NOSIGPIPE : :: c_int = 0x1000000 ;
272
272
pub const O_SEARCH : :: c_int = 0x800000 ;
273
273
pub const O_DIRECTORY : :: c_int = 0x200000 ;
274
+ pub const O_DIRECT : :: c_int = 0x00080000 ;
275
+ pub const O_RSYNC : :: c_int = 0x00020000 ;
274
276
275
277
pub const MS_SYNC : :: c_int = 0x4 ;
276
278
pub const MS_INVALIDATE : :: c_int = 0x2 ;
Original file line number Diff line number Diff line change
1
+ use unix:: bsd:: O_SYNC ;
2
+
1
3
pub type clock_t = i64 ;
2
4
pub type suseconds_t = :: c_long ;
3
5
pub type dev_t = i32 ;
@@ -140,6 +142,8 @@ pub const UT_LINESIZE: usize = 8;
140
142
pub const UT_HOSTSIZE : usize = 256 ;
141
143
142
144
pub const O_CLOEXEC : :: c_int = 0x10000 ;
145
+ pub const O_DIRECTORY : :: c_int = 0x20000 ;
146
+ pub const O_RSYNC : :: c_int = O_SYNC ;
143
147
144
148
pub const MS_SYNC : :: c_int = 0x0002 ;
145
149
pub const MS_INVALIDATE : :: c_int = 0x0004 ;
You can’t perform that action at this time.
0 commit comments