File tree 4 files changed +25
-0
lines changed
4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,9 @@ fn main() {
181
181
cfg. header ( "sys/fsuid.h" ) ;
182
182
cfg. header ( "pty.h" ) ;
183
183
cfg. header ( "shadow.h" ) ;
184
+ if x86_64 {
185
+ cfg. header ( "sys/io.h" ) ;
186
+ }
184
187
}
185
188
186
189
if linux || android {
@@ -194,6 +197,8 @@ fn main() {
194
197
cfg. header ( "sys/sendfile.h" ) ;
195
198
cfg. header ( "sys/vfs.h" ) ;
196
199
cfg. header ( "sys/syscall.h" ) ;
200
+ cfg. header ( "sys/personality.h" ) ;
201
+ cfg. header ( "sys/swap.h" ) ;
197
202
if !uclibc {
198
203
cfg. header ( "sys/sysinfo.h" ) ;
199
204
}
Original file line number Diff line number Diff line change @@ -704,6 +704,10 @@ pub const PR_CAP_AMBIENT_RAISE: ::c_int = 2;
704
704
pub const PR_CAP_AMBIENT_LOWER : :: c_int = 3 ;
705
705
pub const PR_CAP_AMBIENT_CLEAR_ALL : :: c_int = 4 ;
706
706
707
+ pub const ITIMER_REAL : :: c_int = 0 ;
708
+ pub const ITIMER_VIRTUAL : :: c_int = 1 ;
709
+ pub const ITIMER_PROF : :: c_int = 2 ;
710
+
707
711
pub const XATTR_CREATE : :: c_int = 0x1 ;
708
712
pub const XATTR_REPLACE : :: c_int = 0x2 ;
709
713
@@ -1006,6 +1010,9 @@ extern {
1006
1010
flags : :: c_int ) -> :: ssize_t ;
1007
1011
pub fn recvmsg ( fd : :: c_int , msg : * mut :: msghdr , flags : :: c_int )
1008
1012
-> :: ssize_t ;
1013
+ pub fn getdomainname ( name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
1014
+ pub fn setdomainname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
1015
+ pub fn vhangup ( ) -> :: c_int ;
1009
1016
}
1010
1017
1011
1018
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 @@ -989,9 +989,19 @@ extern {
989
989
pub fn sigsuspend ( mask : * const :: sigset_t ) -> :: c_int ;
990
990
pub fn setreuid ( ruid : :: uid_t , euid : :: uid_t ) -> :: c_int ;
991
991
pub fn setregid ( rgid : :: gid_t , egid : :: gid_t ) -> :: c_int ;
992
+ pub fn getresuid ( ruid : * mut :: uid_t , euid : * mut :: uid_t ,
993
+ suid : * mut :: uid_t ) -> :: c_int ;
994
+ pub fn getresgid ( rgid : * mut :: gid_t , egid : * mut :: gid_t ,
995
+ sgid : * mut :: gid_t ) -> :: c_int ;
996
+ pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
997
+ pub fn swapon ( path : * const :: c_char , swapflags : :: c_int ) -> :: c_int ;
998
+ pub fn swapoff ( puath : * const :: c_char ) -> :: c_int ;
992
999
pub fn acct ( filename : * const :: c_char ) -> :: c_int ;
993
1000
pub fn brk ( addr : * mut :: c_void ) -> :: c_int ;
994
1001
pub fn sbrk ( increment : :: intptr_t ) -> * mut :: c_void ;
1002
+ pub fn vfork ( ) -> :: pid_t ;
1003
+ pub fn wait4 ( pid : :: pid_t , status : * mut :: c_int , options : :: c_int ,
1004
+ rusage : * mut :: rusage ) -> :: pid_t ;
995
1005
}
996
1006
997
1007
cfg_if ! {
You can’t perform that action at this time.
0 commit comments