MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / getpgid

Function getpgid

src/backend/linux_raw/process/syscalls.rs:70–76  ·  view source on GitHub ↗
(pid: Option<Pid>)

Source from the content-addressed store, hash-verified

68
69#[inline]
70pub(crate) fn getpgid(pid: Option<Pid>) -> io::Result<Pid> {
71 unsafe {
72 let pgid = ret_c_int(syscall_readonly!(__NR_getpgid, c_int(Pid::as_raw(pid))))?;
73 debug_assert!(pgid > 0);
74 Ok(Pid::from_raw_unchecked(pgid))
75 }
76}
77
78#[inline]
79pub(crate) fn setpgid(pid: Option<Pid>, pgid: Option<Pid>) -> io::Result<()> {

Callers

nothing calls this directly

Calls 1

ret_c_intFunction · 0.50

Tested by

no test coverage detected