@@ -5305,17 +5305,24 @@ safe_f! {
5305
5305
cfg_if ! {
5306
5306
if #[ cfg( all( not( target_env = "uclibc" ) , not( target_env = "ohos" ) ) ) ] {
5307
5307
extern "C" {
5308
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_read64" ) ]
5308
5309
pub fn aio_read( aiocbp: * mut aiocb) -> :: c_int;
5310
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_write64" ) ]
5309
5311
pub fn aio_write( aiocbp: * mut aiocb) -> :: c_int;
5310
5312
pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5313
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_error64" ) ]
5311
5314
pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
5315
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_return64" ) ]
5312
5316
pub fn aio_return( aiocbp: * mut aiocb) -> :: ssize_t;
5317
+ #[ cfg_attr( gnu_time64_abi, link_name = "__aio_suspend_time64" ) ]
5313
5318
pub fn aio_suspend(
5314
5319
aiocb_list: * const * const aiocb,
5315
5320
nitems: :: c_int,
5316
5321
timeout: * const :: timespec,
5317
5322
) -> :: c_int;
5323
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_cancel64" ) ]
5318
5324
pub fn aio_cancel( fd: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5325
+ #[ cfg_attr( gnu_time64_abi, link_name = "lio_listio64" ) ]
5319
5326
pub fn lio_listio(
5320
5327
mode: :: c_int,
5321
5328
aiocb_list: * const * mut aiocb,
@@ -5329,12 +5336,14 @@ cfg_if! {
5329
5336
cfg_if ! {
5330
5337
if #[ cfg( not( target_env = "uclibc" ) ) ] {
5331
5338
extern "C" {
5339
+ #[ cfg_attr( gnu_time64_abi, link_name = "pwritev64" ) ]
5332
5340
pub fn pwritev(
5333
5341
fd: :: c_int,
5334
5342
iov: * const :: iovec,
5335
5343
iovcnt: :: c_int,
5336
5344
offset: :: off_t,
5337
5345
) -> :: ssize_t;
5346
+ #[ cfg_attr( gnu_time64_abi, link_name = "preadv64" ) ]
5338
5347
pub fn preadv(
5339
5348
fd: :: c_int,
5340
5349
iov: * const :: iovec,
@@ -5370,6 +5379,7 @@ cfg_if! {
5370
5379
riovcnt: :: c_ulong,
5371
5380
flags: :: c_ulong,
5372
5381
) -> isize ;
5382
+ #[ cfg_attr( gnu_time64_abi, link_name = "__futimes64" ) ]
5373
5383
pub fn futimes(
5374
5384
fd: :: c_int,
5375
5385
times: * const :: timeval
@@ -5402,6 +5412,7 @@ cfg_if! {
5402
5412
msg_len: :: size_t,
5403
5413
msg_prio: * mut :: c_uint,
5404
5414
) -> :: ssize_t;
5415
+ #[ cfg_attr( gnu_time64_abi, link_name = "__mq_timedreceive_time64" ) ]
5405
5416
pub fn mq_timedreceive(
5406
5417
mqd: :: mqd_t,
5407
5418
msg_ptr: * mut :: c_char,
@@ -5415,6 +5426,7 @@ cfg_if! {
5415
5426
msg_len: :: size_t,
5416
5427
msg_prio: :: c_uint,
5417
5428
) -> :: c_int;
5429
+ #[ cfg_attr( gnu_time64_abi, link_name = "__mq_timedsend_time64" ) ]
5418
5430
pub fn mq_timedsend(
5419
5431
mqd: :: mqd_t,
5420
5432
msg_ptr: * const :: c_char,
@@ -5465,6 +5477,7 @@ extern "C" {
5465
5477
pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
5466
5478
pub fn lcong48 ( p : * mut :: c_ushort ) ;
5467
5479
5480
+ #[ cfg_attr( gnu_time64_abi, link_name = "__lutimes64" ) ]
5468
5481
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
5469
5482
5470
5483
pub fn setpwent ( ) ;
@@ -5486,11 +5499,14 @@ extern "C" {
5486
5499
pub fn shmget ( key : :: key_t , size : :: size_t , shmflg : :: c_int ) -> :: c_int ;
5487
5500
pub fn shmat ( shmid : :: c_int , shmaddr : * const :: c_void , shmflg : :: c_int ) -> * mut :: c_void ;
5488
5501
pub fn shmdt ( shmaddr : * const :: c_void ) -> :: c_int ;
5502
+ #[ cfg_attr( gnu_time64_abi, link_name = "__shmctl64" ) ]
5489
5503
pub fn shmctl ( shmid : :: c_int , cmd : :: c_int , buf : * mut :: shmid_ds ) -> :: c_int ;
5490
5504
pub fn ftok ( pathname : * const :: c_char , proj_id : :: c_int ) -> :: key_t ;
5491
5505
pub fn semget ( key : :: key_t , nsems : :: c_int , semflag : :: c_int ) -> :: c_int ;
5492
5506
pub fn semop ( semid : :: c_int , sops : * mut :: sembuf , nsops : :: size_t ) -> :: c_int ;
5507
+ #[ cfg_attr( gnu_time64_abi, link_name = "__semctl64" ) ]
5493
5508
pub fn semctl ( semid : :: c_int , semnum : :: c_int , cmd : :: c_int , ...) -> :: c_int ;
5509
+ #[ cfg_attr( gnu_time64_abi, link_name = "__msgctl64" ) ]
5494
5510
pub fn msgctl ( msqid : :: c_int , cmd : :: c_int , buf : * mut msqid_ds ) -> :: c_int ;
5495
5511
pub fn msgget ( key : :: key_t , msgflg : :: c_int ) -> :: c_int ;
5496
5512
pub fn msgrcv (
@@ -5510,7 +5526,9 @@ extern "C" {
5510
5526
pub fn mprotect ( addr : * mut :: c_void , len : :: size_t , prot : :: c_int ) -> :: c_int ;
5511
5527
pub fn __errno_location ( ) -> * mut :: c_int ;
5512
5528
5529
+ #[ cfg_attr( gnu_time64_abi, link_name = "fallocate64" ) ]
5513
5530
pub fn fallocate ( fd : :: c_int , mode : :: c_int , offset : :: off_t , len : :: off_t ) -> :: c_int ;
5531
+ #[ cfg_attr( gnu_time64_abi, link_name = "posix_fallocate64" ) ]
5514
5532
pub fn posix_fallocate ( fd : :: c_int , offset : :: off_t , len : :: off_t ) -> :: c_int ;
5515
5533
pub fn readahead ( fd : :: c_int , offset : :: off64_t , count : :: size_t ) -> :: ssize_t ;
5516
5534
pub fn getxattr (
@@ -5560,7 +5578,9 @@ extern "C" {
5560
5578
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
5561
5579
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
5562
5580
pub fn timerfd_create ( clockid : :: clockid_t , flags : :: c_int ) -> :: c_int ;
5581
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timerfd_gettime64" ) ]
5563
5582
pub fn timerfd_gettime ( fd : :: c_int , curr_value : * mut itimerspec ) -> :: c_int ;
5583
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timerfd_settime64" ) ]
5564
5584
pub fn timerfd_settime (
5565
5585
fd : :: c_int ,
5566
5586
flags : :: c_int ,
@@ -5581,8 +5601,11 @@ extern "C" {
5581
5601
sigmask : * const :: sigset_t ,
5582
5602
) -> :: c_int ;
5583
5603
pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
5604
+ #[ cfg_attr( gnu_time64_abi, link_name = "mkostemp64" ) ]
5584
5605
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
5606
+ #[ cfg_attr( gnu_time64_abi, link_name = "mkostemps64" ) ]
5585
5607
pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
5608
+ #[ cfg_attr( gnu_time64_abi, link_name = "__sigtimedwait64" ) ]
5586
5609
pub fn sigtimedwait (
5587
5610
set : * const sigset_t ,
5588
5611
info : * mut siginfo_t ,
@@ -5629,12 +5652,14 @@ extern "C" {
5629
5652
...
5630
5653
) -> * mut :: c_void ;
5631
5654
5655
+ #[ cfg_attr( gnu_time64_abi, link_name = "__glob64_time64" ) ]
5632
5656
pub fn glob (
5633
5657
pattern : * const c_char ,
5634
5658
flags : :: c_int ,
5635
5659
errfunc : :: Option < extern "C" fn ( epath : * const c_char , errno : :: c_int ) -> :: c_int > ,
5636
5660
pglob : * mut :: glob_t ,
5637
5661
) -> :: c_int ;
5662
+ #[ cfg_attr( gnu_time64_abi, link_name = "__globfree64_time64" ) ]
5638
5663
pub fn globfree ( pglob : * mut :: glob_t ) ;
5639
5664
5640
5665
pub fn posix_madvise ( addr : * mut :: c_void , len : :: size_t , advice : :: c_int ) -> :: c_int ;
@@ -5660,6 +5685,7 @@ extern "C" {
5660
5685
addr : * mut :: sockaddr ,
5661
5686
addrlen : * mut :: socklen_t ,
5662
5687
) -> :: ssize_t ;
5688
+ #[ cfg_attr( gnu_time64_abi, link_name = "mkstemps64" ) ]
5663
5689
pub fn mkstemps ( template : * mut :: c_char , suffixlen : :: c_int ) -> :: c_int ;
5664
5690
5665
5691
pub fn nl_langinfo ( item : :: nl_item ) -> * mut :: c_char ;
@@ -5696,6 +5722,7 @@ extern "C" {
5696
5722
pub fn umount ( target : * const :: c_char ) -> :: c_int ;
5697
5723
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
5698
5724
pub fn tee ( fd_in : :: c_int , fd_out : :: c_int , len : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
5725
+ #[ cfg_attr( gnu_time64_abi, link_name = "__settimeofday64" ) ]
5699
5726
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
5700
5727
pub fn splice (
5701
5728
fd_in : :: c_int ,
@@ -5709,7 +5736,9 @@ extern "C" {
5709
5736
pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
5710
5737
pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
5711
5738
5739
+ #[ cfg_attr( gnu_time64_abi, link_name = "__sched_rr_get_interval64" ) ]
5712
5740
pub fn sched_rr_get_interval ( pid : :: pid_t , tp : * mut :: timespec ) -> :: c_int ;
5741
+ #[ cfg_attr( gnu_time64_abi, link_name = "__sem_timedwait64" ) ]
5713
5742
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
5714
5743
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
5715
5744
pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5729,8 +5758,10 @@ extern "C" {
5729
5758
data : * const :: c_void ,
5730
5759
) -> :: c_int ;
5731
5760
pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
5761
+ #[ cfg_attr( gnu_time64_abi, link_name = "__prctl_time64" ) ]
5732
5762
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
5733
5763
pub fn sched_getparam ( pid : :: pid_t , param : * mut :: sched_param ) -> :: c_int ;
5764
+ #[ cfg_attr( gnu_time64_abi, link_name = "__ppoll64" ) ]
5734
5765
pub fn ppoll (
5735
5766
fds : * mut :: pollfd ,
5736
5767
nfds : nfds_t ,
@@ -5746,6 +5777,7 @@ extern "C" {
5746
5777
protocol : :: c_int ,
5747
5778
) -> :: c_int ;
5748
5779
5780
+ #[ cfg_attr( gnu_time64_abi, link_name = "__pthread_mutex_timedlock64" ) ]
5749
5781
pub fn pthread_mutex_timedlock (
5750
5782
lock : * mut pthread_mutex_t ,
5751
5783
abstime : * const :: timespec ,
@@ -5780,6 +5812,7 @@ extern "C" {
5780
5812
...
5781
5813
) -> :: c_int ;
5782
5814
pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
5815
+ #[ cfg_attr( gnu_time64_abi, link_name = "__clock_nanosleep_time64" ) ]
5783
5816
pub fn clock_nanosleep (
5784
5817
clk_id : :: clockid_t ,
5785
5818
flags : :: c_int ,
@@ -5831,6 +5864,7 @@ extern "C" {
5831
5864
policy : :: c_int ,
5832
5865
param : * const :: sched_param ,
5833
5866
) -> :: c_int ;
5867
+ #[ cfg_attr( gnu_time64_abi, link_name = "sendfile64" ) ]
5834
5868
pub fn sendfile (
5835
5869
out_fd : :: c_int ,
5836
5870
in_fd : :: c_int ,
@@ -6049,7 +6083,9 @@ extern "C" {
6049
6083
) -> :: c_int ;
6050
6084
pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
6051
6085
pub fn timer_getoverrun ( timerid : :: timer_t ) -> :: c_int ;
6086
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timer_gettime64" ) ]
6052
6087
pub fn timer_gettime ( timerid : :: timer_t , curr_value : * mut :: itimerspec ) -> :: c_int ;
6088
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timer_settime64" ) ]
6053
6089
pub fn timer_settime (
6054
6090
timerid : :: timer_t ,
6055
6091
flags : :: c_int ,
0 commit comments