@@ -1327,19 +1327,44 @@ extern "C" {
13271327
13281328 pub fn statfs ( path : * const c_char , buf : * mut statfs ) -> c_int ;
13291329 pub fn fstatfs ( fd : c_int , buf : * mut statfs ) -> c_int ;
1330+ pub fn fdatasync ( fd : c_int ) -> c_int ;
13301331 pub fn uname ( buf : * mut crate :: utsname ) -> c_int ;
13311332 pub fn memmem (
13321333 haystack : * const c_void ,
13331334 haystacklen : size_t ,
13341335 needle : * const c_void ,
13351336 needlelen : size_t ,
13361337 ) -> * mut c_void ;
1338+ pub fn dlvsym (
1339+ handle : * mut c_void ,
1340+ symbol : * const c_char ,
1341+ version : * const c_char ,
1342+ ) -> * mut c_void ;
1343+ pub fn reallocarray ( ptr : * mut c_void , nmemb : size_t , size : size_t ) -> * mut c_void ;
1344+ pub fn qsort_r (
1345+ base : * mut c_void ,
1346+ num : size_t ,
1347+ size : size_t ,
1348+ arg : * mut c_void ,
1349+ compar : Option < unsafe extern "C" fn ( * mut c_void , * const c_void , * const c_void ) -> c_int > ,
1350+ ) ;
13371351 pub fn pthread_spin_init ( lock : * mut pthread_spinlock_t , pshared : c_int ) -> c_int ;
13381352 pub fn pthread_spin_destroy ( lock : * mut pthread_spinlock_t ) -> c_int ;
13391353 pub fn pthread_spin_lock ( lock : * mut pthread_spinlock_t ) -> c_int ;
13401354 pub fn pthread_spin_trylock ( lock : * mut pthread_spinlock_t ) -> c_int ;
13411355 pub fn pthread_spin_unlock ( lock : * mut pthread_spinlock_t ) -> c_int ;
13421356
1357+ pub fn pthread_getaffinity_np (
1358+ td : crate :: pthread_t ,
1359+ cpusetsize : size_t ,
1360+ cpusetp : * mut cpuset_t ,
1361+ ) -> c_int ;
1362+ pub fn pthread_setaffinity_np (
1363+ td : crate :: pthread_t ,
1364+ cpusetsize : size_t ,
1365+ cpusetp : * const cpuset_t ,
1366+ ) -> c_int ;
1367+
13431368 pub fn sched_getaffinity ( pid : crate :: pid_t , cpusetsize : size_t , mask : * mut cpu_set_t ) -> c_int ;
13441369 pub fn sched_setaffinity (
13451370 pid : crate :: pid_t ,
@@ -1349,6 +1374,7 @@ extern "C" {
13491374 pub fn sched_getcpu ( ) -> c_int ;
13501375 pub fn setproctitle ( fmt : * const c_char , ...) ;
13511376
1377+ pub fn ftok ( path : * const c_char , id : c_int ) -> crate :: key_t ;
13521378 pub fn shmget ( key : crate :: key_t , size : size_t , shmflg : c_int ) -> c_int ;
13531379 pub fn shmat ( shmid : c_int , shmaddr : * const c_void , shmflg : c_int ) -> * mut c_void ;
13541380 pub fn shmdt ( shmaddr : * const c_void ) -> c_int ;
@@ -1381,6 +1407,27 @@ extern "C" {
13811407 flags : c_int ,
13821408 ) -> c_int ;
13831409
1410+ pub fn extattr_delete_file (
1411+ path : * const c_char ,
1412+ attrnamespace : c_int ,
1413+ attrname : * const c_char ,
1414+ ) -> c_int ;
1415+ pub fn extattr_get_file (
1416+ path : * const c_char ,
1417+ attrnamespace : c_int ,
1418+ attrname : * const c_char ,
1419+ data : * mut c_void ,
1420+ nbytes : size_t ,
1421+ ) -> ssize_t ;
1422+ pub fn extattr_set_file (
1423+ path : * const c_char ,
1424+ attrnamespace : c_int ,
1425+ attrname : * const c_char ,
1426+ data : * const c_void ,
1427+ nbytes : size_t ,
1428+ ) -> c_int ;
1429+
1430+ pub fn dup3 ( src : c_int , dst : c_int , flags : c_int ) -> c_int ;
13841431 pub fn closefrom ( lowfd : c_int ) -> c_int ;
13851432}
13861433
0 commit comments