@@ -532,6 +532,7 @@ pub const O_SYMLINK: c_int = 0x4000_0000;
532532// Negative to allow it to be used as int
533533// FIXME(redox): Fix negative values missing from includes
534534pub const O_NOFOLLOW : c_int = -0x8000_0000 ;
535+ pub const O_NOCTTY : c_int = 0x00000200 ;
535536
536537// locale.h
537538pub const LC_ALL : c_int = 0 ;
@@ -626,6 +627,15 @@ pub const PTHREAD_RWLOCK_INITIALIZER: crate::pthread_rwlock_t = crate::pthread_r
626627} ;
627628pub const PTHREAD_STACK_MIN : size_t = 4096 ;
628629
630+ // sys/resource.h
631+ pub const RLIM_INFINITY : u64 = !0 ;
632+ pub const RLIM_SAVED_CUR : u64 = RLIM_INFINITY ;
633+ pub const RLIM_SAVED_MAX : u64 = RLIM_INFINITY ;
634+ pub const RUSAGE_SELF : c_int = 0 ;
635+ pub const RUSAGE_CHILDREN : c_int = -1 ;
636+ pub const RUSAGE_BOTH : c_int = -2 ;
637+ pub const RUSAGE_THREAD : c_int = 1 ;
638+
629639// signal.h
630640pub const SIG_BLOCK : c_int = 0 ;
631641pub const SIG_UNBLOCK : c_int = 1 ;
@@ -935,6 +945,8 @@ pub const TCSANOW: c_int = 0;
935945pub const TCSADRAIN : c_int = 1 ;
936946pub const TCSAFLUSH : c_int = 2 ;
937947
948+ pub const _POSIX_VDISABLE: crate :: cc_t = 0 ;
949+
938950// sys/wait.h
939951pub const WNOHANG : c_int = 1 ;
940952pub const WUNTRACED : c_int = 2 ;
@@ -984,6 +996,11 @@ pub const R_OK: c_int = 4;
984996pub const W_OK : c_int = 2 ;
985997pub const X_OK : c_int = 1 ;
986998
999+ // stdio.h
1000+ pub const BUFSIZ : c_uint = 1024 ;
1001+ pub const _IOFBF: c_int = 0 ;
1002+ pub const _IOLBF: c_int = 1 ;
1003+ pub const _IONBF: c_int = 2 ;
9871004pub const SEEK_SET : c_int = 0 ;
9881005pub const SEEK_CUR : c_int = 1 ;
9891006pub const SEEK_END : c_int = 2 ;
@@ -1096,6 +1113,9 @@ extern "C" {
10961113 pub fn __errno_location ( ) -> * mut c_int ;
10971114 pub fn strerror_r ( errnum : c_int , buf : * mut c_char , buflen : size_t ) -> c_int ;
10981115
1116+ // dirent.h
1117+ pub fn dirfd ( dirp : * mut crate :: DIR ) -> c_int ;
1118+
10991119 // unistd.h
11001120 pub fn pipe2 ( fds : * mut c_int , flags : c_int ) -> c_int ;
11011121 pub fn getdtablesize ( ) -> c_int ;
0 commit comments