File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -3344,6 +3344,8 @@ pub mod consts {
3344
3344
pub const _SC_XOPEN_REALTIME : c_int = 130 ;
3345
3345
pub const _SC_XOPEN_REALTIME_THREADS : c_int = 131 ;
3346
3346
3347
+
3348
+
3347
3349
pub const PTHREAD_CREATE_JOINABLE : c_int = 0 ;
3348
3350
pub const PTHREAD_CREATE_DETACHED : c_int = 1 ;
3349
3351
@@ -3742,6 +3744,19 @@ pub mod consts {
3742
3744
pub static _SC_NPROCESSORS_ONLN : c_int = 1 ;
3743
3745
pub static _SC_PAGESIZE : c_int = 2 ;
3744
3746
}
3747
+
3748
+ #[ cfg( target_os = "linux" ) ]
3749
+ pub mod sysconf {
3750
+ use types:: os:: arch:: c95:: c_int;
3751
+ pub static _SC_NPROCESSORS_ONLN : c_int = 84 ;
3752
+ }
3753
+
3754
+ #[ cfg( target_os = "macos" ) ]
3755
+ pub mod sysconf {
3756
+ use types:: os:: arch:: c95:: c_int;
3757
+ pub static _SC_NPROCESSORS_ONLN : c_int = 58 ;
3758
+ }
3759
+
3745
3760
#[ cfg( target_os = "android" ) ]
3746
3761
pub mod sysconf {
3747
3762
use types:: os:: arch:: c95:: c_int;
You can’t perform that action at this time.
0 commit comments