@@ -272,15 +272,9 @@ pub const FILENAME_MAX: ::c_uint = 1024;
272272pub const L_tmpnam : :: c_uint = 1024 ;
273273pub const TMP_MAX : :: c_uint = 308915776 ;
274274
275- pub const O_RDONLY : :: c_int = 0 ;
276- pub const O_WRONLY : :: c_int = 1 ;
277- pub const O_RDWR : :: c_int = 2 ;
278- pub const O_ACCMODE : :: c_int = 3 ;
279- pub const O_APPEND : :: c_int = 8 ;
280- pub const O_CREAT : :: c_int = 512 ;
281- pub const O_EXCL : :: c_int = 2048 ;
282275pub const O_NOCTTY : :: c_int = 32768 ;
283- pub const O_TRUNC : :: c_int = 1024 ;
276+ pub const O_DIRECT : :: c_int = 0x00010000 ;
277+
284278pub const S_IFIFO : mode_t = 4096 ;
285279pub const S_IFCHR : mode_t = 8192 ;
286280pub const S_IFBLK : mode_t = 24576 ;
@@ -452,11 +446,6 @@ pub const F_SETFD: ::c_int = 2;
452446pub const F_GETFL : :: c_int = 3 ;
453447pub const F_SETFL : :: c_int = 4 ;
454448
455- pub const AT_EACCESS : :: c_int = 0x100 ;
456- pub const AT_SYMLINK_NOFOLLOW : :: c_int = 0x200 ;
457- pub const AT_SYMLINK_FOLLOW : :: c_int = 0x400 ;
458- pub const AT_REMOVEDIR : :: c_int = 0x800 ;
459-
460449pub const SIGTRAP : :: c_int = 5 ;
461450
462451pub const GLOB_APPEND : :: c_int = 0x0001 ;
@@ -687,9 +676,6 @@ pub const LOCK_EX: ::c_int = 2;
687676pub const LOCK_NB : :: c_int = 4 ;
688677pub const LOCK_UN : :: c_int = 8 ;
689678
690- pub const O_SYNC : :: c_int = 128 ;
691- pub const O_NONBLOCK : :: c_int = 4 ;
692-
693679pub const MAP_COPY : :: c_int = 0x0002 ;
694680pub const MAP_RENAME : :: c_int = 0x0020 ;
695681pub const MAP_NORESERVE : :: c_int = 0x0040 ;
@@ -876,8 +862,6 @@ pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
876862
877863pub const CRTSCTS : :: tcflag_t = 0x00030000 ;
878864
879- pub const AT_FDCWD : :: c_int = -100 ;
880-
881865f ! {
882866 pub fn WIFCONTINUED ( status: :: c_int) -> bool {
883867 status == 0x13
0 commit comments