@@ -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,
@@ -5310,6 +5315,10 @@ cfg_if! {
5310
5315
pub fn aio_fsync( op: :: c_int, aiocbp: * mut aiocb) -> :: c_int;
5311
5316
pub fn aio_error( aiocbp: * const aiocb) -> :: c_int;
5312
5317
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
+ ) ]
5313
5322
pub fn aio_suspend(
5314
5323
aiocb_list: * const * const aiocb,
5315
5324
nitems: :: c_int,
@@ -5370,6 +5379,10 @@ cfg_if! {
5370
5379
riovcnt: :: c_ulong,
5371
5380
flags: :: c_ulong,
5372
5381
) -> isize ;
5382
+ #[ cfg_attr(
5383
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5384
+ link_name = "__futimes_time64"
5385
+ ) ]
5373
5386
pub fn futimes(
5374
5387
fd: :: c_int,
5375
5388
times: * const :: timeval
@@ -5393,43 +5406,6 @@ cfg_if! {
5393
5406
spbufp: * mut * mut spwd,
5394
5407
) -> :: c_int;
5395
5408
5396
- pub fn mq_open( name: * const :: c_char, oflag: :: c_int, ...) -> :: mqd_t;
5397
- pub fn mq_close( mqd: :: mqd_t) -> :: c_int;
5398
- pub fn mq_unlink( name: * const :: c_char) -> :: c_int;
5399
- pub fn mq_receive(
5400
- mqd: :: mqd_t,
5401
- msg_ptr: * mut :: c_char,
5402
- msg_len: :: size_t,
5403
- msg_prio: * mut :: c_uint,
5404
- ) -> :: ssize_t;
5405
- pub fn mq_timedreceive(
5406
- mqd: :: mqd_t,
5407
- msg_ptr: * mut :: c_char,
5408
- msg_len: :: size_t,
5409
- msg_prio: * mut :: c_uint,
5410
- abs_timeout: * const :: timespec,
5411
- ) -> :: ssize_t;
5412
- pub fn mq_send(
5413
- mqd: :: mqd_t,
5414
- msg_ptr: * const :: c_char,
5415
- msg_len: :: size_t,
5416
- msg_prio: :: c_uint,
5417
- ) -> :: c_int;
5418
- pub fn mq_timedsend(
5419
- mqd: :: mqd_t,
5420
- msg_ptr: * const :: c_char,
5421
- msg_len: :: size_t,
5422
- msg_prio: :: c_uint,
5423
- abs_timeout: * const :: timespec,
5424
- ) -> :: c_int;
5425
- pub fn mq_getattr( mqd: :: mqd_t, attr: * mut :: mq_attr) -> :: c_int;
5426
- pub fn mq_setattr(
5427
- mqd: :: mqd_t,
5428
- newattr: * const :: mq_attr,
5429
- oldattr: * mut :: mq_attr
5430
- ) -> :: c_int;
5431
-
5432
- pub fn pthread_mutex_consistent( mutex: * mut pthread_mutex_t) -> :: c_int;
5433
5409
pub fn pthread_cancel( thread: :: pthread_t) -> :: c_int;
5434
5410
pub fn pthread_mutexattr_getrobust(
5435
5411
attr: * const pthread_mutexattr_t,
@@ -5465,6 +5441,10 @@ extern "C" {
5465
5441
pub fn seed48 ( xseed : * mut :: c_ushort ) -> * mut :: c_ushort ;
5466
5442
pub fn lcong48 ( p : * mut :: c_ushort ) ;
5467
5443
5444
+ #[ cfg_attr(
5445
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5446
+ link_name = "__lutimes_time64"
5447
+ ) ]
5468
5448
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
5469
5449
5470
5450
pub fn setpwent ( ) ;
@@ -5560,7 +5540,15 @@ extern "C" {
5560
5540
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
5561
5541
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
5562
5542
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
+ ) ]
5563
5547
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
+ ) ]
5564
5552
pub fn timerfd_settime (
5565
5553
fd : :: c_int ,
5566
5554
flags : :: c_int ,
@@ -5573,6 +5561,45 @@ extern "C" {
5573
5561
id : :: c_int ,
5574
5562
data : * mut :: c_char ,
5575
5563
) -> :: c_int ;
5564
+ pub fn mq_open ( name : * const :: c_char , oflag : :: c_int , ...) -> :: mqd_t ;
5565
+ pub fn mq_close ( mqd : :: mqd_t ) -> :: c_int ;
5566
+ pub fn mq_unlink ( name : * const :: c_char ) -> :: c_int ;
5567
+ pub fn mq_receive (
5568
+ mqd : :: mqd_t ,
5569
+ msg_ptr : * mut :: c_char ,
5570
+ msg_len : :: size_t ,
5571
+ msg_prio : * mut :: c_uint ,
5572
+ ) -> :: ssize_t ;
5573
+ #[ cfg_attr(
5574
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5575
+ link_name = "__mq_timedreceive_time64"
5576
+ ) ]
5577
+ pub fn mq_timedreceive (
5578
+ mqd : :: mqd_t ,
5579
+ msg_ptr : * mut :: c_char ,
5580
+ msg_len : :: size_t ,
5581
+ msg_prio : * mut :: c_uint ,
5582
+ abs_timeout : * const :: timespec ,
5583
+ ) -> :: ssize_t ;
5584
+ pub fn mq_send (
5585
+ mqd : :: mqd_t ,
5586
+ msg_ptr : * const :: c_char ,
5587
+ msg_len : :: size_t ,
5588
+ msg_prio : :: c_uint ,
5589
+ ) -> :: c_int ;
5590
+ #[ cfg_attr(
5591
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5592
+ link_name = "__mq_timedsend_time64"
5593
+ ) ]
5594
+ pub fn mq_timedsend (
5595
+ mqd : :: mqd_t ,
5596
+ msg_ptr : * const :: c_char ,
5597
+ msg_len : :: size_t ,
5598
+ msg_prio : :: c_uint ,
5599
+ abs_timeout : * const :: timespec ,
5600
+ ) -> :: c_int ;
5601
+ pub fn mq_getattr ( mqd : :: mqd_t , attr : * mut :: mq_attr ) -> :: c_int ;
5602
+ pub fn mq_setattr ( mqd : :: mqd_t , newattr : * const :: mq_attr , oldattr : * mut :: mq_attr ) -> :: c_int ;
5576
5603
pub fn epoll_pwait (
5577
5604
epfd : :: c_int ,
5578
5605
events : * mut :: epoll_event ,
@@ -5583,6 +5610,10 @@ extern "C" {
5583
5610
pub fn dup3 ( oldfd : :: c_int , newfd : :: c_int , flags : :: c_int ) -> :: c_int ;
5584
5611
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
5585
5612
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
+ ) ]
5586
5617
pub fn sigtimedwait (
5587
5618
set : * const sigset_t ,
5588
5619
info : * mut siginfo_t ,
@@ -5696,6 +5727,10 @@ extern "C" {
5696
5727
pub fn umount ( target : * const :: c_char ) -> :: c_int ;
5697
5728
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
5698
5729
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
+ ) ]
5699
5734
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: timezone ) -> :: c_int ;
5700
5735
pub fn splice (
5701
5736
fd_in : :: c_int ,
@@ -5709,7 +5744,15 @@ extern "C" {
5709
5744
pub fn eventfd_read ( fd : :: c_int , value : * mut eventfd_t ) -> :: c_int ;
5710
5745
pub fn eventfd_write ( fd : :: c_int , value : eventfd_t ) -> :: c_int ;
5711
5746
5747
+ #[ cfg_attr(
5748
+ all( target_env = "musl" , target_pointer_width = "32" ) ,
5749
+ link_name = "__sched_rr_get_interval_time64"
5750
+ ) ]
5712
5751
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
+ ) ]
5713
5756
pub fn sem_timedwait ( sem : * mut sem_t , abstime : * const :: timespec ) -> :: c_int ;
5714
5757
pub fn sem_getvalue ( sem : * mut sem_t , sval : * mut :: c_int ) -> :: c_int ;
5715
5758
pub fn sched_setparam ( pid : :: pid_t , param : * const :: sched_param ) -> :: c_int ;
@@ -5731,6 +5774,10 @@ extern "C" {
5731
5774
pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
5732
5775
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
5733
5776
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
+ ) ]
5734
5781
pub fn ppoll (
5735
5782
fds : * mut :: pollfd ,
5736
5783
nfds : nfds_t ,
@@ -5745,7 +5792,11 @@ extern "C" {
5745
5792
attr : * mut pthread_mutexattr_t ,
5746
5793
protocol : :: c_int ,
5747
5794
) -> :: c_int ;
5748
-
5795
+ 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
+ ) ]
5749
5800
pub fn pthread_mutex_timedlock (
5750
5801
lock : * mut pthread_mutex_t ,
5751
5802
abstime : * const :: timespec ,
@@ -5780,6 +5831,10 @@ extern "C" {
5780
5831
...
5781
5832
) -> :: c_int ;
5782
5833
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
+ ) ]
5783
5838
pub fn clock_nanosleep (
5784
5839
clk_id : :: clockid_t ,
5785
5840
flags : :: c_int ,
@@ -6049,7 +6104,15 @@ extern "C" {
6049
6104
) -> :: c_int ;
6050
6105
pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
6051
6106
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
+ ) ]
6052
6111
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
+ ) ]
6053
6116
pub fn timer_settime (
6054
6117
timerid : :: timer_t ,
6055
6118
flags : :: c_int ,
0 commit comments