@@ -184,11 +184,11 @@ s! {
184184 }
185185
186186 pub struct input_event {
187- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
187+ #[ cfg( musl_time64_abi ) ]
188188 pub input_event_sec: :: c_ulong,
189- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
189+ #[ cfg( musl_time64_abi ) ]
190190 pub input_event_usec: :: c_ulong,
191- #[ cfg( not( all ( target_env = "musl" , target_pointer_width = "32" ) ) ) ]
191+ #[ cfg( not( musl_time64_abi ) ) ]
192192 pub time: :: timeval,
193193 pub type_: :: __u16,
194194 pub code: :: __u16,
@@ -3757,10 +3757,7 @@ cfg_if! {
37573757 pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
37583758 pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
37593759 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" ) ]
37643761 pub fn aio_suspend(
37653762 aiocb_list: * const * const aiocb,
37663763 nitems: :: c_int,
@@ -3814,10 +3811,7 @@ cfg_if! {
38143811 riovcnt: :: c_ulong,
38153812 flags: :: c_ulong,
38163813 ) -> 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" ) ]
38213815 pub fn futimes(
38223816 fd: :: c_int,
38233817 times: * const :: timeval
@@ -3845,10 +3839,7 @@ extern "C" {
38453839 pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
38463840 pub fn lcong48 ( p : * mut :: c_ushort ) ;
38473841
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" ) ]
38523843 pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
38533844
38543845 pub fn setpwent ( ) ;
@@ -3966,15 +3957,9 @@ extern "C" {
39663957 pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
39673958 pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
39683959 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" ) ]
39733961 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" ) ]
39783963 pub fn timerfd_settime (
39793964 fd : :: c_int ,
39803965 flags : :: c_int ,
@@ -3996,10 +3981,7 @@ extern "C" {
39963981 msg_len : :: size_t ,
39973982 msg_prio : * mut :: c_uint ,
39983983 ) -> :: 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" ) ]
40033985 pub fn mq_timedreceive (
40043986 mqd : :: mqd_t ,
40053987 msg_ptr : * mut :: c_char ,
@@ -4013,10 +3995,7 @@ extern "C" {
40133995 msg_len : :: size_t ,
40143996 msg_prio : :: c_uint ,
40153997 ) -> :: 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" ) ]
40203999 pub fn mq_timedsend (
40214000 mqd : :: mqd_t ,
40224001 msg_ptr : * const :: c_char ,
@@ -4036,10 +4015,7 @@ extern "C" {
40364015 pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
40374016 pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
40384017 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" ) ]
40434019 pub fn sigtimedwait (
40444020 set : * const sigset_t ,
40454021 info : * mut siginfo_t ,
@@ -4155,10 +4131,7 @@ extern "C" {
41554131 pub fn umount ( target : * const :: c_char ) -> :: c_int ;
41564132 pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
41574133 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" ) ]
41624135 pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
41634136 pub fn splice (
41644137 fd_in : :: c_int ,
@@ -4169,15 +4142,9 @@ extern "C" {
41694142 flags : :: c_uint ,
41704143 ) -> :: ssize_t ;
41714144 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" ) ]
41764146 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" ) ]
41814148 pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
41824149 pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
41834150 pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -4199,10 +4166,7 @@ extern "C" {
41994166 pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
42004167 pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
42014168 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" ) ]
42064170 pub fn ppoll (
42074171 fds : * mut :: pollfd ,
42084172 nfds : nfds_t ,
@@ -4218,10 +4182,7 @@ extern "C" {
42184182 protocol : :: c_int ,
42194183 ) -> :: c_int ;
42204184 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" ) ]
42254186 pub fn pthread_mutex_timedlock (
42264187 lock : * mut pthread_mutex_t ,
42274188 abstime : * const :: timespec ,
@@ -4239,10 +4200,7 @@ extern "C" {
42394200 ...
42404201 ) -> :: c_int ;
42414202 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" ) ]
42464204 pub fn clock_nanosleep (
42474205 clk_id : :: clockid_t ,
42484206 flags : :: c_int ,
@@ -4505,15 +4463,9 @@ extern "C" {
45054463 ) -> :: c_int ;
45064464 pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
45074465 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" ) ]
45124467 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" ) ]
45174469 pub fn timer_settime (
45184470 timerid : :: timer_t ,
45194471 flags : :: c_int ,
0 commit comments