@@ -532,6 +532,7 @@ pub const O_SYMLINK: c_int = 0x4000_0000;
532
532
// Negative to allow it to be used as int
533
533
// FIXME(redox): Fix negative values missing from includes
534
534
pub const O_NOFOLLOW : c_int = -0x8000_0000 ;
535
+ pub const O_NOCTTY : c_int = 0x00000200 ;
535
536
536
537
// locale.h
537
538
pub const LC_ALL : c_int = 0 ;
@@ -626,6 +627,15 @@ pub const PTHREAD_RWLOCK_INITIALIZER: crate::pthread_rwlock_t = crate::pthread_r
626
627
} ;
627
628
pub const PTHREAD_STACK_MIN : size_t = 4096 ;
628
629
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
+
629
639
// signal.h
630
640
pub const SIG_BLOCK : c_int = 0 ;
631
641
pub const SIG_UNBLOCK : c_int = 1 ;
@@ -935,6 +945,8 @@ pub const TCSANOW: c_int = 0;
935
945
pub const TCSADRAIN : c_int = 1 ;
936
946
pub const TCSAFLUSH : c_int = 2 ;
937
947
948
+ pub const _POSIX_VDISABLE: crate :: cc_t = 0 ;
949
+
938
950
// sys/wait.h
939
951
pub const WNOHANG : c_int = 1 ;
940
952
pub const WUNTRACED : c_int = 2 ;
@@ -984,6 +996,11 @@ pub const R_OK: c_int = 4;
984
996
pub const W_OK : c_int = 2 ;
985
997
pub const X_OK : c_int = 1 ;
986
998
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 ;
987
1004
pub const SEEK_SET : c_int = 0 ;
988
1005
pub const SEEK_CUR : c_int = 1 ;
989
1006
pub const SEEK_END : c_int = 2 ;
@@ -1096,6 +1113,9 @@ extern "C" {
1096
1113
pub fn __errno_location ( ) -> * mut c_int ;
1097
1114
pub fn strerror_r ( errnum : c_int , buf : * mut c_char , buflen : size_t ) -> c_int ;
1098
1115
1116
+ // dirent.h
1117
+ pub fn dirfd ( dirp : * mut crate :: DIR ) -> c_int ;
1118
+
1099
1119
// unistd.h
1100
1120
pub fn pipe2 ( fds : * mut c_int , flags : c_int ) -> c_int ;
1101
1121
pub fn getdtablesize ( ) -> c_int ;
0 commit comments