File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1881,6 +1881,9 @@ fn test_android(target: &str) {
18811881 // Added in API level 28, but some tests use level 24.
18821882 "syncfs" => true ,
18831883
1884+ // Added in API level 28, but some tests use level 24.
1885+ "pthread_attr_getinheritsched" | "pthread_attr_setinheritsched" => true ,
1886+
18841887 _ => false ,
18851888 }
18861889 } ) ;
Original file line number Diff line number Diff line change @@ -3375,8 +3375,10 @@ pthread_atfork
33753375pthread_attr_destroy
33763376pthread_attr_getguardsize
33773377pthread_attr_getstack
3378+ pthread_attr_getstacksize
33783379pthread_attr_init
33793380pthread_attr_setdetachstate
3381+ pthread_attr_setguardsize
33803382pthread_attr_setstacksize
33813383pthread_attr_t
33823384pthread_barrierattr_destroy
Original file line number Diff line number Diff line change @@ -1224,6 +1224,9 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 1;
12241224pub const PTHREAD_MUTEX_ERRORCHECK : :: c_int = 2 ;
12251225pub const PTHREAD_MUTEX_DEFAULT : :: c_int = PTHREAD_MUTEX_NORMAL ;
12261226
1227+ pub const PTHREAD_EXPLICIT_SCHED : :: c_int = 0 ;
1228+ pub const PTHREAD_INHERIT_SCHED : :: c_int = 1 ;
1229+
12271230// stdio.h
12281231pub const RENAME_NOREPLACE : :: c_int = 1 ;
12291232pub const RENAME_EXCHANGE : :: c_int = 2 ;
@@ -3494,6 +3497,16 @@ extern "C" {
34943497 attr : * const :: pthread_attr_t ,
34953498 guardsize : * mut :: size_t ,
34963499 ) -> :: c_int ;
3500+ pub fn pthread_attr_setguardsize ( attr : * mut :: pthread_attr_t , guardsize : :: size_t ) -> :: c_int ;
3501+ pub fn pthread_attr_getstacksize (
3502+ attr : * const :: pthread_attr_t ,
3503+ stacksize : * mut :: size_t ,
3504+ ) -> :: c_int ;
3505+ pub fn pthread_attr_getinheritsched (
3506+ attr : * const :: pthread_attr_t ,
3507+ flag : * mut :: c_int ,
3508+ ) -> :: c_int ;
3509+ pub fn pthread_attr_setinheritsched ( attr : * mut :: pthread_attr_t , flag : :: c_int ) -> :: c_int ;
34973510 pub fn sethostname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
34983511 pub fn sched_get_priority_min ( policy : :: c_int ) -> :: c_int ;
34993512 pub fn pthread_condattr_getpshared (
You can’t perform that action at this time.
0 commit comments