@@ -5340,17 +5340,24 @@ safe_f! {
5340
5340
cfg_if ! {
5341
5341
if #[ cfg( all( not( target_env = "uclibc" ) , not( target_env = "ohos" ) ) ) ] {
5342
5342
extern "C" {
5343
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_read64" ) ]
5343
5344
pub fn aio_read( aiocbp: * mut aiocb) -> :: c_int;
5345
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_write64" ) ]
5344
5346
pub fn aio_write( aiocbp: * mut aiocb) -> :: c_int;
5345
5347
pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5348
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_error64" ) ]
5346
5349
pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
5350
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_return64" ) ]
5347
5351
pub fn aio_return( aiocbp: * mut aiocb) -> :: ssize_t;
5352
+ #[ cfg_attr( gnu_time64_abi, link_name = "__aio_suspend_time64" ) ]
5348
5353
pub fn aio_suspend(
5349
5354
aiocb_list: * const * const aiocb,
5350
5355
nitems: :: c_int,
5351
5356
timeout: * const :: timespec,
5352
5357
) -> :: c_int;
5358
+ #[ cfg_attr( gnu_time64_abi, link_name = "aio_cancel64" ) ]
5353
5359
pub fn aio_cancel( fd: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5360
+ #[ cfg_attr( gnu_time64_abi, link_name = "lio_listio64" ) ]
5354
5361
pub fn lio_listio(
5355
5362
mode: :: c_int,
5356
5363
aiocb_list: * const * mut aiocb,
@@ -5364,12 +5371,14 @@ cfg_if! {
5364
5371
cfg_if ! {
5365
5372
if #[ cfg( not( target_env = "uclibc" ) ) ] {
5366
5373
extern "C" {
5374
+ #[ cfg_attr( gnu_time64_abi, link_name = "pwritev64" ) ]
5367
5375
pub fn pwritev(
5368
5376
fd: :: c_int,
5369
5377
iov: * const :: iovec,
5370
5378
iovcnt: :: c_int,
5371
5379
offset: :: off_t,
5372
5380
) -> :: ssize_t;
5381
+ #[ cfg_attr( gnu_time64_abi, link_name = "preadv64" ) ]
5373
5382
pub fn preadv(
5374
5383
fd: :: c_int,
5375
5384
iov: * const :: iovec,
@@ -5405,6 +5414,7 @@ cfg_if! {
5405
5414
riovcnt: :: c_ulong,
5406
5415
flags: :: c_ulong,
5407
5416
) -> isize ;
5417
+ #[ cfg_attr( gnu_time64_abi, link_name = "__futimes64" ) ]
5408
5418
pub fn futimes(
5409
5419
fd: :: c_int,
5410
5420
times: * const :: timeval
@@ -5437,6 +5447,7 @@ cfg_if! {
5437
5447
msg_len: :: size_t,
5438
5448
msg_prio: * mut :: c_uint,
5439
5449
) -> :: ssize_t;
5450
+ #[ cfg_attr( gnu_time64_abi, link_name = "__mq_timedreceive_time64" ) ]
5440
5451
pub fn mq_timedreceive(
5441
5452
mqd: :: mqd_t,
5442
5453
msg_ptr: * mut :: c_char,
@@ -5450,6 +5461,7 @@ cfg_if! {
5450
5461
msg_len: :: size_t,
5451
5462
msg_prio: :: c_uint,
5452
5463
) -> :: c_int;
5464
+ #[ cfg_attr( gnu_time64_abi, link_name = "__mq_timedsend_time64" ) ]
5453
5465
pub fn mq_timedsend(
5454
5466
mqd: :: mqd_t,
5455
5467
msg_ptr: * const :: c_char,
@@ -5500,6 +5512,7 @@ extern "C" {
5500
5512
pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
5501
5513
pub fn lcong48 ( p : * mut :: c_ushort ) ;
5502
5514
5515
+ #[ cfg_attr( gnu_time64_abi, link_name = "__lutimes64" ) ]
5503
5516
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
5504
5517
5505
5518
pub fn setpwent ( ) ;
@@ -5521,11 +5534,14 @@ extern "C" {
5521
5534
pub fn shmget ( key : :: key_t , size : :: size_t , shmflg : :: c_int ) -> :: c_int ;
5522
5535
pub fn shmat ( shmid : :: c_int , shmaddr : * const :: c_void , shmflg : :: c_int ) -> * mut :: c_void ;
5523
5536
pub fn shmdt ( shmaddr : * const :: c_void ) -> :: c_int ;
5537
+ #[ cfg_attr( gnu_time64_abi, link_name = "__shmctl64" ) ]
5524
5538
pub fn shmctl ( shmid : :: c_int , cmd : :: c_int , buf : * mut :: shmid_ds ) -> :: c_int ;
5525
5539
pub fn ftok ( pathname : * const :: c_char , proj_id : :: c_int ) -> :: key_t ;
5526
5540
pub fn semget ( key : :: key_t , nsems : :: c_int , semflag : :: c_int ) -> :: c_int ;
5527
5541
pub fn semop ( semid : :: c_int , sops : * mut :: sembuf , nsops : :: size_t ) -> :: c_int ;
5542
+ #[ cfg_attr( gnu_time64_abi, link_name = "__semctl64" ) ]
5528
5543
pub fn semctl ( semid : :: c_int , semnum : :: c_int , cmd : :: c_int , ...) -> :: c_int ;
5544
+ #[ cfg_attr( gnu_time64_abi, link_name = "__msgctl64" ) ]
5529
5545
pub fn msgctl ( msqid : :: c_int , cmd : :: c_int , buf : * mut msqid_ds ) -> :: c_int ;
5530
5546
pub fn msgget ( key : :: key_t , msgflg : :: c_int ) -> :: c_int ;
5531
5547
pub fn msgrcv (
@@ -5545,7 +5561,9 @@ extern "C" {
5545
5561
pub fn mprotect ( addr : * mut :: c_void , len : :: size_t , prot : :: c_int ) -> :: c_int ;
5546
5562
pub fn __errno_location ( ) -> * mut :: c_int ;
5547
5563
5564
+ #[ cfg_attr( gnu_time64_abi, link_name = "fallocate64" ) ]
5548
5565
pub fn fallocate ( fd : :: c_int , mode : :: c_int , offset : :: off_t , len : :: off_t ) -> :: c_int ;
5566
+ #[ cfg_attr( gnu_time64_abi, link_name = "posix_fallocate64" ) ]
5549
5567
pub fn posix_fallocate ( fd : :: c_int , offset : :: off_t , len : :: off_t ) -> :: c_int ;
5550
5568
pub fn readahead ( fd : :: c_int , offset : :: off64_t , count : :: size_t ) -> :: ssize_t ;
5551
5569
pub fn getxattr (
@@ -5595,7 +5613,9 @@ extern "C" {
5595
5613
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
5596
5614
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
5597
5615
pub fn timerfd_create ( clockid : :: clockid_t , flags : :: c_int ) -> :: c_int ;
5616
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timerfd_gettime64" ) ]
5598
5617
pub fn timerfd_gettime ( fd : :: c_int , curr_value : * mut itimerspec ) -> :: c_int ;
5618
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timerfd_settime64" ) ]
5599
5619
pub fn timerfd_settime (
5600
5620
fd : :: c_int ,
5601
5621
flags : :: c_int ,
@@ -5616,8 +5636,11 @@ extern "C" {
5616
5636
sigmask : * const :: sigset_t ,
5617
5637
) -> :: c_int ;
5618
5638
pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
5639
+ #[ cfg_attr( gnu_time64_abi, link_name = "mkostemp64" ) ]
5619
5640
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
5641
+ #[ cfg_attr( gnu_time64_abi, link_name = "mkostemps64" ) ]
5620
5642
pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
5643
+ #[ cfg_attr( gnu_time64_abi, link_name = "__sigtimedwait64" ) ]
5621
5644
pub fn sigtimedwait (
5622
5645
set : * const sigset_t ,
5623
5646
info : * mut siginfo_t ,
@@ -5664,12 +5687,14 @@ extern "C" {
5664
5687
...
5665
5688
) -> * mut :: c_void ;
5666
5689
5690
+ #[ cfg_attr( gnu_time64_abi, link_name = "__glob64_time64" ) ]
5667
5691
pub fn glob (
5668
5692
pattern : * const c_char ,
5669
5693
flags : :: c_int ,
5670
5694
errfunc : :: Option < extern "C" fn ( epath : * const c_char , errno : :: c_int ) -> :: c_int > ,
5671
5695
pglob : * mut :: glob_t ,
5672
5696
) -> :: c_int ;
5697
+ #[ cfg_attr( gnu_time64_abi, link_name = "__globfree64_time64" ) ]
5673
5698
pub fn globfree ( pglob : * mut :: glob_t ) ;
5674
5699
5675
5700
pub fn posix_madvise ( addr : * mut :: c_void , len : :: size_t , advice : :: c_int ) -> :: c_int ;
@@ -5695,6 +5720,7 @@ extern "C" {
5695
5720
addr : * mut :: sockaddr ,
5696
5721
addrlen : * mut :: socklen_t ,
5697
5722
) -> :: ssize_t ;
5723
+ #[ cfg_attr( gnu_time64_abi, link_name = "mkstemps64" ) ]
5698
5724
pub fn mkstemps ( template : * mut :: c_char , suffixlen : :: c_int ) -> :: c_int ;
5699
5725
5700
5726
pub fn nl_langinfo ( item : :: nl_item ) -> * mut :: c_char ;
@@ -5731,6 +5757,7 @@ extern "C" {
5731
5757
pub fn umount ( target : * const :: c_char ) -> :: c_int ;
5732
5758
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
5733
5759
pub fn tee ( fd_in : :: c_int , fd_out : :: c_int , len : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
5760
+ #[ cfg_attr( gnu_time64_abi, link_name = "__settimeofday64" ) ]
5734
5761
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
5735
5762
pub fn splice (
5736
5763
fd_in : :: c_int ,
@@ -5744,7 +5771,9 @@ extern "C" {
5744
5771
pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
5745
5772
pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
5746
5773
5774
+ #[ cfg_attr( gnu_time64_abi, link_name = "__sched_rr_get_interval64" ) ]
5747
5775
pub fn sched_rr_get_interval ( pid : :: pid_t , tp : * mut :: timespec ) -> :: c_int ;
5776
+ #[ cfg_attr( gnu_time64_abi, link_name = "__sem_timedwait64" ) ]
5748
5777
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
5749
5778
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
5750
5779
pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5764,8 +5793,10 @@ extern "C" {
5764
5793
data : * const :: c_void ,
5765
5794
) -> :: c_int ;
5766
5795
pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
5796
+ #[ cfg_attr( gnu_time64_abi, link_name = "__prctl_time64" ) ]
5767
5797
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
5768
5798
pub fn sched_getparam ( pid : :: pid_t , param : * mut :: sched_param ) -> :: c_int ;
5799
+ #[ cfg_attr( gnu_time64_abi, link_name = "__ppoll64" ) ]
5769
5800
pub fn ppoll (
5770
5801
fds : * mut :: pollfd ,
5771
5802
nfds : nfds_t ,
@@ -5781,6 +5812,7 @@ extern "C" {
5781
5812
protocol : :: c_int ,
5782
5813
) -> :: c_int ;
5783
5814
5815
+ #[ cfg_attr( gnu_time64_abi, link_name = "__pthread_mutex_timedlock64" ) ]
5784
5816
pub fn pthread_mutex_timedlock (
5785
5817
lock : * mut pthread_mutex_t ,
5786
5818
abstime : * const :: timespec ,
@@ -5815,6 +5847,7 @@ extern "C" {
5815
5847
...
5816
5848
) -> :: c_int ;
5817
5849
pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
5850
+ #[ cfg_attr( gnu_time64_abi, link_name = "__clock_nanosleep_time64" ) ]
5818
5851
pub fn clock_nanosleep (
5819
5852
clk_id : :: clockid_t ,
5820
5853
flags : :: c_int ,
@@ -5866,6 +5899,7 @@ extern "C" {
5866
5899
policy : :: c_int ,
5867
5900
param : * const :: sched_param ,
5868
5901
) -> :: c_int ;
5902
+ #[ cfg_attr( gnu_time64_abi, link_name = "sendfile64" ) ]
5869
5903
pub fn sendfile (
5870
5904
out_fd : :: c_int ,
5871
5905
in_fd : :: c_int ,
@@ -6084,7 +6118,9 @@ extern "C" {
6084
6118
) -> :: c_int ;
6085
6119
pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
6086
6120
pub fn timer_getoverrun ( timerid : :: timer_t ) -> :: c_int ;
6121
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timer_gettime64" ) ]
6087
6122
pub fn timer_gettime ( timerid : :: timer_t , curr_value : * mut :: itimerspec ) -> :: c_int ;
6123
+ #[ cfg_attr( gnu_time64_abi, link_name = "__timer_settime64" ) ]
6088
6124
pub fn timer_settime (
6089
6125
timerid : :: timer_t ,
6090
6126
flags : :: c_int ,
0 commit comments