@@ -322,11 +322,11 @@ s! {
322
322
}
323
323
324
324
pub struct input_event {
325
- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
325
+ #[ cfg( musl_time64_abi ) ]
326
326
pub input_event_sec: :: c_ulong,
327
- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
327
+ #[ cfg( musl_time64_abi ) ]
328
328
pub input_event_usec: :: c_ulong,
329
- #[ cfg( not( all ( target_env = "musl" , target_pointer_width = "32" ) ) ) ]
329
+ #[ cfg( not( musl_time64_abi ) ) ]
330
330
pub time: :: timeval,
331
331
pub type_: :: __u16,
332
332
pub code: :: __u16,
@@ -5350,10 +5350,7 @@ cfg_if! {
5350
5350
pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5351
5351
pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
5352
5352
pub fn aio_return( aiocbp: * mut aiocb) -> :: ssize_t;
5353
- #[ cfg_attr(
5354
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5355
- link_name = "__aio_suspend_time64"
5356
- ) ]
5353
+ #[ cfg_attr( musl_time64_abi, link_name = "__aio_suspend_time64" ) ]
5357
5354
pub fn aio_suspend(
5358
5355
aiocb_list: * const * const aiocb,
5359
5356
nitems: :: c_int,
@@ -5414,10 +5411,7 @@ cfg_if! {
5414
5411
riovcnt: :: c_ulong,
5415
5412
flags: :: c_ulong,
5416
5413
) -> isize ;
5417
- #[ cfg_attr(
5418
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5419
- link_name = "__futimes_time64"
5420
- ) ]
5414
+ #[ cfg_attr( musl_time64_abi, link_name = "__futimes_time64" ) ]
5421
5415
pub fn futimes(
5422
5416
fd: :: c_int,
5423
5417
times: * const :: timeval
@@ -5476,10 +5470,7 @@ extern "C" {
5476
5470
pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
5477
5471
pub fn lcong48 ( p : * mut :: c_ushort ) ;
5478
5472
5479
- #[ cfg_attr(
5480
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5481
- link_name = "__lutimes_time64"
5482
- ) ]
5473
+ #[ cfg_attr( musl_time64_abi, link_name = "__lutimes_time64" ) ]
5483
5474
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
5484
5475
5485
5476
pub fn setpwent ( ) ;
@@ -5575,15 +5566,9 @@ extern "C" {
5575
5566
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
5576
5567
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
5577
5568
pub fn timerfd_create ( clockid : :: clockid_t , flags : :: c_int ) -> :: c_int ;
5578
- #[ cfg_attr(
5579
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5580
- link_name = "__timerfd_gettime64"
5581
- ) ]
5569
+ #[ cfg_attr( musl_time64_abi, link_name = "__timerfd_gettime64" ) ]
5582
5570
pub fn timerfd_gettime ( fd : :: c_int , curr_value : * mut itimerspec ) -> :: c_int ;
5583
- #[ cfg_attr(
5584
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5585
- link_name = "__timerfd_settime64"
5586
- ) ]
5571
+ #[ cfg_attr( musl_time64_abi, link_name = "__timerfd_settime64" ) ]
5587
5572
pub fn timerfd_settime (
5588
5573
fd : :: c_int ,
5589
5574
flags : :: c_int ,
@@ -5605,10 +5590,7 @@ extern "C" {
5605
5590
msg_len : :: size_t ,
5606
5591
msg_prio : * mut :: c_uint ,
5607
5592
) -> :: ssize_t ;
5608
- #[ cfg_attr(
5609
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5610
- link_name = "__mq_timedreceive_time64"
5611
- ) ]
5593
+ #[ cfg_attr( musl_time64_abi, link_name = "__mq_timedreceive_time64" ) ]
5612
5594
pub fn mq_timedreceive (
5613
5595
mqd : :: mqd_t ,
5614
5596
msg_ptr : * mut :: c_char ,
@@ -5622,10 +5604,7 @@ extern "C" {
5622
5604
msg_len : :: size_t ,
5623
5605
msg_prio : :: c_uint ,
5624
5606
) -> :: c_int ;
5625
- #[ cfg_attr(
5626
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5627
- link_name = "__mq_timedsend_time64"
5628
- ) ]
5607
+ #[ cfg_attr( musl_time64_abi, link_name = "__mq_timedsend_time64" ) ]
5629
5608
pub fn mq_timedsend (
5630
5609
mqd : :: mqd_t ,
5631
5610
msg_ptr : * const :: c_char ,
@@ -5645,10 +5624,7 @@ extern "C" {
5645
5624
pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
5646
5625
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
5647
5626
pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
5648
- #[ cfg_attr(
5649
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5650
- link_name = "__sigtimedwait_time64"
5651
- ) ]
5627
+ #[ cfg_attr( musl_time64_abi, link_name = "__sigtimedwait_time64" ) ]
5652
5628
pub fn sigtimedwait (
5653
5629
set : * const sigset_t ,
5654
5630
info : * mut siginfo_t ,
@@ -5762,10 +5738,7 @@ extern "C" {
5762
5738
pub fn umount ( target : * const :: c_char ) -> :: c_int ;
5763
5739
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
5764
5740
pub fn tee ( fd_in : :: c_int , fd_out : :: c_int , len : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
5765
- #[ cfg_attr(
5766
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5767
- link_name = "__settimeofday_time64"
5768
- ) ]
5741
+ #[ cfg_attr( musl_time64_abi, link_name = "__settimeofday_time64" ) ]
5769
5742
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
5770
5743
pub fn splice (
5771
5744
fd_in : :: c_int ,
@@ -5779,15 +5752,9 @@ extern "C" {
5779
5752
pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
5780
5753
pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
5781
5754
5782
- #[ cfg_attr(
5783
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5784
- link_name = "__sched_rr_get_interval_time64"
5785
- ) ]
5755
+ #[ cfg_attr( musl_time64_abi, link_name = "__sched_rr_get_interval_time64" ) ]
5786
5756
pub fn sched_rr_get_interval ( pid : :: pid_t , tp : * mut :: timespec ) -> :: c_int ;
5787
- #[ cfg_attr(
5788
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5789
- link_name = "__sem_timedwait_time64"
5790
- ) ]
5757
+ #[ cfg_attr( musl_time64_abi, link_name = "__sem_timedwait_time64" ) ]
5791
5758
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
5792
5759
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
5793
5760
pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5809,10 +5776,7 @@ extern "C" {
5809
5776
pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
5810
5777
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
5811
5778
pub fn sched_getparam ( pid : :: pid_t , param : * mut :: sched_param ) -> :: c_int ;
5812
- #[ cfg_attr(
5813
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5814
- link_name = "__ppoll_time64"
5815
- ) ]
5779
+ #[ cfg_attr( musl_time64_abi, link_name = "__ppoll_time64" ) ]
5816
5780
pub fn ppoll (
5817
5781
fds : * mut :: pollfd ,
5818
5782
nfds : nfds_t ,
@@ -5828,10 +5792,7 @@ extern "C" {
5828
5792
protocol : :: c_int ,
5829
5793
) -> :: c_int ;
5830
5794
pub fn pthread_mutex_consistent ( mutex : * mut pthread_mutex_t ) -> :: c_int ;
5831
- #[ cfg_attr(
5832
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5833
- link_name = "__pthread_mutex_timedlock_time64"
5834
- ) ]
5795
+ #[ cfg_attr( musl_time64_abi, link_name = "__pthread_mutex_timedlock_time64" ) ]
5835
5796
pub fn pthread_mutex_timedlock (
5836
5797
lock : * mut pthread_mutex_t ,
5837
5798
abstime : * const :: timespec ,
@@ -5866,10 +5827,7 @@ extern "C" {
5866
5827
...
5867
5828
) -> :: c_int ;
5868
5829
pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
5869
- #[ cfg_attr(
5870
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5871
- link_name = "__clock_nanosleep_time64"
5872
- ) ]
5830
+ #[ cfg_attr( musl_time64_abi, link_name = "__clock_nanosleep_time64" ) ]
5873
5831
pub fn clock_nanosleep (
5874
5832
clk_id : :: clockid_t ,
5875
5833
flags : :: c_int ,
@@ -6139,15 +6097,9 @@ extern "C" {
6139
6097
) -> :: c_int ;
6140
6098
pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
6141
6099
pub fn timer_getoverrun ( timerid : :: timer_t ) -> :: c_int ;
6142
- #[ cfg_attr(
6143
- all( target_env = "musl" , target_pointer_width = "32" ) ,
6144
- link_name = "__timer_gettime64"
6145
- ) ]
6100
+ #[ cfg_attr( musl_time64_abi, link_name = "__timer_gettime64" ) ]
6146
6101
pub fn timer_gettime ( timerid : :: timer_t , curr_value : * mut :: itimerspec ) -> :: c_int ;
6147
- #[ cfg_attr(
6148
- all( target_env = "musl" , target_pointer_width = "32" ) ,
6149
- link_name = "__timer_settime64"
6150
- ) ]
6102
+ #[ cfg_attr( musl_time64_abi, link_name = "__timer_settime64" ) ]
6151
6103
pub fn timer_settime (
6152
6104
timerid : :: timer_t ,
6153
6105
flags : :: c_int ,
0 commit comments