Auto merge of #624 - equal-l2:add-bsd-flag, r=alexcrichton
Add BSD flags
This commit is contained in:
commit
299e3f6e66
@ -138,6 +138,7 @@ pub const PTHREAD_STACK_MIN: ::size_t = 1024;
|
||||
pub const SIGSTKSZ: ::size_t = 40960;
|
||||
pub const MADV_INVAL: ::c_int = 10;
|
||||
pub const O_CLOEXEC: ::c_int = 0x00020000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x08000000;
|
||||
pub const F_GETLK: ::c_int = 7;
|
||||
pub const F_SETLK: ::c_int = 8;
|
||||
pub const F_SETLKW: ::c_int = 9;
|
||||
|
@ -139,6 +139,9 @@ pub const SF_NODISKIO: ::c_int = 0x00000001;
|
||||
pub const SF_MNOWAIT: ::c_int = 0x00000002;
|
||||
pub const SF_SYNC: ::c_int = 0x00000004;
|
||||
pub const O_CLOEXEC: ::c_int = 0x00100000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x00020000;
|
||||
pub const O_EXEC: ::c_int = 0x00040000;
|
||||
pub const O_TTY_INIT: ::c_int = 0x00080000;
|
||||
pub const F_GETLK: ::c_int = 11;
|
||||
pub const F_SETLK: ::c_int = 12;
|
||||
pub const F_SETLKW: ::c_int = 13;
|
||||
|
@ -273,6 +273,8 @@ pub const L_tmpnam: ::c_uint = 1024;
|
||||
pub const TMP_MAX: ::c_uint = 308915776;
|
||||
|
||||
pub const O_NOCTTY: ::c_int = 32768;
|
||||
pub const O_DIRECT: ::c_int = 0x00010000;
|
||||
|
||||
pub const S_IFIFO: mode_t = 4096;
|
||||
pub const S_IFCHR: mode_t = 8192;
|
||||
pub const S_IFBLK: mode_t = 24576;
|
||||
|
@ -271,6 +271,8 @@ pub const O_ALT_IO: ::c_int = 0x40000;
|
||||
pub const O_NOSIGPIPE: ::c_int = 0x1000000;
|
||||
pub const O_SEARCH: ::c_int = 0x800000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x200000;
|
||||
pub const O_DIRECT : ::c_int = 0x00080000;
|
||||
pub const O_RSYNC : ::c_int = 0x00020000;
|
||||
|
||||
pub const MS_SYNC : ::c_int = 0x4;
|
||||
pub const MS_INVALIDATE : ::c_int = 0x2;
|
||||
|
@ -1,3 +1,5 @@
|
||||
use unix::bsd::O_SYNC;
|
||||
|
||||
pub type clock_t = i64;
|
||||
pub type suseconds_t = ::c_long;
|
||||
pub type dev_t = i32;
|
||||
@ -140,6 +142,8 @@ pub const UT_LINESIZE: usize = 8;
|
||||
pub const UT_HOSTSIZE: usize = 256;
|
||||
|
||||
pub const O_CLOEXEC: ::c_int = 0x10000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x20000;
|
||||
pub const O_RSYNC: ::c_int = O_SYNC;
|
||||
|
||||
pub const MS_SYNC : ::c_int = 0x0002;
|
||||
pub const MS_INVALIDATE : ::c_int = 0x0004;
|
||||
|
Loading…
x
Reference in New Issue
Block a user