Sha256: eef6aa01830ddd510b83f507da2002c03e58318b73744be2c06ebbe33c4f194f
Contents?: true
Size: 439 Bytes
Versions: 23
Compression:
Stored size: 439 Bytes
Contents
//! linux_raw syscalls for PIDs //! //! # Safety //! //! See the `rustix::backend` module documentation for details. #![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] use crate::backend::conv::ret_usize_infallible; use crate::pid::{Pid, RawPid}; #[inline] pub(crate) fn getpid() -> Pid { unsafe { let pid = ret_usize_infallible(syscall_readonly!(__NR_getpid)) as RawPid; Pid::from_raw_unchecked(pid) } }
Version data entries
23 entries across 23 versions & 1 rubygems