@@ -6231,6 +6231,7 @@ cfg_if! {
6231
6231
pub fn aio_error( aiocbp: * const aiocb) -> c_int;
6232
6232
#[ cfg_attr( gnu_file_offset_bits64, link_name = "aio_return64" ) ]
6233
6233
pub fn aio_return( aiocbp: * mut aiocb) -> ssize_t;
6234
+ #[ cfg_attr( gnu_time_bits64, link_name = "__aio_suspend_time64" ) ]
6234
6235
pub fn aio_suspend(
6235
6236
aiocb_list: * const * const aiocb,
6236
6237
nitems: c_int,
@@ -6292,6 +6293,7 @@ cfg_if! {
6292
6293
riovcnt: c_ulong,
6293
6294
flags: c_ulong,
6294
6295
) -> isize ;
6296
+ #[ cfg_attr( gnu_time_bits64, link_name = "__futimes64" ) ]
6295
6297
pub fn futimes( fd: c_int, times: * const crate :: timeval) -> c_int;
6296
6298
}
6297
6299
}
@@ -6321,6 +6323,7 @@ cfg_if! {
6321
6323
msg_len: size_t,
6322
6324
msg_prio: * mut c_uint,
6323
6325
) -> ssize_t;
6326
+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedreceive_time64" ) ]
6324
6327
pub fn mq_timedreceive(
6325
6328
mqd: crate :: mqd_t,
6326
6329
msg_ptr: * mut c_char,
@@ -6334,6 +6337,7 @@ cfg_if! {
6334
6337
msg_len: size_t,
6335
6338
msg_prio: c_uint,
6336
6339
) -> c_int;
6340
+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedsend_time64" ) ]
6337
6341
pub fn mq_timedsend(
6338
6342
mqd: crate :: mqd_t,
6339
6343
msg_ptr: * const c_char,
@@ -6384,6 +6388,7 @@ extern "C" {
6384
6388
pub fn seed48 ( xseed : * mut c_ushort ) -> * mut c_ushort ;
6385
6389
pub fn lcong48 ( p : * mut c_ushort ) ;
6386
6390
6391
+ #[ cfg_attr( gnu_time_bits64, link_name = "__lutimes64" ) ]
6387
6392
pub fn lutimes ( file : * const c_char , times : * const crate :: timeval ) -> c_int ;
6388
6393
6389
6394
pub fn setpwent ( ) ;
@@ -6405,11 +6410,14 @@ extern "C" {
6405
6410
pub fn shmget ( key : crate :: key_t , size : size_t , shmflg : c_int ) -> c_int ;
6406
6411
pub fn shmat ( shmid : c_int , shmaddr : * const c_void , shmflg : c_int ) -> * mut c_void ;
6407
6412
pub fn shmdt ( shmaddr : * const c_void ) -> c_int ;
6413
+ #[ cfg_attr( gnu_time_bits64, link_name = "__shmctl64" ) ]
6408
6414
pub fn shmctl ( shmid : c_int , cmd : c_int , buf : * mut crate :: shmid_ds ) -> c_int ;
6409
6415
pub fn ftok ( pathname : * const c_char , proj_id : c_int ) -> crate :: key_t ;
6410
6416
pub fn semget ( key : crate :: key_t , nsems : c_int , semflag : c_int ) -> c_int ;
6411
6417
pub fn semop ( semid : c_int , sops : * mut crate :: sembuf , nsops : size_t ) -> c_int ;
6418
+ #[ cfg_attr( gnu_time_bits64, link_name = "__semctl64" ) ]
6412
6419
pub fn semctl ( semid : c_int , semnum : c_int , cmd : c_int , ...) -> c_int ;
6420
+ #[ cfg_attr( gnu_time_bits64, link_name = "__msgctl64" ) ]
6413
6421
pub fn msgctl ( msqid : c_int , cmd : c_int , buf : * mut msqid_ds ) -> c_int ;
6414
6422
pub fn msgget ( key : crate :: key_t , msgflg : c_int ) -> c_int ;
6415
6423
pub fn msgrcv (
@@ -6476,7 +6484,9 @@ extern "C" {
6476
6484
pub fn fremovexattr ( filedes : c_int , name : * const c_char ) -> c_int ;
6477
6485
pub fn signalfd ( fd : c_int , mask : * const crate :: sigset_t , flags : c_int ) -> c_int ;
6478
6486
pub fn timerfd_create ( clockid : crate :: clockid_t , flags : c_int ) -> c_int ;
6487
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_gettime64" ) ]
6479
6488
pub fn timerfd_gettime ( fd : c_int , curr_value : * mut itimerspec ) -> c_int ;
6489
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_settime64" ) ]
6480
6490
pub fn timerfd_settime (
6481
6491
fd : c_int ,
6482
6492
flags : c_int ,
@@ -6492,6 +6502,7 @@ extern "C" {
6492
6502
sigmask : * const crate :: sigset_t ,
6493
6503
) -> c_int ;
6494
6504
pub fn dup3 ( oldfd : c_int , newfd : c_int , flags : c_int ) -> c_int ;
6505
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sigtimedwait64" ) ]
6495
6506
pub fn sigtimedwait (
6496
6507
set : * const sigset_t ,
6497
6508
info : * mut siginfo_t ,
@@ -6533,14 +6544,22 @@ extern "C" {
6533
6544
...
6534
6545
) -> * mut c_void ;
6535
6546
6536
- #[ cfg_attr( gnu_file_offset_bits64, link_name = "glob64" ) ]
6547
+ #[ cfg_attr( gnu_time_bits64, link_name = "__glob64_time64" ) ]
6548
+ #[ cfg_attr(
6549
+ all( not( gnu_time_bits64) , gnu_file_offset_bits64) ,
6550
+ link_name = "glob64"
6551
+ ) ]
6537
6552
pub fn glob (
6538
6553
pattern : * const c_char ,
6539
6554
flags : c_int ,
6540
6555
errfunc : Option < extern "C" fn ( epath : * const c_char , errno : c_int ) -> c_int > ,
6541
6556
pglob : * mut crate :: glob_t ,
6542
6557
) -> c_int ;
6543
- #[ cfg_attr( gnu_file_offset_bits64, link_name = "globfree64" ) ]
6558
+ #[ cfg_attr( gnu_time_bits64, link_name = "__globfree64_time64" ) ]
6559
+ #[ cfg_attr(
6560
+ all( not( gnu_time_bits64) , gnu_file_offset_bits64) ,
6561
+ link_name = "globfree64"
6562
+ ) ]
6544
6563
pub fn globfree ( pglob : * mut crate :: glob_t ) ;
6545
6564
6546
6565
pub fn posix_madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
@@ -6603,6 +6622,7 @@ extern "C" {
6603
6622
pub fn umount ( target : * const c_char ) -> c_int ;
6604
6623
pub fn sched_get_priority_max ( policy : c_int ) -> c_int ;
6605
6624
pub fn tee ( fd_in : c_int , fd_out : c_int , len : size_t , flags : c_uint ) -> ssize_t ;
6625
+ #[ cfg_attr( gnu_time_bits64, link_name = "__settimeofday64" ) ]
6606
6626
pub fn settimeofday ( tv : * const crate :: timeval , tz : * const crate :: timezone ) -> c_int ;
6607
6627
pub fn splice (
6608
6628
fd_in : c_int ,
@@ -6616,7 +6636,9 @@ extern "C" {
6616
6636
pub fn eventfd_read ( fd : c_int , value : * mut eventfd_t ) -> c_int ;
6617
6637
pub fn eventfd_write ( fd : c_int , value : eventfd_t ) -> c_int ;
6618
6638
6639
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sched_rr_get_interval64" ) ]
6619
6640
pub fn sched_rr_get_interval ( pid : crate :: pid_t , tp : * mut crate :: timespec ) -> c_int ;
6641
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sem_timedwait64" ) ]
6620
6642
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const crate :: timespec ) -> c_int ;
6621
6643
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut c_int ) -> c_int ;
6622
6644
pub fn sched_setparam ( pid : crate :: pid_t , param : * const crate :: sched_param ) -> c_int ;
@@ -6632,8 +6654,10 @@ extern "C" {
6632
6654
data : * const c_void ,
6633
6655
) -> c_int ;
6634
6656
pub fn personality ( persona : c_ulong ) -> c_int ;
6657
+ #[ cfg_attr( gnu_time_bits64, link_name = "__prctl_time64" ) ]
6635
6658
pub fn prctl ( option : c_int , ...) -> c_int ;
6636
6659
pub fn sched_getparam ( pid : crate :: pid_t , param : * mut crate :: sched_param ) -> c_int ;
6660
+ #[ cfg_attr( gnu_time_bits64, link_name = "__ppoll64" ) ]
6637
6661
pub fn ppoll (
6638
6662
fds : * mut crate :: pollfd ,
6639
6663
nfds : nfds_t ,
@@ -6646,6 +6670,7 @@ extern "C" {
6646
6670
) -> c_int ;
6647
6671
pub fn pthread_mutexattr_setprotocol ( attr : * mut pthread_mutexattr_t , protocol : c_int ) -> c_int ;
6648
6672
6673
+ #[ cfg_attr( gnu_time_bits64, link_name = "__pthread_mutex_timedlock64" ) ]
6649
6674
pub fn pthread_mutex_timedlock (
6650
6675
lock : * mut pthread_mutex_t ,
6651
6676
abstime : * const crate :: timespec ,
@@ -6680,6 +6705,7 @@ extern "C" {
6680
6705
...
6681
6706
) -> c_int ;
6682
6707
pub fn sched_getscheduler ( pid : crate :: pid_t ) -> c_int ;
6708
+ #[ cfg_attr( gnu_time_bits64, link_name = "__clock_nanosleep_time64" ) ]
6683
6709
pub fn clock_nanosleep (
6684
6710
clk_id : crate :: clockid_t ,
6685
6711
flags : c_int ,
@@ -6937,7 +6963,9 @@ extern "C" {
6937
6963
) -> c_int ;
6938
6964
pub fn timer_delete ( timerid : crate :: timer_t ) -> c_int ;
6939
6965
pub fn timer_getoverrun ( timerid : crate :: timer_t ) -> c_int ;
6966
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_gettime64" ) ]
6940
6967
pub fn timer_gettime ( timerid : crate :: timer_t , curr_value : * mut crate :: itimerspec ) -> c_int ;
6968
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_settime64" ) ]
6941
6969
pub fn timer_settime (
6942
6970
timerid : crate :: timer_t ,
6943
6971
flags : c_int ,
0 commit comments