Add O_DIRECTORY for FreeBSD, DragonFly, and OpenBSD-like
This commit is contained in:
parent
b88c8f57b9
commit
62c0993210
|
@ -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,7 @@ 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 F_GETLK: ::c_int = 11;
|
||||
pub const F_SETLK: ::c_int = 12;
|
||||
pub const F_SETLKW: ::c_int = 13;
|
||||
|
|
|
@ -140,6 +140,7 @@ 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 MS_SYNC : ::c_int = 0x0002;
|
||||
pub const MS_INVALIDATE : ::c_int = 0x0004;
|
||||
|
|
Loading…
Reference in New Issue