/// Determine CPU and NUMA node on which the calling thread is running.
///
/// # Examples
///
/// ```
/// let ret = unsafe { nc::sched_getcpu() };
/// assert!(ret.is_ok());
/// ```
pub unsafe fn sched_getcpu() -> Result<i32, Errno> {
    unsafe { syscall0(SYS_SCHED_GETCPU).map(|val| val as i32) }
}
