@@ -6231,6 +6231,7 @@ cfg_if! {
62316231 pub fn aio_error( aiocbp: * const aiocb) -> c_int;
62326232 #[ cfg_attr( gnu_file_offset_bits64, link_name = "aio_return64" ) ]
62336233 pub fn aio_return( aiocbp: * mut aiocb) -> ssize_t;
6234+ #[ cfg_attr( gnu_time_bits64, link_name = "__aio_suspend_time64" ) ]
62346235 pub fn aio_suspend(
62356236 aiocb_list: * const * const aiocb,
62366237 nitems: c_int,
@@ -6292,6 +6293,7 @@ cfg_if! {
62926293 riovcnt: c_ulong,
62936294 flags: c_ulong,
62946295 ) -> isize ;
6296+ #[ cfg_attr( gnu_time_bits64, link_name = "__futimes64" ) ]
62956297 pub fn futimes( fd: c_int, times: * const crate :: timeval) -> c_int;
62966298 }
62976299 }
@@ -6321,6 +6323,7 @@ cfg_if! {
63216323 msg_len: size_t,
63226324 msg_prio: * mut c_uint,
63236325 ) -> ssize_t;
6326+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedreceive_time64" ) ]
63246327 pub fn mq_timedreceive(
63256328 mqd: crate :: mqd_t,
63266329 msg_ptr: * mut c_char,
@@ -6334,6 +6337,7 @@ cfg_if! {
63346337 msg_len: size_t,
63356338 msg_prio: c_uint,
63366339 ) -> c_int;
6340+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedsend_time64" ) ]
63376341 pub fn mq_timedsend(
63386342 mqd: crate :: mqd_t,
63396343 msg_ptr: * const c_char,
@@ -6384,6 +6388,7 @@ extern "C" {
63846388 pub fn seed48 ( xseed : * mut c_ushort ) -> * mut c_ushort ;
63856389 pub fn lcong48 ( p : * mut c_ushort ) ;
63866390
6391+ #[ cfg_attr( gnu_time_bits64, link_name = "__lutimes64" ) ]
63876392 pub fn lutimes ( file : * const c_char , times : * const crate :: timeval ) -> c_int ;
63886393
63896394 pub fn setpwent ( ) ;
@@ -6405,11 +6410,14 @@ extern "C" {
64056410 pub fn shmget ( key : crate :: key_t , size : size_t , shmflg : c_int ) -> c_int ;
64066411 pub fn shmat ( shmid : c_int , shmaddr : * const c_void , shmflg : c_int ) -> * mut c_void ;
64076412 pub fn shmdt ( shmaddr : * const c_void ) -> c_int ;
6413+ #[ cfg_attr( gnu_time_bits64, link_name = "__shmctl64" ) ]
64086414 pub fn shmctl ( shmid : c_int , cmd : c_int , buf : * mut crate :: shmid_ds ) -> c_int ;
64096415 pub fn ftok ( pathname : * const c_char , proj_id : c_int ) -> crate :: key_t ;
64106416 pub fn semget ( key : crate :: key_t , nsems : c_int , semflag : c_int ) -> c_int ;
64116417 pub fn semop ( semid : c_int , sops : * mut crate :: sembuf , nsops : size_t ) -> c_int ;
6418+ #[ cfg_attr( gnu_time_bits64, link_name = "__semctl64" ) ]
64126419 pub fn semctl ( semid : c_int , semnum : c_int , cmd : c_int , ...) -> c_int ;
6420+ #[ cfg_attr( gnu_time_bits64, link_name = "__msgctl64" ) ]
64136421 pub fn msgctl ( msqid : c_int , cmd : c_int , buf : * mut msqid_ds ) -> c_int ;
64146422 pub fn msgget ( key : crate :: key_t , msgflg : c_int ) -> c_int ;
64156423 pub fn msgrcv (
@@ -6476,7 +6484,9 @@ extern "C" {
64766484 pub fn fremovexattr ( filedes : c_int , name : * const c_char ) -> c_int ;
64776485 pub fn signalfd ( fd : c_int , mask : * const crate :: sigset_t , flags : c_int ) -> c_int ;
64786486 pub fn timerfd_create ( clockid : crate :: clockid_t , flags : c_int ) -> c_int ;
6487+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_gettime64" ) ]
64796488 pub fn timerfd_gettime ( fd : c_int , curr_value : * mut itimerspec ) -> c_int ;
6489+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_settime64" ) ]
64806490 pub fn timerfd_settime (
64816491 fd : c_int ,
64826492 flags : c_int ,
@@ -6492,6 +6502,7 @@ extern "C" {
64926502 sigmask : * const crate :: sigset_t ,
64936503 ) -> c_int ;
64946504 pub fn dup3 ( oldfd : c_int , newfd : c_int , flags : c_int ) -> c_int ;
6505+ #[ cfg_attr( gnu_time_bits64, link_name = "__sigtimedwait64" ) ]
64956506 pub fn sigtimedwait (
64966507 set : * const sigset_t ,
64976508 info : * mut siginfo_t ,
@@ -6533,14 +6544,22 @@ extern "C" {
65336544 ...
65346545 ) -> * mut c_void ;
65356546
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+ ) ]
65376552 pub fn glob (
65386553 pattern : * const c_char ,
65396554 flags : c_int ,
65406555 errfunc : Option < extern "C" fn ( epath : * const c_char , errno : c_int ) -> c_int > ,
65416556 pglob : * mut crate :: glob_t ,
65426557 ) -> 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+ ) ]
65446563 pub fn globfree ( pglob : * mut crate :: glob_t ) ;
65456564
65466565 pub fn posix_madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
@@ -6603,6 +6622,7 @@ extern "C" {
66036622 pub fn umount ( target : * const c_char ) -> c_int ;
66046623 pub fn sched_get_priority_max ( policy : c_int ) -> c_int ;
66056624 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" ) ]
66066626 pub fn settimeofday ( tv : * const crate :: timeval , tz : * const crate :: timezone ) -> c_int ;
66076627 pub fn splice (
66086628 fd_in : c_int ,
@@ -6616,7 +6636,9 @@ extern "C" {
66166636 pub fn eventfd_read ( fd : c_int , value : * mut eventfd_t ) -> c_int ;
66176637 pub fn eventfd_write ( fd : c_int , value : eventfd_t ) -> c_int ;
66186638
6639+ #[ cfg_attr( gnu_time_bits64, link_name = "__sched_rr_get_interval64" ) ]
66196640 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" ) ]
66206642 pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const crate :: timespec ) -> c_int ;
66216643 pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut c_int ) -> c_int ;
66226644 pub fn sched_setparam ( pid : crate :: pid_t , param : * const crate :: sched_param ) -> c_int ;
@@ -6632,8 +6654,10 @@ extern "C" {
66326654 data : * const c_void ,
66336655 ) -> c_int ;
66346656 pub fn personality ( persona : c_ulong ) -> c_int ;
6657+ #[ cfg_attr( gnu_time_bits64, link_name = "__prctl_time64" ) ]
66356658 pub fn prctl ( option : c_int , ...) -> c_int ;
66366659 pub fn sched_getparam ( pid : crate :: pid_t , param : * mut crate :: sched_param ) -> c_int ;
6660+ #[ cfg_attr( gnu_time_bits64, link_name = "__ppoll64" ) ]
66376661 pub fn ppoll (
66386662 fds : * mut crate :: pollfd ,
66396663 nfds : nfds_t ,
@@ -6646,6 +6670,7 @@ extern "C" {
66466670 ) -> c_int ;
66476671 pub fn pthread_mutexattr_setprotocol ( attr : * mut pthread_mutexattr_t , protocol : c_int ) -> c_int ;
66486672
6673+ #[ cfg_attr( gnu_time_bits64, link_name = "__pthread_mutex_timedlock64" ) ]
66496674 pub fn pthread_mutex_timedlock (
66506675 lock : * mut pthread_mutex_t ,
66516676 abstime : * const crate :: timespec ,
@@ -6680,6 +6705,7 @@ extern "C" {
66806705 ...
66816706 ) -> c_int ;
66826707 pub fn sched_getscheduler ( pid : crate :: pid_t ) -> c_int ;
6708+ #[ cfg_attr( gnu_time_bits64, link_name = "__clock_nanosleep_time64" ) ]
66836709 pub fn clock_nanosleep (
66846710 clk_id : crate :: clockid_t ,
66856711 flags : c_int ,
@@ -6937,7 +6963,9 @@ extern "C" {
69376963 ) -> c_int ;
69386964 pub fn timer_delete ( timerid : crate :: timer_t ) -> c_int ;
69396965 pub fn timer_getoverrun ( timerid : crate :: timer_t ) -> c_int ;
6966+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_gettime64" ) ]
69406967 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" ) ]
69416969 pub fn timer_settime (
69426970 timerid : crate :: timer_t ,
69436971 flags : c_int ,
0 commit comments