@@ -322,6 +322,11 @@ s! {
322
322
}
323
323
324
324
pub struct input_event {
325
+ #[ cfg( all( target_env = "musl" , target_pointer_width = "32" ) ) ]
326
+ pub input_event_sec: :: c_ulong,
327
+ #[ cfg( all( target_env = "musl" , target_pointer_width = "32" ) ) ]
328
+ pub input_event_usec: :: c_ulong,
329
+ #[ cfg( not( all( target_env = "musl" , target_pointer_width = "32" ) ) ) ]
325
330
pub time: :: timeval,
326
331
pub type_: :: __u16,
327
332
pub code: :: __u16,
@@ -5345,6 +5350,10 @@ cfg_if! {
5345
5350
pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5346
5351
pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
5347
5352
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
+ ) ]
5348
5357
pub fn aio_suspend(
5349
5358
aiocb_list: * const * const aiocb,
5350
5359
nitems: :: c_int,
@@ -5405,6 +5414,10 @@ cfg_if! {
5405
5414
riovcnt: :: c_ulong,
5406
5415
flags: :: c_ulong,
5407
5416
) -> isize ;
5417
+ #[ cfg_attr(
5418
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5419
+ link_name = "__futimes_time64"
5420
+ ) ]
5408
5421
pub fn futimes(
5409
5422
fd: :: c_int,
5410
5423
times: * const :: timeval
@@ -5428,43 +5441,6 @@ cfg_if! {
5428
5441
spbufp: * mut * mut spwd,
5429
5442
) -> :: c_int;
5430
5443
5431
- pub fn mq_open( name: * const :: c_char, oflag: :: c_int, ...) -> :: mqd_t;
5432
- pub fn mq_close( mqd: :: mqd_t) -> :: c_int;
5433
- pub fn mq_unlink( name: * const :: c_char) -> :: c_int;
5434
- pub fn mq_receive(
5435
- mqd: :: mqd_t,
5436
- msg_ptr: * mut :: c_char,
5437
- msg_len: :: size_t,
5438
- msg_prio: * mut :: c_uint,
5439
- ) -> :: ssize_t;
5440
- pub fn mq_timedreceive(
5441
- mqd: :: mqd_t,
5442
- msg_ptr: * mut :: c_char,
5443
- msg_len: :: size_t,
5444
- msg_prio: * mut :: c_uint,
5445
- abs_timeout: * const :: timespec,
5446
- ) -> :: ssize_t;
5447
- pub fn mq_send(
5448
- mqd: :: mqd_t,
5449
- msg_ptr: * const :: c_char,
5450
- msg_len: :: size_t,
5451
- msg_prio: :: c_uint,
5452
- ) -> :: c_int;
5453
- pub fn mq_timedsend(
5454
- mqd: :: mqd_t,
5455
- msg_ptr: * const :: c_char,
5456
- msg_len: :: size_t,
5457
- msg_prio: :: c_uint,
5458
- abs_timeout: * const :: timespec,
5459
- ) -> :: c_int;
5460
- pub fn mq_getattr( mqd: :: mqd_t, attr: * mut :: mq_attr) -> :: c_int;
5461
- pub fn mq_setattr(
5462
- mqd: :: mqd_t,
5463
- newattr: * const :: mq_attr,
5464
- oldattr: * mut :: mq_attr
5465
- ) -> :: c_int;
5466
-
5467
- pub fn pthread_mutex_consistent( mutex: * mut pthread_mutex_t) -> :: c_int;
5468
5444
pub fn pthread_cancel( thread: :: pthread_t) -> :: c_int;
5469
5445
pub fn pthread_mutexattr_getrobust(
5470
5446
attr: * const pthread_mutexattr_t,
@@ -5500,6 +5476,10 @@ extern "C" {
5500
5476
pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
5501
5477
pub fn lcong48 ( p : * mut :: c_ushort ) ;
5502
5478
5479
+ #[ cfg_attr(
5480
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5481
+ link_name = "__lutimes_time64"
5482
+ ) ]
5503
5483
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
5504
5484
5505
5485
pub fn setpwent ( ) ;
@@ -5595,7 +5575,15 @@ extern "C" {
5595
5575
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
5596
5576
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
5597
5577
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
+ ) ]
5598
5582
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
+ ) ]
5599
5587
pub fn timerfd_settime (
5600
5588
fd : :: c_int ,
5601
5589
flags : :: c_int ,
@@ -5608,6 +5596,45 @@ extern "C" {
5608
5596
id : :: c_int ,
5609
5597
data : * mut :: c_char ,
5610
5598
) -> :: c_int ;
5599
+ pub fn mq_open ( name : * const :: c_char , oflag : :: c_int , ...) -> :: mqd_t ;
5600
+ pub fn mq_close ( mqd : :: mqd_t ) -> :: c_int ;
5601
+ pub fn mq_unlink ( name : * const :: c_char ) -> :: c_int ;
5602
+ pub fn mq_receive (
5603
+ mqd : :: mqd_t ,
5604
+ msg_ptr : * mut :: c_char ,
5605
+ msg_len : :: size_t ,
5606
+ msg_prio : * mut :: c_uint ,
5607
+ ) -> :: ssize_t ;
5608
+ #[ cfg_attr(
5609
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5610
+ link_name = "__mq_timedreceive_time64"
5611
+ ) ]
5612
+ pub fn mq_timedreceive (
5613
+ mqd : :: mqd_t ,
5614
+ msg_ptr : * mut :: c_char ,
5615
+ msg_len : :: size_t ,
5616
+ msg_prio : * mut :: c_uint ,
5617
+ abs_timeout : * const :: timespec ,
5618
+ ) -> :: ssize_t ;
5619
+ pub fn mq_send (
5620
+ mqd : :: mqd_t ,
5621
+ msg_ptr : * const :: c_char ,
5622
+ msg_len : :: size_t ,
5623
+ msg_prio : :: c_uint ,
5624
+ ) -> :: c_int ;
5625
+ #[ cfg_attr(
5626
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5627
+ link_name = "__mq_timedsend_time64"
5628
+ ) ]
5629
+ pub fn mq_timedsend (
5630
+ mqd : :: mqd_t ,
5631
+ msg_ptr : * const :: c_char ,
5632
+ msg_len : :: size_t ,
5633
+ msg_prio : :: c_uint ,
5634
+ abs_timeout : * const :: timespec ,
5635
+ ) -> :: c_int ;
5636
+ pub fn mq_getattr ( mqd : :: mqd_t , attr : * mut :: mq_attr ) -> :: c_int ;
5637
+ pub fn mq_setattr ( mqd : :: mqd_t , newattr : * const :: mq_attr , oldattr : * mut :: mq_attr ) -> :: c_int ;
5611
5638
pub fn epoll_pwait (
5612
5639
epfd : :: c_int ,
5613
5640
events : * mut :: epoll_event ,
@@ -5618,6 +5645,10 @@ extern "C" {
5618
5645
pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
5619
5646
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
5620
5647
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
+ ) ]
5621
5652
pub fn sigtimedwait (
5622
5653
set : * const sigset_t ,
5623
5654
info : * mut siginfo_t ,
@@ -5731,6 +5762,10 @@ extern "C" {
5731
5762
pub fn umount ( target : * const :: c_char ) -> :: c_int ;
5732
5763
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
5733
5764
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
+ ) ]
5734
5769
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
5735
5770
pub fn splice (
5736
5771
fd_in : :: c_int ,
@@ -5744,7 +5779,15 @@ extern "C" {
5744
5779
pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
5745
5780
pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
5746
5781
5782
+ #[ cfg_attr(
5783
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5784
+ link_name = "__sched_rr_get_interval_time64"
5785
+ ) ]
5747
5786
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
+ ) ]
5748
5791
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
5749
5792
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
5750
5793
pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5766,6 +5809,10 @@ extern "C" {
5766
5809
pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
5767
5810
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
5768
5811
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
+ ) ]
5769
5816
pub fn ppoll (
5770
5817
fds : * mut :: pollfd ,
5771
5818
nfds : nfds_t ,
@@ -5780,7 +5827,11 @@ extern "C" {
5780
5827
attr : * mut pthread_mutexattr_t ,
5781
5828
protocol : :: c_int ,
5782
5829
) -> :: c_int ;
5783
-
5830
+ 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
+ ) ]
5784
5835
pub fn pthread_mutex_timedlock (
5785
5836
lock : * mut pthread_mutex_t ,
5786
5837
abstime : * const :: timespec ,
@@ -5815,6 +5866,10 @@ extern "C" {
5815
5866
...
5816
5867
) -> :: c_int ;
5817
5868
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
+ ) ]
5818
5873
pub fn clock_nanosleep (
5819
5874
clk_id : :: clockid_t ,
5820
5875
flags : :: c_int ,
@@ -6084,7 +6139,15 @@ extern "C" {
6084
6139
) -> :: c_int ;
6085
6140
pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
6086
6141
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
+ ) ]
6087
6146
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
+ ) ]
6088
6151
pub fn timer_settime (
6089
6152
timerid : :: timer_t ,
6090
6153
flags : :: c_int ,
0 commit comments