Lines Matching defs:Pid
5 //! The `Uid`, `Gid`, and `Pid` types can be constructed from raw integers,
43 pub struct Pid(RawNonZeroPid);
105 impl Pid {
106 /// A `Pid` corresponding to the init process (pid 1).
112 /// Converts a `RawPid` into a `Pid`.
125 /// Converts a known non-zero `RawPid` into a `Pid`.
136 /// Creates a `Pid` holding the ID of the given child process.
148 /// Converts a `Pid` into a `RawNonZeroPid`.
154 /// Converts an `Option<Pid>` into a `RawPid`.
252 pub fn getpid() -> Pid {
266 pub fn getppid() -> Option<Pid> {
279 pub fn getpgid(pid: Option<Pid>) -> io::Result<Pid> {
293 pub fn getpgrp() -> Pid {
306 pub fn setsid() -> io::Result<Pid> {