@@ -2174,7 +2174,7 @@ pub mod consts {
2174
2174
pub static EDQUOT : c_int = 1133 ;
2175
2175
}
2176
2176
pub mod posix01 {
2177
- use libc:: types:: os:: arch:: c95:: c_int;
2177
+ use libc:: types:: os:: arch:: c95:: { c_int, size_t } ;
2178
2178
2179
2179
pub static SIGTRAP : c_int = 5 ;
2180
2180
@@ -2228,6 +2228,17 @@ pub mod consts {
2228
2228
pub static PTHREAD_CREATE_JOINABLE : c_int = 0 ;
2229
2229
pub static PTHREAD_CREATE_DETACHED : c_int = 1 ;
2230
2230
2231
+ #[ cfg( target_os = "android" ) ]
2232
+ pub static PTHREAD_STACK_MIN : size_t = 8192 ;
2233
+
2234
+ #[ cfg( target_arch = "arm" , target_os = "linux" ) ]
2235
+ #[ cfg( target_arch = "x86" , target_os = "linux" ) ]
2236
+ #[ cfg( target_arch = "x86_64" , target_os = "linux" ) ]
2237
+ pub static PTHREAD_STACK_MIN : size_t = 16384 ;
2238
+
2239
+ #[ cfg( target_arch = "mips" , target_os = "linux" ) ]
2240
+ pub static PTHREAD_STACK_MIN : size_t = 131072 ;
2241
+
2231
2242
pub static CLOCK_REALTIME : c_int = 0 ;
2232
2243
pub static CLOCK_MONOTONIC : c_int = 1 ;
2233
2244
}
@@ -2608,7 +2619,7 @@ pub mod consts {
2608
2619
pub static ELAST : c_int = 99 ;
2609
2620
}
2610
2621
pub mod posix01 {
2611
- use libc:: types:: os:: arch:: c95:: c_int;
2622
+ use libc:: types:: os:: arch:: c95:: { c_int, size_t } ;
2612
2623
2613
2624
pub static SIGTRAP : c_int = 5 ;
2614
2625
@@ -2662,6 +2673,14 @@ pub mod consts {
2662
2673
pub static PTHREAD_CREATE_JOINABLE : c_int = 0 ;
2663
2674
pub static PTHREAD_CREATE_DETACHED : c_int = 1 ;
2664
2675
2676
+ #[ cfg( target_arch = "arm" ) ]
2677
+ pub static PTHREAD_STACK_MIN : size_t = 4096 ;
2678
+
2679
+ #[ cfg( target_arch = "mips" ) ]
2680
+ #[ cfg( target_arch = "x86" ) ]
2681
+ #[ cfg( target_arch = "x86_64" ) ]
2682
+ pub static PTHREAD_STACK_MIN : size_t = 2048 ;
2683
+
2665
2684
pub static CLOCK_REALTIME : c_int = 0 ;
2666
2685
pub static CLOCK_MONOTONIC : c_int = 4 ;
2667
2686
}
@@ -2990,7 +3009,7 @@ pub mod consts {
2990
3009
pub static ELAST : c_int = 106 ;
2991
3010
}
2992
3011
pub mod posix01 {
2993
- use libc:: types:: os:: arch:: c95:: c_int;
3012
+ use libc:: types:: os:: arch:: c95:: { c_int, size_t } ;
2994
3013
2995
3014
pub static SIGTRAP : c_int = 5 ;
2996
3015
@@ -3043,6 +3062,7 @@ pub mod consts {
3043
3062
3044
3063
pub static PTHREAD_CREATE_JOINABLE : c_int = 1 ;
3045
3064
pub static PTHREAD_CREATE_DETACHED : c_int = 2 ;
3065
+ pub static PTHREAD_STACK_MIN : size_t = 8192 ;
3046
3066
}
3047
3067
pub mod posix08 {
3048
3068
}
0 commit comments