@@ -184,11 +184,11 @@ s! {
184
184
}
185
185
186
186
pub struct input_event {
187
- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
187
+ #[ cfg( musl_time64_abi ) ]
188
188
pub input_event_sec: :: c_ulong,
189
- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
189
+ #[ cfg( musl_time64_abi ) ]
190
190
pub input_event_usec: :: c_ulong,
191
- #[ cfg( not( all ( target_env = "musl" , target_pointer_width = "32" ) ) ) ]
191
+ #[ cfg( not( musl_time64_abi ) ) ]
192
192
pub time: :: timeval,
193
193
pub type_: :: __u16,
194
194
pub code: :: __u16,
@@ -3757,10 +3757,7 @@ cfg_if! {
3757
3757
pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
3758
3758
pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
3759
3759
pub fn aio_return( aiocbp: * mut aiocb) -> :: ssize_t;
3760
- #[ cfg_attr(
3761
- all( target_env = "musl" , target_pointer_width = "32" ) ,
3762
- link_name = "__aio_suspend_time64"
3763
- ) ]
3760
+ #[ cfg_attr( musl_time64_abi, link_name = "__aio_suspend_time64" ) ]
3764
3761
pub fn aio_suspend(
3765
3762
aiocb_list: * const * const aiocb,
3766
3763
nitems: :: c_int,
@@ -3814,10 +3811,7 @@ cfg_if! {
3814
3811
riovcnt: :: c_ulong,
3815
3812
flags: :: c_ulong,
3816
3813
) -> isize ;
3817
- #[ cfg_attr(
3818
- all( target_env = "musl" , target_pointer_width = "32" ) ,
3819
- link_name = "__futimes_time64"
3820
- ) ]
3814
+ #[ cfg_attr( musl_time64_abi, link_name = "__futimes_time64" ) ]
3821
3815
pub fn futimes(
3822
3816
fd: :: c_int,
3823
3817
times: * const :: timeval
@@ -3845,10 +3839,7 @@ extern "C" {
3845
3839
pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
3846
3840
pub fn lcong48 ( p : * mut :: c_ushort ) ;
3847
3841
3848
- #[ cfg_attr(
3849
- all( target_env = "musl" , target_pointer_width = "32" ) ,
3850
- link_name = "__lutimes_time64"
3851
- ) ]
3842
+ #[ cfg_attr( musl_time64_abi, link_name = "__lutimes_time64" ) ]
3852
3843
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
3853
3844
3854
3845
pub fn setpwent ( ) ;
@@ -3966,15 +3957,9 @@ extern "C" {
3966
3957
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
3967
3958
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
3968
3959
pub fn timerfd_create ( clockid : :: clockid_t , flags : :: c_int ) -> :: c_int ;
3969
- #[ cfg_attr(
3970
- all( target_env = "musl" , target_pointer_width = "32" ) ,
3971
- link_name = "__timerfd_gettime64"
3972
- ) ]
3960
+ #[ cfg_attr( musl_time64_abi, link_name = "__timerfd_gettime64" ) ]
3973
3961
pub fn timerfd_gettime ( fd : :: c_int , curr_value : * mut itimerspec ) -> :: c_int ;
3974
- #[ cfg_attr(
3975
- all( target_env = "musl" , target_pointer_width = "32" ) ,
3976
- link_name = "__timerfd_settime64"
3977
- ) ]
3962
+ #[ cfg_attr( musl_time64_abi, link_name = "__timerfd_settime64" ) ]
3978
3963
pub fn timerfd_settime (
3979
3964
fd : :: c_int ,
3980
3965
flags : :: c_int ,
@@ -3996,10 +3981,7 @@ extern "C" {
3996
3981
msg_len : :: size_t ,
3997
3982
msg_prio : * mut :: c_uint ,
3998
3983
) -> :: ssize_t ;
3999
- #[ cfg_attr(
4000
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4001
- link_name = "__mq_timedreceive_time64"
4002
- ) ]
3984
+ #[ cfg_attr( musl_time64_abi, link_name = "__mq_timedreceive_time64" ) ]
4003
3985
pub fn mq_timedreceive (
4004
3986
mqd : :: mqd_t ,
4005
3987
msg_ptr : * mut :: c_char ,
@@ -4013,10 +3995,7 @@ extern "C" {
4013
3995
msg_len : :: size_t ,
4014
3996
msg_prio : :: c_uint ,
4015
3997
) -> :: c_int ;
4016
- #[ cfg_attr(
4017
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4018
- link_name = "__mq_timedsend_time64"
4019
- ) ]
3998
+ #[ cfg_attr( musl_time64_abi, link_name = "__mq_timedsend_time64" ) ]
4020
3999
pub fn mq_timedsend (
4021
4000
mqd : :: mqd_t ,
4022
4001
msg_ptr : * const :: c_char ,
@@ -4036,10 +4015,7 @@ extern "C" {
4036
4015
pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
4037
4016
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
4038
4017
pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
4039
- #[ cfg_attr(
4040
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4041
- link_name = "__sigtimedwait_time64"
4042
- ) ]
4018
+ #[ cfg_attr( musl_time64_abi, link_name = "__sigtimedwait_time64" ) ]
4043
4019
pub fn sigtimedwait (
4044
4020
set : * const sigset_t ,
4045
4021
info : * mut siginfo_t ,
@@ -4155,10 +4131,7 @@ extern "C" {
4155
4131
pub fn umount ( target : * const :: c_char ) -> :: c_int ;
4156
4132
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
4157
4133
pub fn tee ( fd_in : :: c_int , fd_out : :: c_int , len : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
4158
- #[ cfg_attr(
4159
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4160
- link_name = "__settimeofday_time64"
4161
- ) ]
4134
+ #[ cfg_attr( musl_time64_abi, link_name = "__settimeofday_time64" ) ]
4162
4135
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
4163
4136
pub fn splice (
4164
4137
fd_in : :: c_int ,
@@ -4169,15 +4142,9 @@ extern "C" {
4169
4142
flags : :: c_uint ,
4170
4143
) -> :: ssize_t ;
4171
4144
pub fn eventfd ( init : :: c_uint , flags : :: c_int ) -> :: c_int ;
4172
- #[ cfg_attr(
4173
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4174
- link_name = "__sched_rr_get_interval_time64"
4175
- ) ]
4145
+ #[ cfg_attr( musl_time64_abi, link_name = "__sched_rr_get_interval_time64" ) ]
4176
4146
pub fn sched_rr_get_interval ( pid : :: pid_t , tp : * mut :: timespec ) -> :: c_int ;
4177
- #[ cfg_attr(
4178
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4179
- link_name = "__sem_timedwait_time64"
4180
- ) ]
4147
+ #[ cfg_attr( musl_time64_abi, link_name = "__sem_timedwait_time64" ) ]
4181
4148
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
4182
4149
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
4183
4150
pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -4199,10 +4166,7 @@ extern "C" {
4199
4166
pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
4200
4167
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
4201
4168
pub fn sched_getparam ( pid : :: pid_t , param : * mut :: sched_param ) -> :: c_int ;
4202
- #[ cfg_attr(
4203
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4204
- link_name = "__ppoll_time64"
4205
- ) ]
4169
+ #[ cfg_attr( musl_time64_abi, link_name = "__ppoll_time64" ) ]
4206
4170
pub fn ppoll (
4207
4171
fds : * mut :: pollfd ,
4208
4172
nfds : nfds_t ,
@@ -4218,10 +4182,7 @@ extern "C" {
4218
4182
protocol : :: c_int ,
4219
4183
) -> :: c_int ;
4220
4184
pub fn pthread_mutex_consistent ( mutex : * mut pthread_mutex_t ) -> :: c_int ;
4221
- #[ cfg_attr(
4222
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4223
- link_name = "__pthread_mutex_timedlock_time64"
4224
- ) ]
4185
+ #[ cfg_attr( musl_time64_abi, link_name = "__pthread_mutex_timedlock_time64" ) ]
4225
4186
pub fn pthread_mutex_timedlock (
4226
4187
lock : * mut pthread_mutex_t ,
4227
4188
abstime : * const :: timespec ,
@@ -4239,10 +4200,7 @@ extern "C" {
4239
4200
...
4240
4201
) -> :: c_int ;
4241
4202
pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
4242
- #[ cfg_attr(
4243
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4244
- link_name = "__clock_nanosleep_time64"
4245
- ) ]
4203
+ #[ cfg_attr( musl_time64_abi, link_name = "__clock_nanosleep_time64" ) ]
4246
4204
pub fn clock_nanosleep (
4247
4205
clk_id : :: clockid_t ,
4248
4206
flags : :: c_int ,
@@ -4505,15 +4463,9 @@ extern "C" {
4505
4463
) -> :: c_int ;
4506
4464
pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
4507
4465
pub fn timer_getoverrun ( timerid : :: timer_t ) -> :: c_int ;
4508
- #[ cfg_attr(
4509
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4510
- link_name = "__timer_gettime64"
4511
- ) ]
4466
+ #[ cfg_attr( musl_time64_abi, link_name = "__timer_gettime64" ) ]
4512
4467
pub fn timer_gettime ( timerid : :: timer_t , curr_value : * mut :: itimerspec ) -> :: c_int ;
4513
- #[ cfg_attr(
4514
- all( target_env = "musl" , target_pointer_width = "32" ) ,
4515
- link_name = "__timer_settime64"
4516
- ) ]
4468
+ #[ cfg_attr( musl_time64_abi, link_name = "__timer_settime64" ) ]
4517
4469
pub fn timer_settime (
4518
4470
timerid : :: timer_t ,
4519
4471
flags : :: c_int ,
0 commit comments