#![cfg_attr(target_vendor = "mustang", allow(unsafe_code))]
#[cfg(any(
linux_raw,
all(
libc,
any(
all(target_os = "android", target_pointer_width = "64"),
target_os = "linux"
)
)
))]
use crate::ffi::ZStr;
use crate::imp;
#[inline]
#[doc(alias = "_SC_PAGESIZE")]
#[doc(alias = "_SC_PAGE_SIZE")]
#[doc(alias = "getpagesize")]
pub fn page_size() -> usize {
imp::process::page_size()
}
#[cfg(not(target_os = "wasi"))]
#[inline]
#[doc(alias = "_SC_CLK_TCK")]
pub fn clock_ticks_per_second() -> u64 {
imp::process::clock_ticks_per_second()
}
#[cfg(any(
linux_raw,
all(
libc,
any(
all(target_os = "android", target_pointer_width = "64"),
target_os = "linux"
)
)
))]
#[inline]
pub fn linux_hwcap() -> (usize, usize) {
imp::process::linux_hwcap()
}
#[cfg(any(
linux_raw,
all(
libc,
any(
all(target_os = "android", target_pointer_width = "64"),
target_os = "linux"
)
)
))]
#[inline]
pub fn linux_execfn() -> &'static ZStr {
imp::process::linux_execfn()
}
#[cfg(target_vendor = "mustang")]
#[inline]
#[doc(hidden)]
pub unsafe fn init(envp: *mut *mut u8) {
imp::process::init(envp)
}