Files
RedBear-OS/src/header/unistd/sysconf.rs
T
2025-10-03 21:51:10 -06:00

19 lines
379 B
Rust

/// sysconf.h: <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sysconf.html>.
#[cfg(target_os = "redox")]
#[path = "sysconf/redox.rs"]
mod sys;
#[cfg(target_os = "linux")]
#[path = "sysconf/linux.rs"]
mod sys;
pub use sys::*;
use core::ffi::{c_int, c_long};
#[unsafe(no_mangle)]
pub unsafe extern "C" fn sysconf(name: c_int) -> c_long {
sysconf_impl(name)
}