1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
///Raw process id type, which is opaque type, platform dependent pub type RawId = i32; #[inline] ///Access id using `getpid` pub fn get_raw_id() -> RawId { extern "C" { fn getpid() -> RawId; } unsafe { getpid() } }