Skip to content

Commit 8394276

Browse files
committed
Add O_RSYNC for NetBSD and OpenBSD
1 parent cad9a69 commit 8394276

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ pub const O_NOSIGPIPE: ::c_int = 0x1000000;
272272
pub const O_SEARCH: ::c_int = 0x800000;
273273
pub const O_DIRECTORY: ::c_int = 0x200000;
274274
pub const O_DIRECT : ::c_int = 0x00080000;
275+
pub const O_RSYNC : ::c_int = 0x00020000;
275276

276277
pub const MS_SYNC : ::c_int = 0x4;
277278
pub const MS_INVALIDATE : ::c_int = 0x2;

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ pub const UT_HOSTSIZE: usize = 256;
141141

142142
pub const O_CLOEXEC: ::c_int = 0x10000;
143143
pub const O_DIRECTORY: ::c_int = 0x20000;
144+
pub const O_RSYNC: ::c_int = O_SYNC;
144145

145146
pub const MS_SYNC : ::c_int = 0x0002;
146147
pub const MS_INVALIDATE : ::c_int = 0x0004;

0 commit comments

Comments
 (0)