Add shim for libc::sysconf(libc::_SC_NPROCESSORS_CONF)

This commit is contained in:
Corey Farwell
2021-01-22 09:16:27 -05:00
parent 6fdda8aac9
commit 2aedbf0993
+1
View File
@@ -180,6 +180,7 @@ fn emulate_foreign_item_by_name(
let sysconfs = &[
("_SC_PAGESIZE", Scalar::from_int(PAGE_SIZE, this.pointer_size())),
("_SC_NPROCESSORS_CONF", Scalar::from_int(NUM_CPUS, this.pointer_size())),
("_SC_NPROCESSORS_ONLN", Scalar::from_int(NUM_CPUS, this.pointer_size())),
];
let mut result = None;