File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,9 @@ fn main() {
182
182
cfg. header ( "sys/fsuid.h" ) ;
183
183
cfg. header ( "pty.h" ) ;
184
184
cfg. header ( "shadow.h" ) ;
185
+ if x86_64 {
186
+ cfg. header ( "sys/io.h" ) ;
187
+ }
185
188
}
186
189
187
190
if linux || android || emscripten {
@@ -195,6 +198,8 @@ fn main() {
195
198
cfg. header ( "sys/sendfile.h" ) ;
196
199
cfg. header ( "sys/vfs.h" ) ;
197
200
cfg. header ( "sys/syscall.h" ) ;
201
+ cfg. header ( "sys/personality.h" ) ;
202
+ cfg. header ( "sys/swap.h" ) ;
198
203
if !uclibc {
199
204
cfg. header ( "sys/sysinfo.h" ) ;
200
205
}
Original file line number Diff line number Diff line change @@ -700,6 +700,10 @@ pub const PR_CAP_AMBIENT_RAISE: ::c_int = 2;
700
700
pub const PR_CAP_AMBIENT_LOWER : :: c_int = 3 ;
701
701
pub const PR_CAP_AMBIENT_CLEAR_ALL : :: c_int = 4 ;
702
702
703
+ pub const ITIMER_REAL : :: c_int = 0 ;
704
+ pub const ITIMER_VIRTUAL : :: c_int = 1 ;
705
+ pub const ITIMER_PROF : :: c_int = 2 ;
706
+
703
707
pub const XATTR_CREATE : :: c_int = 0x1 ;
704
708
pub const XATTR_REPLACE : :: c_int = 0x2 ;
705
709
@@ -1036,6 +1040,9 @@ extern {
1036
1040
flags : :: c_int ) -> :: ssize_t ;
1037
1041
pub fn recvmsg ( fd : :: c_int , msg : * mut :: msghdr , flags : :: c_int )
1038
1042
-> :: ssize_t ;
1043
+ pub fn getdomainname ( name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
1044
+ pub fn setdomainname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
1045
+ pub fn vhangup ( ) -> :: c_int ;
1039
1046
}
1040
1047
1041
1048
extern {
Original file line number Diff line number Diff line change @@ -574,4 +574,7 @@ extern {
574
574
argc : :: c_int , ...) ;
575
575
pub fn swapcontext ( uocp : * mut ucontext_t ,
576
576
ucp : * const ucontext_t ) -> :: c_int ;
577
+ pub fn iopl ( level : :: c_int ) -> :: c_int ;
578
+ pub fn ioperm ( from : :: c_ulong , num : :: c_ulong ,
579
+ turn_on : :: c_int ) -> :: c_int ;
577
580
}
Original file line number Diff line number Diff line change @@ -987,9 +987,19 @@ extern {
987
987
pub fn sigsuspend ( mask : * const :: sigset_t ) -> :: c_int ;
988
988
pub fn setreuid ( ruid : :: uid_t , euid : :: uid_t ) -> :: c_int ;
989
989
pub fn setregid ( rgid : :: gid_t , egid : :: gid_t ) -> :: c_int ;
990
+ pub fn getresuid ( ruid : * mut :: uid_t , euid : * mut :: uid_t ,
991
+ suid : * mut :: uid_t ) -> :: c_int ;
992
+ pub fn getresgid ( rgid : * mut :: gid_t , egid : * mut :: gid_t ,
993
+ sgid : * mut :: gid_t ) -> :: c_int ;
994
+ pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
995
+ pub fn swapon ( path : * const :: c_char , swapflags : :: c_int ) -> :: c_int ;
996
+ pub fn swapoff ( puath : * const :: c_char ) -> :: c_int ;
990
997
pub fn acct ( filename : * const :: c_char ) -> :: c_int ;
991
998
pub fn brk ( addr : * mut :: c_void ) -> :: c_int ;
992
999
pub fn sbrk ( increment : :: intptr_t ) -> * mut :: c_void ;
1000
+ pub fn vfork ( ) -> :: pid_t ;
1001
+ pub fn wait4 ( pid : :: pid_t , status : * mut :: c_int , options : :: c_int ,
1002
+ rusage : * mut :: rusage ) -> :: pid_t ;
993
1003
}
994
1004
995
1005
cfg_if ! {
You can’t perform that action at this time.
0 commit comments