File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -844,6 +844,8 @@ extern {
844
844
pub fn pthread_condattr_setclock ( attr : * mut pthread_condattr_t ,
845
845
clock_id : clockid_t ) -> :: c_int ;
846
846
pub fn sethostname ( name : * const :: c_char , len : :: c_int ) -> :: c_int ;
847
+ pub fn sem_timedwait ( sem : * mut sem_t ,
848
+ abstime : * const :: timespec ) -> :: c_int ;
847
849
}
848
850
849
851
cfg_if ! {
Original file line number Diff line number Diff line change @@ -525,8 +525,10 @@ extern {
525
525
flags : :: c_int ) -> :: c_int ;
526
526
pub fn mkfifoat ( dirfd : :: c_int , pathname : * const :: c_char ,
527
527
mode : :: mode_t ) -> :: c_int ;
528
- pub fn pthread_condattr_setclock ( attr : * mut pthread_condattr_t ,
529
- clock_id : clockid_t ) -> :: c_int ;
528
+ pub fn sem_timedwait ( sem : * mut sem_t ,
529
+ abstime : * const :: timespec ) -> :: c_int ;
530
+ pub fn pthread_condattr_setclock ( attr : * mut pthread_condattr_t ,
531
+ clock_id : clockid_t ) -> :: c_int ;
530
532
}
531
533
532
534
cfg_if ! {
Original file line number Diff line number Diff line change @@ -710,8 +710,6 @@ extern {
710
710
link_name = "sem_wait$UNIX2003" ) ]
711
711
pub fn sem_wait ( sem : * mut sem_t ) -> :: c_int ;
712
712
pub fn sem_trywait ( sem : * mut sem_t ) -> :: c_int ;
713
- pub fn sem_timedwait ( sem : * mut sem_t ,
714
- abstime : * const :: timespec ) -> :: c_int ;
715
713
pub fn sem_post ( sem : * mut sem_t ) -> :: c_int ;
716
714
pub fn sem_init ( sem : * mut sem_t ,
717
715
pshared : :: c_int ,
Original file line number Diff line number Diff line change @@ -889,6 +889,8 @@ extern {
889
889
cpuset : * const cpu_set_t ) -> :: c_int ;
890
890
pub fn unshare ( flags : :: c_int ) -> :: c_int ;
891
891
pub fn setns ( fd : :: c_int , nstype : :: c_int ) -> :: c_int ;
892
+ pub fn sem_timedwait ( sem : * mut sem_t ,
893
+ abstime : * const :: timespec ) -> :: c_int ;
892
894
}
893
895
894
896
cfg_if ! {
Original file line number Diff line number Diff line change @@ -1033,4 +1033,6 @@ extern {
1033
1033
clock_id : * mut clockid_t ) -> :: c_int ;
1034
1034
pub fn pthread_condattr_setclock ( attr : * mut pthread_condattr_t ,
1035
1035
clock_id : clockid_t ) -> :: c_int ;
1036
+ pub fn sem_timedwait ( sem : * mut sem_t ,
1037
+ abstime : * const :: timespec ) -> :: c_int ;
1036
1038
}
You can’t perform that action at this time.
0 commit comments