@@ -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,
@@ -5315,10 +5315,7 @@ cfg_if! {
5315
5315
pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5316
5316
pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
5317
5317
pub fn aio_return( aiocbp: * mut aiocb) -> :: ssize_t;
5318
- #[ cfg_attr(
5319
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5320
- link_name = "__aio_suspend_time64"
5321
- ) ]
5318
+ #[ cfg_attr( musl_time64_abi, link_name = "__aio_suspend_time64" ) ]
5322
5319
pub fn aio_suspend(
5323
5320
aiocb_list: * const * const aiocb,
5324
5321
nitems: :: c_int,
@@ -5379,10 +5376,7 @@ cfg_if! {
5379
5376
riovcnt: :: c_ulong,
5380
5377
flags: :: c_ulong,
5381
5378
) -> isize ;
5382
- #[ cfg_attr(
5383
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5384
- link_name = "__futimes_time64"
5385
- ) ]
5379
+ #[ cfg_attr( musl_time64_abi, link_name = "__futimes_time64" ) ]
5386
5380
pub fn futimes(
5387
5381
fd: :: c_int,
5388
5382
times: * const :: timeval
@@ -5441,10 +5435,7 @@ extern "C" {
5441
5435
pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
5442
5436
pub fn lcong48 ( p : * mut :: c_ushort ) ;
5443
5437
5444
- #[ cfg_attr(
5445
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5446
- link_name = "__lutimes_time64"
5447
- ) ]
5438
+ #[ cfg_attr( musl_time64_abi, link_name = "__lutimes_time64" ) ]
5448
5439
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
5449
5440
5450
5441
pub fn setpwent ( ) ;
@@ -5540,15 +5531,9 @@ extern "C" {
5540
5531
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
5541
5532
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
5542
5533
pub fn timerfd_create ( clockid : :: clockid_t , flags : :: c_int ) -> :: c_int ;
5543
- #[ cfg_attr(
5544
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5545
- link_name = "__timerfd_gettime64"
5546
- ) ]
5534
+ #[ cfg_attr( musl_time64_abi, link_name = "__timerfd_gettime64" ) ]
5547
5535
pub fn timerfd_gettime ( fd : :: c_int , curr_value : * mut itimerspec ) -> :: c_int ;
5548
- #[ cfg_attr(
5549
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5550
- link_name = "__timerfd_settime64"
5551
- ) ]
5536
+ #[ cfg_attr( musl_time64_abi, link_name = "__timerfd_settime64" ) ]
5552
5537
pub fn timerfd_settime (
5553
5538
fd : :: c_int ,
5554
5539
flags : :: c_int ,
@@ -5570,10 +5555,7 @@ extern "C" {
5570
5555
msg_len : :: size_t ,
5571
5556
msg_prio : * mut :: c_uint ,
5572
5557
) -> :: ssize_t ;
5573
- #[ cfg_attr(
5574
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5575
- link_name = "__mq_timedreceive_time64"
5576
- ) ]
5558
+ #[ cfg_attr( musl_time64_abi, link_name = "__mq_timedreceive_time64" ) ]
5577
5559
pub fn mq_timedreceive (
5578
5560
mqd : :: mqd_t ,
5579
5561
msg_ptr : * mut :: c_char ,
@@ -5587,10 +5569,7 @@ extern "C" {
5587
5569
msg_len : :: size_t ,
5588
5570
msg_prio : :: c_uint ,
5589
5571
) -> :: c_int ;
5590
- #[ cfg_attr(
5591
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5592
- link_name = "__mq_timedsend_time64"
5593
- ) ]
5572
+ #[ cfg_attr( musl_time64_abi, link_name = "__mq_timedsend_time64" ) ]
5594
5573
pub fn mq_timedsend (
5595
5574
mqd : :: mqd_t ,
5596
5575
msg_ptr : * const :: c_char ,
@@ -5610,10 +5589,7 @@ extern "C" {
5610
5589
pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
5611
5590
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
5612
5591
pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
5613
- #[ cfg_attr(
5614
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5615
- link_name = "__sigtimedwait_time64"
5616
- ) ]
5592
+ #[ cfg_attr( musl_time64_abi, link_name = "__sigtimedwait_time64" ) ]
5617
5593
pub fn sigtimedwait (
5618
5594
set : * const sigset_t ,
5619
5595
info : * mut siginfo_t ,
@@ -5727,10 +5703,7 @@ extern "C" {
5727
5703
pub fn umount ( target : * const :: c_char ) -> :: c_int ;
5728
5704
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
5729
5705
pub fn tee ( fd_in : :: c_int , fd_out : :: c_int , len : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
5730
- #[ cfg_attr(
5731
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5732
- link_name = "__settimeofday_time64"
5733
- ) ]
5706
+ #[ cfg_attr( musl_time64_abi, link_name = "__settimeofday_time64" ) ]
5734
5707
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
5735
5708
pub fn splice (
5736
5709
fd_in : :: c_int ,
@@ -5744,15 +5717,9 @@ extern "C" {
5744
5717
pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
5745
5718
pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
5746
5719
5747
- #[ cfg_attr(
5748
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5749
- link_name = "__sched_rr_get_interval_time64"
5750
- ) ]
5720
+ #[ cfg_attr( musl_time64_abi, link_name = "__sched_rr_get_interval_time64" ) ]
5751
5721
pub fn sched_rr_get_interval ( pid : :: pid_t , tp : * mut :: timespec ) -> :: c_int ;
5752
- #[ cfg_attr(
5753
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5754
- link_name = "__sem_timedwait_time64"
5755
- ) ]
5722
+ #[ cfg_attr( musl_time64_abi, link_name = "__sem_timedwait_time64" ) ]
5756
5723
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
5757
5724
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
5758
5725
pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5774,10 +5741,7 @@ extern "C" {
5774
5741
pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
5775
5742
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
5776
5743
pub fn sched_getparam ( pid : :: pid_t , param : * mut :: sched_param ) -> :: c_int ;
5777
- #[ cfg_attr(
5778
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5779
- link_name = "__ppoll_time64"
5780
- ) ]
5744
+ #[ cfg_attr( musl_time64_abi, link_name = "__ppoll_time64" ) ]
5781
5745
pub fn ppoll (
5782
5746
fds : * mut :: pollfd ,
5783
5747
nfds : nfds_t ,
@@ -5793,10 +5757,7 @@ extern "C" {
5793
5757
protocol : :: c_int ,
5794
5758
) -> :: c_int ;
5795
5759
pub fn pthread_mutex_consistent ( mutex : * mut pthread_mutex_t ) -> :: c_int ;
5796
- #[ cfg_attr(
5797
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5798
- link_name = "__pthread_mutex_timedlock_time64"
5799
- ) ]
5760
+ #[ cfg_attr( musl_time64_abi, link_name = "__pthread_mutex_timedlock_time64" ) ]
5800
5761
pub fn pthread_mutex_timedlock (
5801
5762
lock : * mut pthread_mutex_t ,
5802
5763
abstime : * const :: timespec ,
@@ -5831,10 +5792,7 @@ extern "C" {
5831
5792
...
5832
5793
) -> :: c_int ;
5833
5794
pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
5834
- #[ cfg_attr(
5835
- all( target_env = "musl" , target_pointer_width = "32" ) ,
5836
- link_name = "__clock_nanosleep_time64"
5837
- ) ]
5795
+ #[ cfg_attr( musl_time64_abi, link_name = "__clock_nanosleep_time64" ) ]
5838
5796
pub fn clock_nanosleep (
5839
5797
clk_id : :: clockid_t ,
5840
5798
flags : :: c_int ,
@@ -6104,15 +6062,9 @@ extern "C" {
6104
6062
) -> :: c_int ;
6105
6063
pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
6106
6064
pub fn timer_getoverrun ( timerid : :: timer_t ) -> :: c_int ;
6107
- #[ cfg_attr(
6108
- all( target_env = "musl" , target_pointer_width = "32" ) ,
6109
- link_name = "__timer_gettime64"
6110
- ) ]
6065
+ #[ cfg_attr( musl_time64_abi, link_name = "__timer_gettime64" ) ]
6111
6066
pub fn timer_gettime ( timerid : :: timer_t , curr_value : * mut :: itimerspec ) -> :: c_int ;
6112
- #[ cfg_attr(
6113
- all( target_env = "musl" , target_pointer_width = "32" ) ,
6114
- link_name = "__timer_settime64"
6115
- ) ]
6067
+ #[ cfg_attr( musl_time64_abi, link_name = "__timer_settime64" ) ]
6116
6068
pub fn timer_settime (
6117
6069
timerid : :: timer_t ,
6118
6070
flags : :: c_int ,
0 commit comments