@@ -6316,6 +6316,7 @@ cfg_if! {
6316
6316
pub fn aio_error( aiocbp: * const aiocb) -> c_int;
6317
6317
#[ cfg_attr( gnu_file_offset_bits64, link_name = "aio_return64" ) ]
6318
6318
pub fn aio_return( aiocbp: * mut aiocb) -> ssize_t;
6319
+ #[ cfg_attr( gnu_time_bits64, link_name = "__aio_suspend_time64" ) ]
6319
6320
pub fn aio_suspend(
6320
6321
aiocb_list: * const * const aiocb,
6321
6322
nitems: c_int,
@@ -6377,6 +6378,7 @@ cfg_if! {
6377
6378
riovcnt: c_ulong,
6378
6379
flags: c_ulong,
6379
6380
) -> isize ;
6381
+ #[ cfg_attr( gnu_time_bits64, link_name = "__futimes64" ) ]
6380
6382
pub fn futimes( fd: c_int, times: * const crate :: timeval) -> c_int;
6381
6383
}
6382
6384
}
@@ -6406,6 +6408,7 @@ cfg_if! {
6406
6408
msg_len: size_t,
6407
6409
msg_prio: * mut c_uint,
6408
6410
) -> ssize_t;
6411
+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedreceive_time64" ) ]
6409
6412
pub fn mq_timedreceive(
6410
6413
mqd: crate :: mqd_t,
6411
6414
msg_ptr: * mut c_char,
@@ -6419,6 +6422,7 @@ cfg_if! {
6419
6422
msg_len: size_t,
6420
6423
msg_prio: c_uint,
6421
6424
) -> c_int;
6425
+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedsend_time64" ) ]
6422
6426
pub fn mq_timedsend(
6423
6427
mqd: crate :: mqd_t,
6424
6428
msg_ptr: * const c_char,
@@ -6469,6 +6473,7 @@ extern "C" {
6469
6473
pub fn seed48 ( xseed : * mut c_ushort ) -> * mut c_ushort ;
6470
6474
pub fn lcong48 ( p : * mut c_ushort ) ;
6471
6475
6476
+ #[ cfg_attr( gnu_time_bits64, link_name = "__lutimes64" ) ]
6472
6477
pub fn lutimes ( file : * const c_char , times : * const crate :: timeval ) -> c_int ;
6473
6478
6474
6479
pub fn setpwent ( ) ;
@@ -6490,11 +6495,14 @@ extern "C" {
6490
6495
pub fn shmget ( key : crate :: key_t , size : size_t , shmflg : c_int ) -> c_int ;
6491
6496
pub fn shmat ( shmid : c_int , shmaddr : * const c_void , shmflg : c_int ) -> * mut c_void ;
6492
6497
pub fn shmdt ( shmaddr : * const c_void ) -> c_int ;
6498
+ #[ cfg_attr( gnu_time_bits64, link_name = "__shmctl64" ) ]
6493
6499
pub fn shmctl ( shmid : c_int , cmd : c_int , buf : * mut crate :: shmid_ds ) -> c_int ;
6494
6500
pub fn ftok ( pathname : * const c_char , proj_id : c_int ) -> crate :: key_t ;
6495
6501
pub fn semget ( key : crate :: key_t , nsems : c_int , semflag : c_int ) -> c_int ;
6496
6502
pub fn semop ( semid : c_int , sops : * mut crate :: sembuf , nsops : size_t ) -> c_int ;
6503
+ #[ cfg_attr( gnu_time_bits64, link_name = "__semctl64" ) ]
6497
6504
pub fn semctl ( semid : c_int , semnum : c_int , cmd : c_int , ...) -> c_int ;
6505
+ #[ cfg_attr( gnu_time_bits64, link_name = "__msgctl64" ) ]
6498
6506
pub fn msgctl ( msqid : c_int , cmd : c_int , buf : * mut msqid_ds ) -> c_int ;
6499
6507
pub fn msgget ( key : crate :: key_t , msgflg : c_int ) -> c_int ;
6500
6508
pub fn msgrcv (
@@ -6561,7 +6569,9 @@ extern "C" {
6561
6569
pub fn fremovexattr ( filedes : c_int , name : * const c_char ) -> c_int ;
6562
6570
pub fn signalfd ( fd : c_int , mask : * const crate :: sigset_t , flags : c_int ) -> c_int ;
6563
6571
pub fn timerfd_create ( clockid : crate :: clockid_t , flags : c_int ) -> c_int ;
6572
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_gettime64" ) ]
6564
6573
pub fn timerfd_gettime ( fd : c_int , curr_value : * mut itimerspec ) -> c_int ;
6574
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_settime64" ) ]
6565
6575
pub fn timerfd_settime (
6566
6576
fd : c_int ,
6567
6577
flags : c_int ,
@@ -6577,6 +6587,7 @@ extern "C" {
6577
6587
sigmask : * const crate :: sigset_t ,
6578
6588
) -> c_int ;
6579
6589
pub fn dup3 ( oldfd : c_int , newfd : c_int , flags : c_int ) -> c_int ;
6590
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sigtimedwait64" ) ]
6580
6591
pub fn sigtimedwait (
6581
6592
set : * const sigset_t ,
6582
6593
info : * mut siginfo_t ,
@@ -6618,14 +6629,22 @@ extern "C" {
6618
6629
...
6619
6630
) -> * mut c_void ;
6620
6631
6621
- #[ cfg_attr( gnu_file_offset_bits64, link_name = "glob64" ) ]
6632
+ #[ cfg_attr( gnu_time_bits64, link_name = "__glob64_time64" ) ]
6633
+ #[ cfg_attr(
6634
+ all( not( gnu_time_bits64) , gnu_file_offset_bits64) ,
6635
+ link_name = "glob64"
6636
+ ) ]
6622
6637
pub fn glob (
6623
6638
pattern : * const c_char ,
6624
6639
flags : c_int ,
6625
6640
errfunc : Option < extern "C" fn ( epath : * const c_char , errno : c_int ) -> c_int > ,
6626
6641
pglob : * mut crate :: glob_t ,
6627
6642
) -> c_int ;
6628
- #[ cfg_attr( gnu_file_offset_bits64, link_name = "globfree64" ) ]
6643
+ #[ cfg_attr( gnu_time_bits64, link_name = "__globfree64_time64" ) ]
6644
+ #[ cfg_attr(
6645
+ all( not( gnu_time_bits64) , gnu_file_offset_bits64) ,
6646
+ link_name = "globfree64"
6647
+ ) ]
6629
6648
pub fn globfree ( pglob : * mut crate :: glob_t ) ;
6630
6649
6631
6650
pub fn posix_madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
@@ -6688,6 +6707,7 @@ extern "C" {
6688
6707
pub fn umount ( target : * const c_char ) -> c_int ;
6689
6708
pub fn sched_get_priority_max ( policy : c_int ) -> c_int ;
6690
6709
pub fn tee ( fd_in : c_int , fd_out : c_int , len : size_t , flags : c_uint ) -> ssize_t ;
6710
+ #[ cfg_attr( gnu_time_bits64, link_name = "__settimeofday64" ) ]
6691
6711
pub fn settimeofday ( tv : * const crate :: timeval , tz : * const crate :: timezone ) -> c_int ;
6692
6712
pub fn splice (
6693
6713
fd_in : c_int ,
@@ -6701,7 +6721,9 @@ extern "C" {
6701
6721
pub fn eventfd_read ( fd : c_int , value : * mut eventfd_t ) -> c_int ;
6702
6722
pub fn eventfd_write ( fd : c_int , value : eventfd_t ) -> c_int ;
6703
6723
6724
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sched_rr_get_interval64" ) ]
6704
6725
pub fn sched_rr_get_interval ( pid : crate :: pid_t , tp : * mut crate :: timespec ) -> c_int ;
6726
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sem_timedwait64" ) ]
6705
6727
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const crate :: timespec ) -> c_int ;
6706
6728
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut c_int ) -> c_int ;
6707
6729
pub fn sched_setparam ( pid : crate :: pid_t , param : * const crate :: sched_param ) -> c_int ;
@@ -6717,8 +6739,10 @@ extern "C" {
6717
6739
data : * const c_void ,
6718
6740
) -> c_int ;
6719
6741
pub fn personality ( persona : c_ulong ) -> c_int ;
6742
+ #[ cfg_attr( gnu_time_bits64, link_name = "__prctl_time64" ) ]
6720
6743
pub fn prctl ( option : c_int , ...) -> c_int ;
6721
6744
pub fn sched_getparam ( pid : crate :: pid_t , param : * mut crate :: sched_param ) -> c_int ;
6745
+ #[ cfg_attr( gnu_time_bits64, link_name = "__ppoll64" ) ]
6722
6746
pub fn ppoll (
6723
6747
fds : * mut crate :: pollfd ,
6724
6748
nfds : nfds_t ,
@@ -6731,6 +6755,7 @@ extern "C" {
6731
6755
) -> c_int ;
6732
6756
pub fn pthread_mutexattr_setprotocol ( attr : * mut pthread_mutexattr_t , protocol : c_int ) -> c_int ;
6733
6757
6758
+ #[ cfg_attr( gnu_time_bits64, link_name = "__pthread_mutex_timedlock64" ) ]
6734
6759
pub fn pthread_mutex_timedlock (
6735
6760
lock : * mut pthread_mutex_t ,
6736
6761
abstime : * const crate :: timespec ,
@@ -6765,6 +6790,7 @@ extern "C" {
6765
6790
...
6766
6791
) -> c_int ;
6767
6792
pub fn sched_getscheduler ( pid : crate :: pid_t ) -> c_int ;
6793
+ #[ cfg_attr( gnu_time_bits64, link_name = "__clock_nanosleep_time64" ) ]
6768
6794
pub fn clock_nanosleep (
6769
6795
clk_id : crate :: clockid_t ,
6770
6796
flags : c_int ,
@@ -7022,7 +7048,9 @@ extern "C" {
7022
7048
) -> c_int ;
7023
7049
pub fn timer_delete ( timerid : crate :: timer_t ) -> c_int ;
7024
7050
pub fn timer_getoverrun ( timerid : crate :: timer_t ) -> c_int ;
7051
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_gettime64" ) ]
7025
7052
pub fn timer_gettime ( timerid : crate :: timer_t , curr_value : * mut crate :: itimerspec ) -> c_int ;
7053
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_settime64" ) ]
7026
7054
pub fn timer_settime (
7027
7055
timerid : crate :: timer_t ,
7028
7056
flags : c_int ,
0 commit comments