1 2 3 4 5 6 7 8 9 10 11
use core::ffi::{c_int, c_long}; use ax_posix_api::sys_sysconf; /// Return system configuration infomation /// /// Notice: currently only support what unikraft covers #[unsafe(no_mangle)] pub unsafe extern "C" fn sysconf(name: c_int) -> c_long { sys_sysconf(name) }