@@ -3460,7 +3460,6 @@ extern {
34603460 pub fn access ( path : * const c_char , amode : :: c_int ) -> :: c_int ;
34613461 pub fn alarm ( seconds : :: c_uint ) -> :: c_uint ;
34623462 pub fn chdir ( dir : * const c_char ) -> :: c_int ;
3463- pub fn fchdir ( dirfd : :: c_int ) -> :: c_int ;
34643463 pub fn chown ( path : * const c_char , uid : uid_t ,
34653464 gid : gid_t ) -> :: c_int ;
34663465 pub fn lchown ( path : * const c_char , uid : uid_t ,
@@ -3570,10 +3569,6 @@ extern {
35703569
35713570 pub fn signal ( signum : :: c_int , handler : sighandler_t ) -> sighandler_t ;
35723571
3573- pub fn getrlimit ( resource : :: c_int , rlim : * mut rlimit ) -> :: c_int ;
3574- pub fn setrlimit ( resource : :: c_int , rlim : * const rlimit ) -> :: c_int ;
3575- pub fn getrusage ( resource : :: c_int , usage : * mut rusage ) -> :: c_int ;
3576-
35773572 pub fn realpath ( pathname : * const :: c_char , resolved : * mut :: c_char )
35783573 -> * mut :: c_char ;
35793574
@@ -3683,7 +3678,6 @@ extern {
36833678 proto : * const :: c_char ) -> * mut servent ;
36843679 pub fn getprotobyname ( name : * const :: c_char ) -> * mut protoent ;
36853680 pub fn getprotobynumber ( proto : :: c_int ) -> * mut protoent ;
3686- pub fn chroot ( name : * const :: c_char ) -> :: c_int ;
36873681 pub fn usleep ( secs : :: c_uint ) -> :: c_int ;
36883682 pub fn send ( socket : :: c_int , buf : * const :: c_void , len : :: size_t ,
36893683 flags : :: c_int ) -> :: ssize_t ;
@@ -3770,16 +3764,13 @@ extern {
37703764 pub fn closelog ( ) ;
37713765 pub fn setlogmask ( maskpri : :: c_int ) -> :: c_int ;
37723766 pub fn syslog ( priority : :: c_int , message : * const :: c_char , ...) ;
3773- pub fn nice ( incr : :: c_int ) -> :: c_int ;
37743767
37753768 pub fn grantpt ( fd : :: c_int ) -> :: c_int ;
37763769 pub fn posix_openpt ( flags : :: c_int ) -> :: c_int ;
37773770 pub fn ptsname ( fd : :: c_int ) -> * mut :: c_char ;
37783771 pub fn unlockpt ( fd : :: c_int ) -> :: c_int ;
37793772
37803773 pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
3781- pub fn mincore ( addr : * mut :: c_void , len : :: size_t ,
3782- vec : * mut :: c_uchar ) -> :: c_int ;
37833774 pub fn clock_getres ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
37843775 pub fn clock_gettime ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
37853776 pub fn clock_settime ( clk_id : :: clockid_t , tp : * const :: timespec ) -> :: c_int ;
@@ -3795,11 +3786,7 @@ extern {
37953786 ptr : * const :: gid_t ) -> :: c_int ;
37963787 pub fn pipe2 ( fds : * mut :: c_int , flags : :: c_int ) -> :: c_int ;
37973788 pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
3798- pub fn statfs64 ( path : * const :: c_char , buf : * mut statfs64 ) -> :: c_int ;
37993789 pub fn fstatfs ( fd : :: c_int , buf : * mut statfs ) -> :: c_int ;
3800- pub fn fstatfs64 ( fd : :: c_int , buf : * mut statfs64 ) -> :: c_int ;
3801- pub fn statvfs64 ( path : * const :: c_char , buf : * mut statvfs64 ) -> :: c_int ;
3802- pub fn fstatvfs64 ( fd : :: c_int , buf : * mut statvfs64 ) -> :: c_int ;
38033790 pub fn memrchr ( cx : * const :: c_void ,
38043791 c : :: c_int ,
38053792 n : :: size_t ) -> * mut :: c_void ;
@@ -3815,43 +3802,6 @@ extern {
38153802 locale : * const :: c_char ,
38163803 base : :: locale_t ) -> :: locale_t ;
38173804 pub fn uselocale ( loc : :: locale_t ) -> :: locale_t ;
3818- pub fn creat64 ( path : * const c_char , mode : mode_t ) -> :: c_int ;
3819- pub fn fstat64 ( fildes : :: c_int , buf : * mut stat64 ) -> :: c_int ;
3820- pub fn fstatat64 ( dirfd : :: c_int , pathname : * const c_char ,
3821- buf : * mut stat64 , flags : :: c_int ) -> :: c_int ;
3822- pub fn ftruncate64 ( fd : :: c_int , length : off64_t ) -> :: c_int ;
3823- pub fn getrlimit64 ( resource : :: c_int , rlim : * mut rlimit64 ) -> :: c_int ;
3824- pub fn lseek64 ( fd : :: c_int , offset : off64_t , whence : :: c_int ) -> off64_t ;
3825- pub fn lstat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
3826- pub fn mmap64 ( addr : * mut :: c_void ,
3827- len : :: size_t ,
3828- prot : :: c_int ,
3829- flags : :: c_int ,
3830- fd : :: c_int ,
3831- offset : off64_t )
3832- -> * mut :: c_void ;
3833- pub fn open64 ( path : * const c_char , oflag : :: c_int , ...) -> :: c_int ;
3834- pub fn openat64 ( fd : :: c_int ,
3835- path : * const c_char ,
3836- oflag : :: c_int , ...) -> :: c_int ;
3837- pub fn pread64 ( fd : :: c_int , buf : * mut :: c_void , count : :: size_t ,
3838- offset : off64_t ) -> :: ssize_t ;
3839- pub fn preadv64 ( fd : :: c_int ,
3840- iov : * const :: iovec ,
3841- iovcnt : :: c_int ,
3842- offset : :: off64_t ) -> :: ssize_t ;
3843- pub fn pwrite64 ( fd : :: c_int , buf : * const :: c_void , count : :: size_t ,
3844- offset : off64_t ) -> :: ssize_t ;
3845- pub fn pwritev64 ( fd : :: c_int ,
3846- iov : * const :: iovec ,
3847- iovcnt : :: c_int ,
3848- offset : :: off64_t ) -> :: ssize_t ;
3849- pub fn readdir64 ( dirp : * mut :: DIR ) -> * mut :: dirent64 ;
3850- pub fn readdir64_r ( dirp : * mut :: DIR , entry : * mut :: dirent64 ,
3851- result : * mut * mut :: dirent64 ) -> :: c_int ;
3852- pub fn setrlimit64 ( resource : :: c_int , rlim : * const rlimit64 ) -> :: c_int ;
3853- pub fn stat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
3854- pub fn truncate64 ( path : * const c_char , length : off64_t ) -> :: c_int ;
38553805
38563806 pub fn fdopendir ( fd : :: c_int ) -> * mut :: DIR ;
38573807
@@ -3861,16 +3811,8 @@ extern {
38613811 clock_id : * mut clockid_t ) -> :: c_int ;
38623812 pub fn pthread_condattr_setclock ( attr : * mut pthread_condattr_t ,
38633813 clock_id : :: clockid_t ) -> :: c_int ;
3864- pub fn pthread_condattr_setpshared ( attr : * mut pthread_condattr_t ,
3865- pshared : :: c_int ) -> :: c_int ;
38663814 pub fn accept4 ( fd : :: c_int , addr : * mut :: sockaddr , len : * mut :: socklen_t ,
38673815 flg : :: c_int ) -> :: c_int ;
3868- pub fn pthread_mutexattr_setpshared ( attr : * mut pthread_mutexattr_t ,
3869- pshared : :: c_int ) -> :: c_int ;
3870- pub fn pthread_rwlockattr_getpshared ( attr : * const pthread_rwlockattr_t ,
3871- val : * mut :: c_int ) -> :: c_int ;
3872- pub fn pthread_rwlockattr_setpshared ( attr : * mut pthread_rwlockattr_t ,
3873- val : :: c_int ) -> :: c_int ;
38743816 pub fn ptsname_r ( fd : :: c_int ,
38753817 buf : * mut :: c_char ,
38763818 buflen : :: size_t ) -> :: c_int ;
@@ -3885,12 +3827,8 @@ extern {
38853827 sgid : * mut :: gid_t ) -> :: c_int ;
38863828 pub fn acct ( filename : * const :: c_char ) -> :: c_int ;
38873829 pub fn brk ( addr : * mut :: c_void ) -> :: c_int ;
3888- pub fn sbrk ( increment : :: intptr_t ) -> * mut :: c_void ;
3889- pub fn vfork ( ) -> :: pid_t ;
38903830 pub fn setresgid ( rgid : :: gid_t , egid : :: gid_t , sgid : :: gid_t ) -> :: c_int ;
38913831 pub fn setresuid ( ruid : :: uid_t , euid : :: uid_t , suid : :: uid_t ) -> :: c_int ;
3892- pub fn wait4 ( pid : :: pid_t , status : * mut :: c_int , options : :: c_int ,
3893- rusage : * mut :: rusage ) -> :: pid_t ;
38943832 pub fn openpty ( amaster : * mut :: c_int ,
38953833 aslave : * mut :: c_int ,
38963834 name : * mut :: c_char ,
@@ -3903,30 +3841,12 @@ extern {
39033841 -> :: c_int ;
39043842
39053843 pub fn ioctl ( fd : :: c_int , request : :: c_int , ...) -> :: c_int ;
3906- pub fn ptrace ( request : :: c_int , ...) -> :: c_long ;
3907- pub fn getpriority ( which : :: c_int , who : :: id_t ) -> :: c_int ;
3908- pub fn setpriority ( which : :: c_int , who : :: id_t , prio : :: c_int ) -> :: c_int ;
3909-
3910- pub fn aio_read ( aiocbp : * mut aiocb ) -> :: c_int ;
3911- pub fn aio_write ( aiocbp : * mut aiocb ) -> :: c_int ;
3912- pub fn aio_fsync ( op : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3913- pub fn aio_error ( aiocbp : * const aiocb ) -> :: c_int ;
3914- pub fn aio_return ( aiocbp : * mut aiocb ) -> :: ssize_t ;
3915- pub fn aio_suspend ( aiocb_list : * const * const aiocb , nitems : :: c_int ,
3916- timeout : * const :: timespec ) -> :: c_int ;
3917- pub fn aio_cancel ( fd : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3918- pub fn lio_listio ( mode : :: c_int , aiocb_list : * const * mut aiocb ,
3919- nitems : :: c_int , sevp : * mut :: sigevent ) -> :: c_int ;
39203844
39213845 pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
39223846
39233847 pub fn setpwent ( ) ;
39243848 pub fn endpwent ( ) ;
39253849 pub fn getpwent ( ) -> * mut passwd ;
3926- pub fn setspent ( ) ;
3927- pub fn endspent ( ) ;
3928- pub fn getspent ( ) -> * mut spwd ;
3929- pub fn getspnam ( __name : * const :: c_char ) -> * mut spwd ;
39303850
39313851 pub fn shm_open ( name : * const c_char , oflag : :: c_int ,
39323852 mode : mode_t ) -> :: c_int ;
@@ -3957,47 +3877,12 @@ extern {
39573877 -> :: c_int ;
39583878 pub fn __errno_location ( ) -> * mut :: c_int ;
39593879
3960- pub fn fopen64 ( filename : * const c_char ,
3961- mode : * const c_char ) -> * mut :: FILE ;
3962- pub fn freopen64 ( filename : * const c_char , mode : * const c_char ,
3963- file : * mut :: FILE ) -> * mut :: FILE ;
3964- pub fn tmpfile64 ( ) -> * mut :: FILE ;
3965- pub fn fgetpos64 ( stream : * mut :: FILE , ptr : * mut fpos64_t ) -> :: c_int ;
3966- pub fn fsetpos64 ( stream : * mut :: FILE , ptr : * const fpos64_t ) -> :: c_int ;
3967- pub fn fseeko64 ( stream : * mut :: FILE ,
3968- offset : :: off64_t ,
3969- whence : :: c_int ) -> :: c_int ;
3970- pub fn ftello64 ( stream : * mut :: FILE ) -> :: off64_t ;
39713880 pub fn fallocate ( fd : :: c_int , mode : :: c_int ,
39723881 offset : :: off_t , len : :: off_t ) -> :: c_int ;
39733882 pub fn posix_fallocate ( fd : :: c_int , offset : :: off_t ,
39743883 len : :: off_t ) -> :: c_int ;
39753884 pub fn readahead ( fd : :: c_int , offset : :: off64_t ,
39763885 count : :: size_t ) -> :: ssize_t ;
3977- pub fn getxattr ( path : * const c_char , name : * const c_char ,
3978- value : * mut :: c_void , size : :: size_t ) -> :: ssize_t ;
3979- pub fn lgetxattr ( path : * const c_char , name : * const c_char ,
3980- value : * mut :: c_void , size : :: size_t ) -> :: ssize_t ;
3981- pub fn fgetxattr ( filedes : :: c_int , name : * const c_char ,
3982- value : * mut :: c_void , size : :: size_t ) -> :: ssize_t ;
3983- pub fn setxattr ( path : * const c_char , name : * const c_char ,
3984- value : * const :: c_void , size : :: size_t ,
3985- flags : :: c_int ) -> :: c_int ;
3986- pub fn lsetxattr ( path : * const c_char , name : * const c_char ,
3987- value : * const :: c_void , size : :: size_t ,
3988- flags : :: c_int ) -> :: c_int ;
3989- pub fn fsetxattr ( filedes : :: c_int , name : * const c_char ,
3990- value : * const :: c_void , size : :: size_t ,
3991- flags : :: c_int ) -> :: c_int ;
3992- pub fn listxattr ( path : * const c_char , list : * mut c_char ,
3993- size : :: size_t ) -> :: ssize_t ;
3994- pub fn llistxattr ( path : * const c_char , list : * mut c_char ,
3995- size : :: size_t ) -> :: ssize_t ;
3996- pub fn flistxattr ( filedes : :: c_int , list : * mut c_char ,
3997- size : :: size_t ) -> :: ssize_t ;
3998- pub fn removexattr ( path : * const c_char , name : * const c_char ) -> :: c_int ;
3999- pub fn lremovexattr ( path : * const c_char , name : * const c_char ) -> :: c_int ;
4000- pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
40013886 pub fn signalfd ( fd : :: c_int ,
40023887 mask : * const :: sigset_t ,
40033888 flags : :: c_int ) -> :: c_int ;
@@ -4020,26 +3905,6 @@ extern {
40203905 special : * const :: c_char ,
40213906 id : :: c_int ,
40223907 data : * mut :: c_char ) -> :: c_int ;
4023- pub fn mq_open ( name : * const :: c_char , oflag : :: c_int , ...) -> :: mqd_t ;
4024- pub fn mq_close ( mqd : :: mqd_t ) -> :: c_int ;
4025- pub fn mq_unlink ( name : * const :: c_char ) -> :: c_int ;
4026- pub fn mq_receive ( mqd : :: mqd_t ,
4027- msg_ptr : * mut :: c_char ,
4028- msg_len : :: size_t ,
4029- msq_prio : * mut :: c_uint ) -> :: ssize_t ;
4030- pub fn mq_send ( mqd : :: mqd_t ,
4031- msg_ptr : * const :: c_char ,
4032- msg_len : :: size_t ,
4033- msq_prio : :: c_uint ) -> :: c_int ;
4034- pub fn mq_getattr ( mqd : :: mqd_t , attr : * mut :: mq_attr ) -> :: c_int ;
4035- pub fn mq_setattr ( mqd : :: mqd_t ,
4036- newattr : * const :: mq_attr ,
4037- oldattr : * mut :: mq_attr ) -> :: c_int ;
4038- pub fn epoll_pwait ( epfd : :: c_int ,
4039- events : * mut :: epoll_event ,
4040- maxevents : :: c_int ,
4041- timeout : :: c_int ,
4042- sigmask : * const :: sigset_t ) -> :: c_int ;
40433908 pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
40443909 pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
40453910 pub fn mkostemps ( template : * mut :: c_char ,
@@ -4058,27 +3923,6 @@ extern {
40583923 serv : * mut :: c_char ,
40593924 sevlen : :: socklen_t ,
40603925 flags : :: c_int ) -> :: c_int ;
4061- pub fn pthread_setschedprio ( native : :: pthread_t ,
4062- priority : :: c_int ) -> :: c_int ;
4063- pub fn prlimit ( pid : :: pid_t , resource : :: c_int , new_limit : * const :: rlimit ,
4064- old_limit : * mut :: rlimit ) -> :: c_int ;
4065- pub fn prlimit64 ( pid : :: pid_t ,
4066- resource : :: c_int ,
4067- new_limit : * const :: rlimit64 ,
4068- old_limit : * mut :: rlimit64 ) -> :: c_int ;
4069- pub fn getloadavg ( loadavg : * mut :: c_double , nelem : :: c_int ) -> :: c_int ;
4070- pub fn process_vm_readv ( pid : :: pid_t ,
4071- local_iov : * const :: iovec ,
4072- liovcnt : :: c_ulong ,
4073- remote_iov : * const :: iovec ,
4074- riovcnt : :: c_ulong ,
4075- flags : :: c_ulong ) -> isize ;
4076- pub fn process_vm_writev ( pid : :: pid_t ,
4077- local_iov : * const :: iovec ,
4078- liovcnt : :: c_ulong ,
4079- remote_iov : * const :: iovec ,
4080- riovcnt : :: c_ulong ,
4081- flags : :: c_ulong ) -> isize ;
40823926 pub fn reboot ( how_to : :: c_int ) -> :: c_int ;
40833927 pub fn setfsgid ( gid : :: gid_t ) -> :: c_int ;
40843928 pub fn setfsuid ( uid : :: uid_t ) -> :: c_int ;
@@ -4093,12 +3937,6 @@ extern {
40933937 pub fn getifaddrs ( ifap : * mut * mut :: ifaddrs ) -> :: c_int ;
40943938 pub fn freeifaddrs ( ifa : * mut :: ifaddrs ) ;
40953939
4096- pub fn mremap ( addr : * mut :: c_void ,
4097- len : :: size_t ,
4098- new_len : :: size_t ,
4099- flags : :: c_int ,
4100- ...) -> * mut :: c_void ;
4101-
41023940 pub fn glob ( pattern : * const c_char ,
41033941 flags : :: c_int ,
41043942 errfunc : :: Option < extern fn ( epath : * const c_char ,
@@ -4156,20 +3994,6 @@ extern {
41563994 pub fn sched_setaffinity ( pid : :: pid_t ,
41573995 cpusetsize : :: size_t ,
41583996 cpuset : * const cpu_set_t ) -> :: c_int ;
4159- pub fn epoll_create ( size : :: c_int ) -> :: c_int ;
4160- pub fn epoll_create1 ( flags : :: c_int ) -> :: c_int ;
4161- pub fn epoll_wait ( epfd : :: c_int ,
4162- events : * mut :: epoll_event ,
4163- maxevents : :: c_int ,
4164- timeout : :: c_int ) -> :: c_int ;
4165- pub fn epoll_ctl ( epfd : :: c_int ,
4166- op : :: c_int ,
4167- fd : :: c_int ,
4168- event : * mut :: epoll_event ) -> :: c_int ;
4169- pub fn pthread_getschedparam ( native : :: pthread_t ,
4170- policy : * mut :: c_int ,
4171- param : * mut :: sched_param ) -> :: c_int ;
4172- pub fn unshare ( flags : :: c_int ) -> :: c_int ;
41733997 pub fn umount ( target : * const :: c_char ) -> :: c_int ;
41743998 pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
41753999 pub fn tee ( fd_in : :: c_int ,
@@ -4190,7 +4014,6 @@ extern {
41904014 pub fn sem_getvalue ( sem : * mut sem_t ,
41914015 sval : * mut :: c_int ) -> :: c_int ;
41924016 pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
4193- pub fn setns ( fd : :: c_int , nstype : :: c_int ) -> :: c_int ;
41944017 pub fn swapoff ( puath : * const :: c_char ) -> :: c_int ;
41954018 pub fn vmsplice ( fd : :: c_int ,
41964019 iov : * const :: iovec ,
@@ -4202,7 +4025,6 @@ extern {
42024025 flags : :: c_ulong ,
42034026 data : * const :: c_void ) -> :: c_int ;
42044027 pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
4205- pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
42064028 pub fn sched_getparam ( pid : :: pid_t , param : * mut :: sched_param ) -> :: c_int ;
42074029 pub fn ppoll ( fds : * mut :: pollfd ,
42084030 nfds : nfds_t ,
@@ -4223,21 +4045,11 @@ extern {
42234045 guardsize : * mut :: size_t ) -> :: c_int ;
42244046 pub fn sethostname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
42254047 pub fn sched_get_priority_min ( policy : :: c_int ) -> :: c_int ;
4226- pub fn pthread_condattr_getpshared ( attr : * const pthread_condattr_t ,
4227- pshared : * mut :: c_int ) -> :: c_int ;
4228- pub fn sysinfo ( info : * mut :: sysinfo ) -> :: c_int ;
42294048 pub fn umount2 ( target : * const :: c_char , flags : :: c_int ) -> :: c_int ;
4230- pub fn pthread_setschedparam ( native : :: pthread_t ,
4231- policy : :: c_int ,
4232- param : * const :: sched_param ) -> :: c_int ;
42334049 pub fn swapon ( path : * const :: c_char , swapflags : :: c_int ) -> :: c_int ;
42344050 pub fn sched_setscheduler ( pid : :: pid_t ,
42354051 policy : :: c_int ,
42364052 param : * const :: sched_param ) -> :: c_int ;
4237- pub fn sendfile ( out_fd : :: c_int ,
4238- in_fd : :: c_int ,
4239- offset : * mut off_t ,
4240- count : :: size_t ) -> :: ssize_t ;
42414053 pub fn sigsuspend ( mask : * const :: sigset_t ) -> :: c_int ;
42424054 pub fn getgrgid_r ( gid : :: gid_t ,
42434055 grp : * mut :: group ,
@@ -4282,8 +4094,6 @@ extern {
42824094 group : :: gid_t ,
42834095 groups : * mut :: gid_t ,
42844096 ngroups : * mut :: c_int ) -> :: c_int ;
4285- pub fn pthread_mutexattr_getpshared ( attr : * const pthread_mutexattr_t ,
4286- pshared : * mut :: c_int ) -> :: c_int ;
42874097 pub fn popen ( command : * const c_char ,
42884098 mode : * const c_char ) -> * mut :: FILE ;
42894099 pub fn faccessat ( dirfd : :: c_int , pathname : * const :: c_char ,
0 commit comments