mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
Add shim for libc::sysconf(libc::_SC_NPROCESSORS_CONF)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user