summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Marie <semarie@online.fr>2018-07-14 06:45:39 +0200
committerSébastien Marie <semarie@online.fr>2018-07-14 06:45:39 +0200
commitec026d605c55592f68c0af37e0e77152eddf4ce5 (patch)
treea7aa3f0196bdeb8ffd98f0fc15121f216916bd0a
parent14f6cf8c6ac59a3a084e0cc71f9dbf3479d0da9f (diff)
downloadrust-libc-ec026d605c55592f68c0af37e0e77152eddf4ce5.tar.gz
add HW_NCPUONLINE sysctl (number of cpus being used) on OpenBSD
-rw-r--r--src/unix/bsd/netbsdlike/openbsdlike/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsdlike/mod.rs b/src/unix/bsd/netbsdlike/openbsdlike/mod.rs
index d49c94e74c..f75d7b35ac 100644
--- a/src/unix/bsd/netbsdlike/openbsdlike/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsdlike/mod.rs
@@ -579,6 +579,7 @@ pub const CTL_MACHDEP: ::c_int = 7;
pub const CTL_DDB: ::c_int = 9;
pub const CTL_VFS: ::c_int = 10;
pub const CTL_MAXID: ::c_int = 11;
+pub const HW_NCPUONLINE: ::c_int = 25;
pub const KERN_OSTYPE: ::c_int = 1;
pub const KERN_OSRELEASE: ::c_int = 2;
pub const KERN_OSREV: ::c_int = 3;