@@ -6265,6 +6265,7 @@ cfg_if! {
62656265 pub fn aio_error( aiocbp: * const aiocb) -> c_int;
62666266 #[ cfg_attr( gnu_file_offset_bits64, link_name = "aio_return64" ) ]
62676267 pub fn aio_return( aiocbp: * mut aiocb) -> ssize_t;
6268+ #[ cfg_attr( gnu_time_bits64, link_name = "__aio_suspend_time64" ) ]
62686269 pub fn aio_suspend(
62696270 aiocb_list: * const * const aiocb,
62706271 nitems: c_int,
@@ -6326,6 +6327,7 @@ cfg_if! {
63266327 riovcnt: c_ulong,
63276328 flags: c_ulong,
63286329 ) -> isize ;
6330+ #[ cfg_attr( gnu_time_bits64, link_name = "__futimes64" ) ]
63296331 pub fn futimes( fd: c_int, times: * const crate :: timeval) -> c_int;
63306332 }
63316333 }
@@ -6355,6 +6357,7 @@ cfg_if! {
63556357 msg_len: size_t,
63566358 msg_prio: * mut c_uint,
63576359 ) -> ssize_t;
6360+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedreceive_time64" ) ]
63586361 pub fn mq_timedreceive(
63596362 mqd: crate :: mqd_t,
63606363 msg_ptr: * mut c_char,
@@ -6368,6 +6371,7 @@ cfg_if! {
63686371 msg_len: size_t,
63696372 msg_prio: c_uint,
63706373 ) -> c_int;
6374+ #[ cfg_attr( gnu_time_bits64, link_name = "__mq_timedsend_time64" ) ]
63716375 pub fn mq_timedsend(
63726376 mqd: crate :: mqd_t,
63736377 msg_ptr: * const c_char,
@@ -6418,6 +6422,7 @@ extern "C" {
64186422 pub fn seed48 ( xseed : * mut c_ushort ) -> * mut c_ushort ;
64196423 pub fn lcong48 ( p : * mut c_ushort ) ;
64206424
6425+ #[ cfg_attr( gnu_time_bits64, link_name = "__lutimes64" ) ]
64216426 pub fn lutimes ( file : * const c_char , times : * const crate :: timeval ) -> c_int ;
64226427
64236428 pub fn setpwent ( ) ;
@@ -6439,11 +6444,14 @@ extern "C" {
64396444 pub fn shmget ( key : crate :: key_t , size : size_t , shmflg : c_int ) -> c_int ;
64406445 pub fn shmat ( shmid : c_int , shmaddr : * const c_void , shmflg : c_int ) -> * mut c_void ;
64416446 pub fn shmdt ( shmaddr : * const c_void ) -> c_int ;
6447+ #[ cfg_attr( gnu_time_bits64, link_name = "__shmctl64" ) ]
64426448 pub fn shmctl ( shmid : c_int , cmd : c_int , buf : * mut crate :: shmid_ds ) -> c_int ;
64436449 pub fn ftok ( pathname : * const c_char , proj_id : c_int ) -> crate :: key_t ;
64446450 pub fn semget ( key : crate :: key_t , nsems : c_int , semflag : c_int ) -> c_int ;
64456451 pub fn semop ( semid : c_int , sops : * mut crate :: sembuf , nsops : size_t ) -> c_int ;
6452+ #[ cfg_attr( gnu_time_bits64, link_name = "__semctl64" ) ]
64466453 pub fn semctl ( semid : c_int , semnum : c_int , cmd : c_int , ...) -> c_int ;
6454+ #[ cfg_attr( gnu_time_bits64, link_name = "__msgctl64" ) ]
64476455 pub fn msgctl ( msqid : c_int , cmd : c_int , buf : * mut msqid_ds ) -> c_int ;
64486456 pub fn msgget ( key : crate :: key_t , msgflg : c_int ) -> c_int ;
64496457 pub fn msgrcv (
@@ -6510,7 +6518,9 @@ extern "C" {
65106518 pub fn fremovexattr ( filedes : c_int , name : * const c_char ) -> c_int ;
65116519 pub fn signalfd ( fd : c_int , mask : * const crate :: sigset_t , flags : c_int ) -> c_int ;
65126520 pub fn timerfd_create ( clockid : crate :: clockid_t , flags : c_int ) -> c_int ;
6521+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_gettime64" ) ]
65136522 pub fn timerfd_gettime ( fd : c_int , curr_value : * mut itimerspec ) -> c_int ;
6523+ #[ cfg_attr( gnu_time_bits64, link_name = "__timerfd_settime64" ) ]
65146524 pub fn timerfd_settime (
65156525 fd : c_int ,
65166526 flags : c_int ,
@@ -6526,6 +6536,7 @@ extern "C" {
65266536 sigmask : * const crate :: sigset_t ,
65276537 ) -> c_int ;
65286538 pub fn dup3 ( oldfd : c_int , newfd : c_int , flags : c_int ) -> c_int ;
6539+ #[ cfg_attr( gnu_time_bits64, link_name = "__sigtimedwait64" ) ]
65296540 pub fn sigtimedwait (
65306541 set : * const sigset_t ,
65316542 info : * mut siginfo_t ,
@@ -6567,14 +6578,22 @@ extern "C" {
65676578 ...
65686579 ) -> * mut c_void ;
65696580
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+ ) ]
65716586 pub fn glob (
65726587 pattern : * const c_char ,
65736588 flags : c_int ,
65746589 errfunc : Option < extern "C" fn ( epath : * const c_char , errno : c_int ) -> c_int > ,
65756590 pglob : * mut crate :: glob_t ,
65766591 ) -> 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+ ) ]
65786597 pub fn globfree ( pglob : * mut crate :: glob_t ) ;
65796598
65806599 pub fn posix_madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
@@ -6637,6 +6656,7 @@ extern "C" {
66376656 pub fn umount ( target : * const c_char ) -> c_int ;
66386657 pub fn sched_get_priority_max ( policy : c_int ) -> c_int ;
66396658 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" ) ]
66406660 pub fn settimeofday ( tv : * const crate :: timeval , tz : * const crate :: timezone ) -> c_int ;
66416661 pub fn splice (
66426662 fd_in : c_int ,
@@ -6650,7 +6670,9 @@ extern "C" {
66506670 pub fn eventfd_read ( fd : c_int , value : * mut eventfd_t ) -> c_int ;
66516671 pub fn eventfd_write ( fd : c_int , value : eventfd_t ) -> c_int ;
66526672
6673+ #[ cfg_attr( gnu_time_bits64, link_name = "__sched_rr_get_interval64" ) ]
66536674 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" ) ]
66546676 pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const crate :: timespec ) -> c_int ;
66556677 pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut c_int ) -> c_int ;
66566678 pub fn sched_setparam ( pid : crate :: pid_t , param : * const crate :: sched_param ) -> c_int ;
@@ -6666,8 +6688,10 @@ extern "C" {
66666688 data : * const c_void ,
66676689 ) -> c_int ;
66686690 pub fn personality ( persona : c_ulong ) -> c_int ;
6691+ #[ cfg_attr( gnu_time_bits64, link_name = "__prctl_time64" ) ]
66696692 pub fn prctl ( option : c_int , ...) -> c_int ;
66706693 pub fn sched_getparam ( pid : crate :: pid_t , param : * mut crate :: sched_param ) -> c_int ;
6694+ #[ cfg_attr( gnu_time_bits64, link_name = "__ppoll64" ) ]
66716695 pub fn ppoll (
66726696 fds : * mut crate :: pollfd ,
66736697 nfds : nfds_t ,
@@ -6680,6 +6704,7 @@ extern "C" {
66806704 ) -> c_int ;
66816705 pub fn pthread_mutexattr_setprotocol ( attr : * mut pthread_mutexattr_t , protocol : c_int ) -> c_int ;
66826706
6707+ #[ cfg_attr( gnu_time_bits64, link_name = "__pthread_mutex_timedlock64" ) ]
66836708 pub fn pthread_mutex_timedlock (
66846709 lock : * mut pthread_mutex_t ,
66856710 abstime : * const crate :: timespec ,
@@ -6714,6 +6739,7 @@ extern "C" {
67146739 ...
67156740 ) -> c_int ;
67166741 pub fn sched_getscheduler ( pid : crate :: pid_t ) -> c_int ;
6742+ #[ cfg_attr( gnu_time_bits64, link_name = "__clock_nanosleep_time64" ) ]
67176743 pub fn clock_nanosleep (
67186744 clk_id : crate :: clockid_t ,
67196745 flags : c_int ,
@@ -6971,7 +6997,9 @@ extern "C" {
69716997 ) -> c_int ;
69726998 pub fn timer_delete ( timerid : crate :: timer_t ) -> c_int ;
69736999 pub fn timer_getoverrun ( timerid : crate :: timer_t ) -> c_int ;
7000+ #[ cfg_attr( gnu_time_bits64, link_name = "__timer_gettime64" ) ]
69747001 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" ) ]
69757003 pub fn timer_settime (
69767004 timerid : crate :: timer_t ,
69777005 flags : c_int ,
@@ -7013,6 +7041,7 @@ extern "C" {
70137041
70147042 pub fn klogctl ( syslog_type : c_int , bufp : * mut c_char , len : c_int ) -> c_int ;
70157043
7044+ #[ cfg_attr( gnu_time_bits64, link_name = "__ioctl_time64" ) ]
70167045 pub fn ioctl ( fd : c_int , request : Ioctl , ...) -> c_int ;
70177046}
70187047
0 commit comments