@@ -1270,6 +1270,13 @@ f! {
1270
1270
extern "C" {
1271
1271
pub fn getrlimit ( resource : :: c_int , rlim : * mut :: rlimit ) -> :: c_int ;
1272
1272
pub fn setrlimit ( resource : :: c_int , rlim : * const :: rlimit ) -> :: c_int ;
1273
+ pub fn utimensat (
1274
+ fd : :: c_int ,
1275
+ path : * const :: c_char ,
1276
+ times : * const :: timespec ,
1277
+ flag : :: c_int ,
1278
+ ) -> :: c_int ;
1279
+ pub fn futimens ( fd : :: c_int , times : * const :: timespec ) -> :: c_int ;
1273
1280
pub fn strerror_r (
1274
1281
errnum : :: c_int ,
1275
1282
buf : * mut c_char ,
@@ -1394,7 +1401,6 @@ extern "C" {
1394
1401
addrlen : * mut :: socklen_t ,
1395
1402
) -> :: ssize_t ;
1396
1403
pub fn mkstemps ( template : * mut :: c_char , suffixlen : :: c_int ) -> :: c_int ;
1397
- pub fn futimes ( fd : :: c_int , times : * const :: timeval ) -> :: c_int ;
1398
1404
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
1399
1405
pub fn nl_langinfo ( item : :: nl_item ) -> * mut :: c_char ;
1400
1406
@@ -1430,34 +1436,23 @@ extern "C" {
1430
1436
argv : * const * const :: c_char ,
1431
1437
environment : * const * const :: c_char ,
1432
1438
) -> :: c_int ;
1433
- #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrgid_r" ) ]
1434
1439
pub fn getgrgid_r (
1435
1440
gid : :: gid_t ,
1436
1441
grp : * mut :: group ,
1437
1442
buf : * mut :: c_char ,
1438
1443
buflen : :: size_t ,
1439
1444
result : * mut * mut :: group ,
1440
1445
) -> :: c_int ;
1441
- #[ cfg_attr(
1442
- all( target_os = "macos" , target_arch = "x86" ) ,
1443
- link_name = "sigaltstack$UNIX2003"
1444
- ) ]
1445
- #[ cfg_attr( target_os = "netbsd" , link_name = "__sigaltstack14" ) ]
1446
1446
pub fn sigaltstack ( ss : * const stack_t , oss : * mut stack_t ) -> :: c_int ;
1447
1447
pub fn sem_close ( sem : * mut sem_t ) -> :: c_int ;
1448
1448
pub fn getdtablesize ( ) -> :: c_int ;
1449
- #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrnam_r" ) ]
1450
1449
pub fn getgrnam_r (
1451
1450
name : * const :: c_char ,
1452
1451
grp : * mut :: group ,
1453
1452
buf : * mut :: c_char ,
1454
1453
buflen : :: size_t ,
1455
1454
result : * mut * mut :: group ,
1456
1455
) -> :: c_int ;
1457
- #[ cfg_attr(
1458
- all( target_os = "macos" , target_arch = "x86" ) ,
1459
- link_name = "pthread_sigmask$UNIX2003"
1460
- ) ]
1461
1456
pub fn pthread_sigmask (
1462
1457
how : :: c_int ,
1463
1458
set : * const sigset_t ,
@@ -1468,40 +1463,27 @@ extern "C" {
1468
1463
pub fn pthread_kill ( thread : :: pthread_t , sig : :: c_int ) -> :: c_int ;
1469
1464
pub fn sem_unlink ( name : * const :: c_char ) -> :: c_int ;
1470
1465
pub fn daemon ( nochdir : :: c_int , noclose : :: c_int ) -> :: c_int ;
1471
- #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwnam_r50" ) ]
1472
- #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getpwnam_r" ) ]
1473
1466
pub fn getpwnam_r (
1474
1467
name : * const :: c_char ,
1475
1468
pwd : * mut passwd ,
1476
1469
buf : * mut :: c_char ,
1477
1470
buflen : :: size_t ,
1478
1471
result : * mut * mut passwd ,
1479
1472
) -> :: c_int ;
1480
- #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwuid_r50" ) ]
1481
- #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getpwuid_r" ) ]
1482
1473
pub fn getpwuid_r (
1483
1474
uid : :: uid_t ,
1484
1475
pwd : * mut passwd ,
1485
1476
buf : * mut :: c_char ,
1486
1477
buflen : :: size_t ,
1487
1478
result : * mut * mut passwd ,
1488
1479
) -> :: c_int ;
1489
- #[ cfg_attr(
1490
- all( target_os = "macos" , target_arch = "x86" ) ,
1491
- link_name = "sigwait$UNIX2003"
1492
- ) ]
1493
- #[ cfg_attr( target_os = "solaris" , link_name = "__posix_sigwait" ) ]
1494
1480
pub fn sigwait ( set : * const sigset_t , sig : * mut :: c_int ) -> :: c_int ;
1495
1481
pub fn pthread_atfork (
1496
1482
prepare : :: Option < unsafe extern "C" fn ( ) > ,
1497
1483
parent : :: Option < unsafe extern "C" fn ( ) > ,
1498
1484
child : :: Option < unsafe extern "C" fn ( ) > ,
1499
1485
) -> :: c_int ;
1500
1486
pub fn getgrgid ( gid : :: gid_t ) -> * mut :: group ;
1501
- #[ cfg_attr(
1502
- all( target_os = "macos" , target_arch = "x86" ) ,
1503
- link_name = "popen$UNIX2003"
1504
- ) ]
1505
1487
pub fn popen ( command : * const c_char , mode : * const c_char ) -> * mut :: FILE ;
1506
1488
pub fn openpty (
1507
1489
amaster : * mut :: c_int ,
0 commit comments