@@ -322,11 +322,11 @@ s! {
322322 }
323323
324324 pub struct input_event {
325- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
325+ #[ cfg( musl_time64_abi ) ]
326326 pub input_event_sec: :: c_ulong,
327- #[ cfg( all ( target_env = "musl" , target_pointer_width = "32" ) ) ]
327+ #[ cfg( musl_time64_abi ) ]
328328 pub input_event_usec: :: c_ulong,
329- #[ cfg( not( all ( target_env = "musl" , target_pointer_width = "32" ) ) ) ]
329+ #[ cfg( not( musl_time64_abi ) ) ]
330330 pub time: :: timeval,
331331 pub type_: :: __u16,
332332 pub code: :: __u16,
@@ -5350,10 +5350,7 @@ cfg_if! {
53505350 pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
53515351 pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
53525352 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" ) ]
53575354 pub fn aio_suspend(
53585355 aiocb_list: * const * const aiocb,
53595356 nitems: :: c_int,
@@ -5414,10 +5411,7 @@ cfg_if! {
54145411 riovcnt: :: c_ulong,
54155412 flags: :: c_ulong,
54165413 ) -> 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" ) ]
54215415 pub fn futimes(
54225416 fd: :: c_int,
54235417 times: * const :: timeval
@@ -5476,10 +5470,7 @@ extern "C" {
54765470 pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
54775471 pub fn lcong48 ( p : * mut :: c_ushort ) ;
54785472
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" ) ]
54835474 pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
54845475
54855476 pub fn setpwent ( ) ;
@@ -5575,15 +5566,9 @@ extern "C" {
55755566 pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
55765567 pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
55775568 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" ) ]
55825570 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" ) ]
55875572 pub fn timerfd_settime (
55885573 fd : :: c_int ,
55895574 flags : :: c_int ,
@@ -5605,10 +5590,7 @@ extern "C" {
56055590 msg_len : :: size_t ,
56065591 msg_prio : * mut :: c_uint ,
56075592 ) -> :: 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" ) ]
56125594 pub fn mq_timedreceive (
56135595 mqd : :: mqd_t ,
56145596 msg_ptr : * mut :: c_char ,
@@ -5622,10 +5604,7 @@ extern "C" {
56225604 msg_len : :: size_t ,
56235605 msg_prio : :: c_uint ,
56245606 ) -> :: 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" ) ]
56295608 pub fn mq_timedsend (
56305609 mqd : :: mqd_t ,
56315610 msg_ptr : * const :: c_char ,
@@ -5645,10 +5624,7 @@ extern "C" {
56455624 pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
56465625 pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
56475626 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" ) ]
56525628 pub fn sigtimedwait (
56535629 set : * const sigset_t ,
56545630 info : * mut siginfo_t ,
@@ -5762,10 +5738,7 @@ extern "C" {
57625738 pub fn umount ( target : * const :: c_char ) -> :: c_int ;
57635739 pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
57645740 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" ) ]
57695742 pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
57705743 pub fn splice (
57715744 fd_in : :: c_int ,
@@ -5779,15 +5752,9 @@ extern "C" {
57795752 pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
57805753 pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
57815754
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" ) ]
57865756 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" ) ]
57915758 pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
57925759 pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
57935760 pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5809,10 +5776,7 @@ extern "C" {
58095776 pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
58105777 pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
58115778 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" ) ]
58165780 pub fn ppoll (
58175781 fds : * mut :: pollfd ,
58185782 nfds : nfds_t ,
@@ -5828,10 +5792,7 @@ extern "C" {
58285792 protocol : :: c_int ,
58295793 ) -> :: c_int ;
58305794 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" ) ]
58355796 pub fn pthread_mutex_timedlock (
58365797 lock : * mut pthread_mutex_t ,
58375798 abstime : * const :: timespec ,
@@ -5866,10 +5827,7 @@ extern "C" {
58665827 ...
58675828 ) -> :: c_int ;
58685829 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" ) ]
58735831 pub fn clock_nanosleep (
58745832 clk_id : :: clockid_t ,
58755833 flags : :: c_int ,
@@ -6139,15 +6097,9 @@ extern "C" {
61396097 ) -> :: c_int ;
61406098 pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
61416099 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" ) ]
61466101 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" ) ]
61516103 pub fn timer_settime (
61526104 timerid : :: timer_t ,
61536105 flags : :: c_int ,
0 commit comments