@@ -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,
@@ -5315,10 +5315,7 @@ cfg_if! {
53155315 pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
53165316 pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
53175317 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" ) ]
53225319 pub fn aio_suspend(
53235320 aiocb_list: * const * const aiocb,
53245321 nitems: :: c_int,
@@ -5379,10 +5376,7 @@ cfg_if! {
53795376 riovcnt: :: c_ulong,
53805377 flags: :: c_ulong,
53815378 ) -> 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" ) ]
53865380 pub fn futimes(
53875381 fd: :: c_int,
53885382 times: * const :: timeval
@@ -5441,10 +5435,7 @@ extern "C" {
54415435 pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
54425436 pub fn lcong48 ( p : * mut :: c_ushort ) ;
54435437
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" ) ]
54485439 pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
54495440
54505441 pub fn setpwent ( ) ;
@@ -5540,15 +5531,9 @@ extern "C" {
55405531 pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
55415532 pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
55425533 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" ) ]
55475535 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" ) ]
55525537 pub fn timerfd_settime (
55535538 fd : :: c_int ,
55545539 flags : :: c_int ,
@@ -5570,10 +5555,7 @@ extern "C" {
55705555 msg_len : :: size_t ,
55715556 msg_prio : * mut :: c_uint ,
55725557 ) -> :: 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" ) ]
55775559 pub fn mq_timedreceive (
55785560 mqd : :: mqd_t ,
55795561 msg_ptr : * mut :: c_char ,
@@ -5587,10 +5569,7 @@ extern "C" {
55875569 msg_len : :: size_t ,
55885570 msg_prio : :: c_uint ,
55895571 ) -> :: 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" ) ]
55945573 pub fn mq_timedsend (
55955574 mqd : :: mqd_t ,
55965575 msg_ptr : * const :: c_char ,
@@ -5610,10 +5589,7 @@ extern "C" {
56105589 pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
56115590 pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
56125591 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" ) ]
56175593 pub fn sigtimedwait (
56185594 set : * const sigset_t ,
56195595 info : * mut siginfo_t ,
@@ -5727,10 +5703,7 @@ extern "C" {
57275703 pub fn umount ( target : * const :: c_char ) -> :: c_int ;
57285704 pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
57295705 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" ) ]
57345707 pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
57355708 pub fn splice (
57365709 fd_in : :: c_int ,
@@ -5744,15 +5717,9 @@ extern "C" {
57445717 pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
57455718 pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
57465719
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" ) ]
57515721 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" ) ]
57565723 pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
57575724 pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
57585725 pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5774,10 +5741,7 @@ extern "C" {
57745741 pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
57755742 pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
57765743 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" ) ]
57815745 pub fn ppoll (
57825746 fds : * mut :: pollfd ,
57835747 nfds : nfds_t ,
@@ -5793,10 +5757,7 @@ extern "C" {
57935757 protocol : :: c_int ,
57945758 ) -> :: c_int ;
57955759 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" ) ]
58005761 pub fn pthread_mutex_timedlock (
58015762 lock : * mut pthread_mutex_t ,
58025763 abstime : * const :: timespec ,
@@ -5831,10 +5792,7 @@ extern "C" {
58315792 ...
58325793 ) -> :: c_int ;
58335794 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" ) ]
58385796 pub fn clock_nanosleep (
58395797 clk_id : :: clockid_t ,
58405798 flags : :: c_int ,
@@ -6104,15 +6062,9 @@ extern "C" {
61046062 ) -> :: c_int ;
61056063 pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
61066064 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" ) ]
61116066 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" ) ]
61166068 pub fn timer_settime (
61176069 timerid : :: timer_t ,
61186070 flags : :: c_int ,
0 commit comments