File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1460,6 +1460,14 @@ extern {
1460
1460
pub fn pthread_setname_np ( name : * const :: c_char ) -> :: c_int ;
1461
1461
pub fn pthread_get_stackaddr_np ( thread : :: pthread_t ) -> * mut :: c_void ;
1462
1462
pub fn pthread_get_stacksize_np ( thread : :: pthread_t ) -> :: size_t ;
1463
+ pub fn pthread_condattr_setpshared ( attr : * mut pthread_condattr_t ,
1464
+ pshared : :: c_int ) -> :: c_int ;
1465
+ pub fn pthread_condattr_getpshared ( attr : * const pthread_condattr_t ,
1466
+ pshared : * mut :: c_int ) -> :: c_int ;
1467
+ pub fn pthread_mutexattr_setpshared ( attr : * mut pthread_mutexattr_t ,
1468
+ pshared : :: c_int ) -> :: c_int ;
1469
+ pub fn pthread_mutexattr_getpshared ( attr : * const pthread_mutexattr_t ,
1470
+ pshared : * mut :: c_int ) -> :: c_int ;
1463
1471
pub fn __error ( ) -> * mut :: c_int ;
1464
1472
pub fn backtrace ( buf : * mut * mut :: c_void ,
1465
1473
sz : :: c_int ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -872,6 +872,14 @@ extern {
872
872
pub fn pthread_attr_getstack ( attr : * const :: pthread_attr_t ,
873
873
stackaddr : * mut * mut :: c_void ,
874
874
stacksize : * mut :: size_t ) -> :: c_int ;
875
+ pub fn pthread_condattr_setpshared ( attr : * mut pthread_condattr_t ,
876
+ pshared : :: c_int ) -> :: c_int ;
877
+ pub fn pthread_condattr_getpshared ( attr : * const pthread_condattr_t ,
878
+ pshared : * mut :: c_int ) -> :: c_int ;
879
+ pub fn pthread_mutexattr_setpshared ( attr : * mut pthread_mutexattr_t ,
880
+ pshared : :: c_int ) -> :: c_int ;
881
+ pub fn pthread_mutexattr_getpshared ( attr : * const pthread_mutexattr_t ,
882
+ pshared : * mut :: c_int ) -> :: c_int ;
875
883
pub fn getpriority ( which : :: c_int , who : :: c_int ) -> :: c_int ;
876
884
pub fn setpriority ( which : :: c_int , who : :: c_int , prio : :: c_int ) -> :: c_int ;
877
885
Original file line number Diff line number Diff line change @@ -845,6 +845,10 @@ extern {
845
845
clock_id : * mut clockid_t ) -> :: c_int ;
846
846
pub fn pthread_condattr_setclock ( attr : * mut pthread_condattr_t ,
847
847
clock_id : clockid_t ) -> :: c_int ;
848
+ pub fn pthread_condattr_setpshared ( attr : * mut pthread_condattr_t ,
849
+ pshared : :: c_int ) -> :: c_int ;
850
+ pub fn pthread_condattr_getpshared ( attr : * const pthread_condattr_t ,
851
+ pshared : * mut :: c_int ) -> :: c_int ;
848
852
pub fn sched_getaffinity ( pid : :: pid_t ,
849
853
cpusetsize : :: size_t ,
850
854
cpuset : * mut cpu_set_t ) -> :: c_int ;
@@ -859,6 +863,10 @@ extern {
859
863
flg : :: c_int ) -> :: c_int ;
860
864
pub fn pthread_mutex_timedlock ( lock : * mut pthread_mutex_t ,
861
865
abstime : * const :: timespec ) -> :: c_int ;
866
+ pub fn pthread_mutexattr_setpshared ( attr : * mut pthread_mutexattr_t ,
867
+ pshared : :: c_int ) -> :: c_int ;
868
+ pub fn pthread_mutexattr_getpshared ( attr : * const pthread_mutexattr_t ,
869
+ pshared : * mut :: c_int ) -> :: c_int ;
862
870
pub fn ptsname_r ( fd : :: c_int ,
863
871
buf : * mut :: c_char ,
864
872
buflen : :: size_t ) -> :: c_int ;
You can’t perform that action at this time.
0 commit comments