@@ -6316,6 +6316,7 @@ cfg_if! {
63166316 pub fn aio_error( aiocbp: * const aiocb) -> c_int;
63176317 #[ cfg_attr( gnu_file_offset_bits64, link_name = "aio_return64" ) ]
63186318 pub fn aio_return( aiocbp: * mut aiocb) -> ssize_t;
6319+ #[ cfg_attr( gnu_time_bits64, link_name = "__aio_suspend_time64" ) ]
63196320 pub fn aio_suspend(
63206321 aiocb_list: * const * const aiocb,
63216322 nitems: c_int,
@@ -6377,6 +6378,7 @@ cfg_if! {
63776378 riovcnt: c_ulong,
63786379 flags: c_ulong,
63796380 ) -> isize ;
6381+ #[ cfg_attr( gnu_time_bits64, link_name = "__futimes64" ) ]
63806382 pub fn futimes( fd: c_int, times: * const crate :: timeval) -> c_int;
63816383 }
63826384 }
@@ -6406,6 +6408,7 @@ cfg_if! {
64066408 msg_len: size_t,
64076409 msg_prio: * mut c_uint,
64086410 ) -> ssize_t;
6411+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedreceive_time64" ) ]
64096412 pub fn mq_timedreceive(
64106413 mqd: crate :: mqd_t,
64116414 msg_ptr: * mut c_char,
@@ -6419,6 +6422,7 @@ cfg_if! {
64196422 msg_len: size_t,
64206423 msg_prio: c_uint,
64216424 ) -> c_int;
6425+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedsend_time64" ) ]
64226426 pub fn mq_timedsend(
64236427 mqd: crate :: mqd_t,
64246428 msg_ptr: * const c_char,
@@ -6469,6 +6473,7 @@ extern "C" {
64696473 pub fn seed48 ( xseed : * mut c_ushort ) -> * mut c_ushort ;
64706474 pub fn lcong48 ( p : * mut c_ushort ) ;
64716475
6476+ #[ cfg_attr( gnu_time_bits64, link_name = "__lutimes64" ) ]
64726477 pub fn lutimes ( file : * const c_char , times : * const crate :: timeval ) -> c_int ;
64736478
64746479 pub fn setpwent ( ) ;
@@ -6490,11 +6495,14 @@ extern "C" {
64906495 pub fn shmget ( key : crate :: key_t , size : size_t , shmflg : c_int ) -> c_int ;
64916496 pub fn shmat ( shmid : c_int , shmaddr : * const c_void , shmflg : c_int ) -> * mut c_void ;
64926497 pub fn shmdt ( shmaddr : * const c_void ) -> c_int ;
6498+ #[ cfg_attr( gnu_time_bits64, link_name = "__shmctl64" ) ]
64936499 pub fn shmctl ( shmid : c_int , cmd : c_int , buf : * mut crate :: shmid_ds ) -> c_int ;
64946500 pub fn ftok ( pathname : * const c_char , proj_id : c_int ) -> crate :: key_t ;
64956501 pub fn semget ( key : crate :: key_t , nsems : c_int , semflag : c_int ) -> c_int ;
64966502 pub fn semop ( semid : c_int , sops : * mut crate :: sembuf , nsops : size_t ) -> c_int ;
6503+ #[ cfg_attr( gnu_time_bits64, link_name = "__semctl64" ) ]
64976504 pub fn semctl ( semid : c_int , semnum : c_int , cmd : c_int , ...) -> c_int ;
6505+ #[ cfg_attr( gnu_time_bits64, link_name = "__msgctl64" ) ]
64986506 pub fn msgctl ( msqid : c_int , cmd : c_int , buf : * mut msqid_ds ) -> c_int ;
64996507 pub fn msgget ( key : crate :: key_t , msgflg : c_int ) -> c_int ;
65006508 pub fn msgrcv (
@@ -6561,7 +6569,9 @@ extern "C" {
65616569 pub fn fremovexattr ( filedes : c_int , name : * const c_char ) -> c_int ;
65626570 pub fn signalfd ( fd : c_int , mask : * const crate :: sigset_t , flags : c_int ) -> c_int ;
65636571 pub fn timerfd_create ( clockid : crate :: clockid_t , flags : c_int ) -> c_int ;
6572+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_gettime64" ) ]
65646573 pub fn timerfd_gettime ( fd : c_int , curr_value : * mut itimerspec ) -> c_int ;
6574+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_settime64" ) ]
65656575 pub fn timerfd_settime (
65666576 fd : c_int ,
65676577 flags : c_int ,
@@ -6577,6 +6587,7 @@ extern "C" {
65776587 sigmask : * const crate :: sigset_t ,
65786588 ) -> c_int ;
65796589 pub fn dup3 ( oldfd : c_int , newfd : c_int , flags : c_int ) -> c_int ;
6590+ #[ cfg_attr( gnu_time_bits64, link_name = "__sigtimedwait64" ) ]
65806591 pub fn sigtimedwait (
65816592 set : * const sigset_t ,
65826593 info : * mut siginfo_t ,
@@ -6618,14 +6629,22 @@ extern "C" {
66186629 ...
66196630 ) -> * mut c_void ;
66206631
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+ ) ]
66226637 pub fn glob (
66236638 pattern : * const c_char ,
66246639 flags : c_int ,
66256640 errfunc : Option < extern "C" fn ( epath : * const c_char , errno : c_int ) -> c_int > ,
66266641 pglob : * mut crate :: glob_t ,
66276642 ) -> 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+ ) ]
66296648 pub fn globfree ( pglob : * mut crate :: glob_t ) ;
66306649
66316650 pub fn posix_madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
@@ -6688,6 +6707,7 @@ extern "C" {
66886707 pub fn umount ( target : * const c_char ) -> c_int ;
66896708 pub fn sched_get_priority_max ( policy : c_int ) -> c_int ;
66906709 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" ) ]
66916711 pub fn settimeofday ( tv : * const crate :: timeval , tz : * const crate :: timezone ) -> c_int ;
66926712 pub fn splice (
66936713 fd_in : c_int ,
@@ -6701,7 +6721,9 @@ extern "C" {
67016721 pub fn eventfd_read ( fd : c_int , value : * mut eventfd_t ) -> c_int ;
67026722 pub fn eventfd_write ( fd : c_int , value : eventfd_t ) -> c_int ;
67036723
6724+ #[ cfg_attr( gnu_time_bits64, link_name = "__sched_rr_get_interval64" ) ]
67046725 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" ) ]
67056727 pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const crate :: timespec ) -> c_int ;
67066728 pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut c_int ) -> c_int ;
67076729 pub fn sched_setparam ( pid : crate :: pid_t , param : * const crate :: sched_param ) -> c_int ;
@@ -6717,8 +6739,10 @@ extern "C" {
67176739 data : * const c_void ,
67186740 ) -> c_int ;
67196741 pub fn personality ( persona : c_ulong ) -> c_int ;
6742+ #[ cfg_attr( gnu_time_bits64, link_name = "__prctl_time64" ) ]
67206743 pub fn prctl ( option : c_int , ...) -> c_int ;
67216744 pub fn sched_getparam ( pid : crate :: pid_t , param : * mut crate :: sched_param ) -> c_int ;
6745+ #[ cfg_attr( gnu_time_bits64, link_name = "__ppoll64" ) ]
67226746 pub fn ppoll (
67236747 fds : * mut crate :: pollfd ,
67246748 nfds : nfds_t ,
@@ -6731,6 +6755,7 @@ extern "C" {
67316755 ) -> c_int ;
67326756 pub fn pthread_mutexattr_setprotocol ( attr : * mut pthread_mutexattr_t , protocol : c_int ) -> c_int ;
67336757
6758+ #[ cfg_attr( gnu_time_bits64, link_name = "__pthread_mutex_timedlock64" ) ]
67346759 pub fn pthread_mutex_timedlock (
67356760 lock : * mut pthread_mutex_t ,
67366761 abstime : * const crate :: timespec ,
@@ -6765,6 +6790,7 @@ extern "C" {
67656790 ...
67666791 ) -> c_int ;
67676792 pub fn sched_getscheduler ( pid : crate :: pid_t ) -> c_int ;
6793+ #[ cfg_attr( gnu_time_bits64, link_name = "__clock_nanosleep_time64" ) ]
67686794 pub fn clock_nanosleep (
67696795 clk_id : crate :: clockid_t ,
67706796 flags : c_int ,
@@ -7022,7 +7048,9 @@ extern "C" {
70227048 ) -> c_int ;
70237049 pub fn timer_delete ( timerid : crate :: timer_t ) -> c_int ;
70247050 pub fn timer_getoverrun ( timerid : crate :: timer_t ) -> c_int ;
7051+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_gettime64" ) ]
70257052 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" ) ]
70267054 pub fn timer_settime (
70277055 timerid : crate :: timer_t ,
70287056 flags : c_int ,
0 commit comments