Add O_RSYNC for NetBSD and OpenBSD
This commit is contained in:
parent
cad9a69cf7
commit
8394276be0
@ -272,6 +272,7 @@ 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;
|
||||
|
@ -141,6 +141,7 @@ 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…
Reference in New Issue
Block a user