@@ -3311,10 +3311,10 @@ pub const SFD_CLOEXEC: ::c_int = 0x080000;
33113311
33123312pub const NCCS : usize = 32 ;
33133313
3314- pub const O_TRUNC : :: c_int = 512 ;
3315- pub const O_NOATIME : :: c_int = 0o1000000 ;
3316- pub const O_CLOEXEC : :: c_int = 0x80000 ;
3317- pub const O_TMPFILE : :: c_int = 0o20000000 | O_DIRECTORY ;
3314+ pub const O_TRUNC : :: c_int = 0x00040000 ;
3315+ pub const O_NOATIME : :: c_int = 0x00002000 ;
3316+ pub const O_CLOEXEC : :: c_int = 0x00000100 ;
3317+ pub const O_TMPFILE : :: c_int = 0x00004000 ;
33183318
33193319pub const EBFONT : :: c_int = 59 ;
33203320pub const ENOSTR : :: c_int = 60 ;
@@ -3343,10 +3343,10 @@ pub const EFD_CLOEXEC: ::c_int = 0x80000;
33433343pub const BUFSIZ : :: c_uint = 1024 ;
33443344pub const TMP_MAX : :: c_uint = 10000 ;
33453345pub const FOPEN_MAX : :: c_uint = 1000 ;
3346- pub const O_PATH : :: c_int = 0o10000000 ;
3347- pub const O_EXEC : :: c_int = 0o10000000 ;
3348- pub const O_SEARCH : :: c_int = 0o10000000 ;
3349- pub const O_ACCMODE : :: c_int = 0o10000003 ;
3346+ pub const O_PATH : :: c_int = 0x00400000 ;
3347+ pub const O_EXEC : :: c_int = O_PATH ;
3348+ pub const O_SEARCH : :: c_int = O_PATH ;
3349+ pub const O_ACCMODE : :: c_int = ( 03 | O_SEARCH ) ;
33503350pub const O_NDELAY : :: c_int = O_NONBLOCK ;
33513351pub const NI_MAXHOST : :: socklen_t = 255 ;
33523352pub const PTHREAD_STACK_MIN : :: size_t = 2048 ;
@@ -3674,7 +3674,7 @@ s! {
36743674pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56 ;
36753675pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
36763676
3677- pub const O_ASYNC : :: c_int = 0x2000 ;
3677+ pub const O_ASYNC : :: c_int = 0x00000400 ;
36783678
36793679pub const FIOCLEX : :: c_int = 0x5451 ;
36803680pub const FIONBIO : :: c_int = 0x5421 ;
@@ -3685,14 +3685,14 @@ pub const RLIMIT_AS: ::c_int = 9;
36853685pub const RLIMIT_NPROC : :: c_int = 6 ;
36863686pub const RLIMIT_MEMLOCK : :: c_int = 8 ;
36873687
3688- pub const O_APPEND : :: c_int = 1024 ;
3689- pub const O_CREAT : :: c_int = 64 ;
3690- pub const O_EXCL : :: c_int = 128 ;
3691- pub const O_NOCTTY : :: c_int = 256 ;
3692- pub const O_NONBLOCK : :: c_int = 2048 ;
3693- pub const O_SYNC : :: c_int = 1052672 ;
3694- pub const O_RSYNC : :: c_int = 1052672 ;
3695- pub const O_DSYNC : :: c_int = 4096 ;
3688+ pub const O_APPEND : :: c_int = 0x00100000 ;
3689+ pub const O_CREAT : :: c_int = 0x00010000 ;
3690+ pub const O_EXCL : :: c_int = 0x00020000 ;
3691+ pub const O_NOCTTY : :: c_int = 0x00000200 ;
3692+ pub const O_NONBLOCK : :: c_int = 0x00000010 ;
3693+ pub const O_SYNC : :: c_int = ( 0x00000040 | O_DSYNC ) ;
3694+ pub const O_RSYNC : :: c_int = O_SYNC ;
3695+ pub const O_DSYNC : :: c_int = 0x00000020 ;
36963696
36973697pub const SOCK_NONBLOCK : :: c_int = 2048 ;
36983698
@@ -3930,3 +3930,8 @@ cfg_if! {
39303930 // Unknown target_arch
39313931 }
39323932}
3933+
3934+ pub const O_DIRECTORY : :: c_int = 0x00080000 ;
3935+ pub const O_DIRECT : :: c_int = 0x00000800 ;
3936+ pub const O_LARGEFILE : :: c_int = 0x00001000 ;
3937+ pub const O_NOFOLLOW : :: c_int = 0x00000080 ;
0 commit comments