lx/syscalls/
getppid.rs

1use super::abi::*;
2use crate::{
3    pid_t,
4    result_from_value,
5};
6
7#[inline]
8pub fn getppid() -> crate::Result<pid_t> {
9    let ret = unsafe { syscall_0(110) as i32 };
10    result_from_value(ret)
11}