use crate::backend;
#[cfg(any(
linux_raw,
any(
all(target_os = "android", target_pointer_width = "64"),
target_os = "linux",
)
))]
use crate::ffi::CStr;
#[inline]
#[doc(alias = "PAGESIZE")]
#[doc(alias = "PAGE_SIZE")]
#[doc(alias = "_SC_PAGESIZE")]
#[doc(alias = "_SC_PAGE_SIZE")]
#[doc(alias = "getpagesize")]
pub fn page_size() -> usize {
backend::param::auxv::page_size()
}
#[cfg(not(any(target_os = "horizon", target_os = "vita", target_os = "wasi")))]
#[inline]
#[doc(alias = "_SC_CLK_TCK")]
pub fn clock_ticks_per_second() -> u64 {
backend::param::auxv::clock_ticks_per_second()
}
#[cfg(any(
linux_raw,
any(
all(target_os = "android", target_pointer_width = "64"),
target_os = "linux",
)
))]
#[inline]
pub fn linux_hwcap() -> (usize, usize) {
backend::param::auxv::linux_hwcap()
}
#[cfg(any(
linux_raw,
any(
all(target_os = "android", target_pointer_width = "64"),
target_os = "linux",
)
))]
#[inline]
pub fn linux_minsigstksz() -> usize {
backend::param::auxv::linux_minsigstksz()
}
#[cfg(any(
linux_raw,
any(
all(target_os = "android", target_pointer_width = "64"),
target_os = "linux",
)
))]
#[inline]
pub fn linux_execfn() -> &'static CStr {
backend::param::auxv::linux_execfn()
}