File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ pub const ST_RDONLY: ::c_ulong = 1;
98
98
99
99
pub const NI_MAXHOST : :: socklen_t = 1025 ;
100
100
101
+ pub const CTL_HW : :: c_int = 6 ;
102
+ pub const HW_AVAILCPU : :: c_int = 25 ;
103
+ pub const HW_NCPU : :: c_int = 3 ;
104
+
101
105
f ! {
102
106
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
103
107
let fd = fd as usize ;
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 82;
163
163
pub const _SC_THREAD_PRIO_INHERIT: :: c_int = 83 ;
164
164
pub const _SC_THREAD_PRIO_PROTECT: :: c_int = 84 ;
165
165
pub const _SC_THREAD_SAFE_FUNCTIONS: :: c_int = 85 ;
166
+ pub const _SC_NPROCESSORS_ONLN: :: c_int = 97 ;
166
167
167
168
pub const PTHREAD_STACK_MIN : :: size_t = 8192 ;
168
169
pub const PTHREAD_MUTEX_INITIALIZER : pthread_mutex_t = pthread_mutex_t {
You can’t perform that action at this time.
0 commit comments