@@ -6265,6 +6265,7 @@ cfg_if! {
6265
6265
pub fn aio_error( aiocbp: * const aiocb) -> c_int;
6266
6266
#[ cfg_attr( gnu_file_offset_bits64, link_name = "aio_return64" ) ]
6267
6267
pub fn aio_return( aiocbp: * mut aiocb) -> ssize_t;
6268
+ #[ cfg_attr( gnu_time_bits64, link_name = "__aio_suspend_time64" ) ]
6268
6269
pub fn aio_suspend(
6269
6270
aiocb_list: * const * const aiocb,
6270
6271
nitems: c_int,
@@ -6326,6 +6327,7 @@ cfg_if! {
6326
6327
riovcnt: c_ulong,
6327
6328
flags: c_ulong,
6328
6329
) -> isize ;
6330
+ #[ cfg_attr( gnu_time_bits64, link_name = "__futimes64" ) ]
6329
6331
pub fn futimes( fd: c_int, times: * const crate :: timeval) -> c_int;
6330
6332
}
6331
6333
}
@@ -6355,6 +6357,7 @@ cfg_if! {
6355
6357
msg_len: size_t,
6356
6358
msg_prio: * mut c_uint,
6357
6359
) -> ssize_t;
6360
+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedreceive_time64" ) ]
6358
6361
pub fn mq_timedreceive(
6359
6362
mqd: crate :: mqd_t,
6360
6363
msg_ptr: * mut c_char,
@@ -6368,6 +6371,7 @@ cfg_if! {
6368
6371
msg_len: size_t,
6369
6372
msg_prio: c_uint,
6370
6373
) -> c_int;
6374
+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedsend_time64" ) ]
6371
6375
pub fn mq_timedsend(
6372
6376
mqd: crate :: mqd_t,
6373
6377
msg_ptr: * const c_char,
@@ -6418,6 +6422,7 @@ extern "C" {
6418
6422
pub fn seed48 ( xseed : * mut c_ushort ) -> * mut c_ushort ;
6419
6423
pub fn lcong48 ( p : * mut c_ushort ) ;
6420
6424
6425
+ #[ cfg_attr( gnu_time_bits64, link_name = "__lutimes64" ) ]
6421
6426
pub fn lutimes ( file : * const c_char , times : * const crate :: timeval ) -> c_int ;
6422
6427
6423
6428
pub fn setpwent ( ) ;
@@ -6439,11 +6444,14 @@ extern "C" {
6439
6444
pub fn shmget ( key : crate :: key_t , size : size_t , shmflg : c_int ) -> c_int ;
6440
6445
pub fn shmat ( shmid : c_int , shmaddr : * const c_void , shmflg : c_int ) -> * mut c_void ;
6441
6446
pub fn shmdt ( shmaddr : * const c_void ) -> c_int ;
6447
+ #[ cfg_attr( gnu_time_bits64, link_name = "__shmctl64" ) ]
6442
6448
pub fn shmctl ( shmid : c_int , cmd : c_int , buf : * mut crate :: shmid_ds ) -> c_int ;
6443
6449
pub fn ftok ( pathname : * const c_char , proj_id : c_int ) -> crate :: key_t ;
6444
6450
pub fn semget ( key : crate :: key_t , nsems : c_int , semflag : c_int ) -> c_int ;
6445
6451
pub fn semop ( semid : c_int , sops : * mut crate :: sembuf , nsops : size_t ) -> c_int ;
6452
+ #[ cfg_attr( gnu_time_bits64, link_name = "__semctl64" ) ]
6446
6453
pub fn semctl ( semid : c_int , semnum : c_int , cmd : c_int , ...) -> c_int ;
6454
+ #[ cfg_attr( gnu_time_bits64, link_name = "__msgctl64" ) ]
6447
6455
pub fn msgctl ( msqid : c_int , cmd : c_int , buf : * mut msqid_ds ) -> c_int ;
6448
6456
pub fn msgget ( key : crate :: key_t , msgflg : c_int ) -> c_int ;
6449
6457
pub fn msgrcv (
@@ -6510,7 +6518,9 @@ extern "C" {
6510
6518
pub fn fremovexattr ( filedes : c_int , name : * const c_char ) -> c_int ;
6511
6519
pub fn signalfd ( fd : c_int , mask : * const crate :: sigset_t , flags : c_int ) -> c_int ;
6512
6520
pub fn timerfd_create ( clockid : crate :: clockid_t , flags : c_int ) -> c_int ;
6521
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_gettime64" ) ]
6513
6522
pub fn timerfd_gettime ( fd : c_int , curr_value : * mut itimerspec ) -> c_int ;
6523
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_settime64" ) ]
6514
6524
pub fn timerfd_settime (
6515
6525
fd : c_int ,
6516
6526
flags : c_int ,
@@ -6526,6 +6536,7 @@ extern "C" {
6526
6536
sigmask : * const crate :: sigset_t ,
6527
6537
) -> c_int ;
6528
6538
pub fn dup3 ( oldfd : c_int , newfd : c_int , flags : c_int ) -> c_int ;
6539
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sigtimedwait64" ) ]
6529
6540
pub fn sigtimedwait (
6530
6541
set : * const sigset_t ,
6531
6542
info : * mut siginfo_t ,
@@ -6567,14 +6578,22 @@ extern "C" {
6567
6578
...
6568
6579
) -> * mut c_void ;
6569
6580
6570
- #[ cfg_attr( gnu_file_offset_bits64, link_name = "glob64" ) ]
6581
+ #[ cfg_attr( gnu_time_bits64, link_name = "__glob64_time64" ) ]
6582
+ #[ cfg_attr(
6583
+ all( not( gnu_time_bits64) , gnu_file_offset_bits64) ,
6584
+ link_name = "glob64"
6585
+ ) ]
6571
6586
pub fn glob (
6572
6587
pattern : * const c_char ,
6573
6588
flags : c_int ,
6574
6589
errfunc : Option < extern "C" fn ( epath : * const c_char , errno : c_int ) -> c_int > ,
6575
6590
pglob : * mut crate :: glob_t ,
6576
6591
) -> c_int ;
6577
- #[ cfg_attr( gnu_file_offset_bits64, link_name = "globfree64" ) ]
6592
+ #[ cfg_attr( gnu_time_bits64, link_name = "__globfree64_time64" ) ]
6593
+ #[ cfg_attr(
6594
+ all( not( gnu_time_bits64) , gnu_file_offset_bits64) ,
6595
+ link_name = "globfree64"
6596
+ ) ]
6578
6597
pub fn globfree ( pglob : * mut crate :: glob_t ) ;
6579
6598
6580
6599
pub fn posix_madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
@@ -6637,6 +6656,7 @@ extern "C" {
6637
6656
pub fn umount ( target : * const c_char ) -> c_int ;
6638
6657
pub fn sched_get_priority_max ( policy : c_int ) -> c_int ;
6639
6658
pub fn tee ( fd_in : c_int , fd_out : c_int , len : size_t , flags : c_uint ) -> ssize_t ;
6659
+ #[ cfg_attr( gnu_time_bits64, link_name = "__settimeofday64" ) ]
6640
6660
pub fn settimeofday ( tv : * const crate :: timeval , tz : * const crate :: timezone ) -> c_int ;
6641
6661
pub fn splice (
6642
6662
fd_in : c_int ,
@@ -6650,7 +6670,9 @@ extern "C" {
6650
6670
pub fn eventfd_read ( fd : c_int , value : * mut eventfd_t ) -> c_int ;
6651
6671
pub fn eventfd_write ( fd : c_int , value : eventfd_t ) -> c_int ;
6652
6672
6673
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sched_rr_get_interval64" ) ]
6653
6674
pub fn sched_rr_get_interval ( pid : crate :: pid_t , tp : * mut crate :: timespec ) -> c_int ;
6675
+ #[ cfg_attr( gnu_time_bits64, link_name = "__sem_timedwait64" ) ]
6654
6676
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const crate :: timespec ) -> c_int ;
6655
6677
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut c_int ) -> c_int ;
6656
6678
pub fn sched_setparam ( pid : crate :: pid_t , param : * const crate :: sched_param ) -> c_int ;
@@ -6666,8 +6688,10 @@ extern "C" {
6666
6688
data : * const c_void ,
6667
6689
) -> c_int ;
6668
6690
pub fn personality ( persona : c_ulong ) -> c_int ;
6691
+ #[ cfg_attr( gnu_time_bits64, link_name = "__prctl_time64" ) ]
6669
6692
pub fn prctl ( option : c_int , ...) -> c_int ;
6670
6693
pub fn sched_getparam ( pid : crate :: pid_t , param : * mut crate :: sched_param ) -> c_int ;
6694
+ #[ cfg_attr( gnu_time_bits64, link_name = "__ppoll64" ) ]
6671
6695
pub fn ppoll (
6672
6696
fds : * mut crate :: pollfd ,
6673
6697
nfds : nfds_t ,
@@ -6680,6 +6704,7 @@ extern "C" {
6680
6704
) -> c_int ;
6681
6705
pub fn pthread_mutexattr_setprotocol ( attr : * mut pthread_mutexattr_t , protocol : c_int ) -> c_int ;
6682
6706
6707
+ #[ cfg_attr( gnu_time_bits64, link_name = "__pthread_mutex_timedlock64" ) ]
6683
6708
pub fn pthread_mutex_timedlock (
6684
6709
lock : * mut pthread_mutex_t ,
6685
6710
abstime : * const crate :: timespec ,
@@ -6714,6 +6739,7 @@ extern "C" {
6714
6739
...
6715
6740
) -> c_int ;
6716
6741
pub fn sched_getscheduler ( pid : crate :: pid_t ) -> c_int ;
6742
+ #[ cfg_attr( gnu_time_bits64, link_name = "__clock_nanosleep_time64" ) ]
6717
6743
pub fn clock_nanosleep (
6718
6744
clk_id : crate :: clockid_t ,
6719
6745
flags : c_int ,
@@ -6971,7 +6997,9 @@ extern "C" {
6971
6997
) -> c_int ;
6972
6998
pub fn timer_delete ( timerid : crate :: timer_t ) -> c_int ;
6973
6999
pub fn timer_getoverrun ( timerid : crate :: timer_t ) -> c_int ;
7000
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_gettime64" ) ]
6974
7001
pub fn timer_gettime ( timerid : crate :: timer_t , curr_value : * mut crate :: itimerspec ) -> c_int ;
7002
+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_settime64" ) ]
6975
7003
pub fn timer_settime (
6976
7004
timerid : crate :: timer_t ,
6977
7005
flags : c_int ,
@@ -7013,6 +7041,7 @@ extern "C" {
7013
7041
7014
7042
pub fn klogctl ( syslog_type : c_int , bufp : * mut c_char , len : c_int ) -> c_int ;
7015
7043
7044
+ #[ cfg_attr( gnu_time_bits64, link_name = "__ioctl_time64" ) ]
7016
7045
pub fn ioctl ( fd : c_int , request : Ioctl , ...) -> c_int ;
7017
7046
}
7018
7047
0 commit comments