Module id

Source
Expand description

Unix user, group, and process identifiers.

§Safety

The Uid, Gid, and Pid types can be constructed from raw integers, which is marked unsafe because actual OS’s assign special meaning to some integer values.

Re-exports§

pub use crate::pid::Pid;
pub use crate::pid::RawPid;
pub use crate::ugid::Gid;
pub use crate::ugid::RawGid;
pub use crate::ugid::RawUid;
pub use crate::ugid::Uid;

Functions§

getegid
getegid()—Returns the process’ effective group ID.
geteuid
geteuid()—Returns the process’ effective user ID.
getgid
getgid()—Returns the process’ real group ID.
getgroups
getgroups()—Return a list of the current user’s groups.
getpgid
getpgid(pid)—Returns the process group ID of the given process.
getpgrp
getpgrp()—Returns the process’ group ID.
getpid
getpid()—Returns the process’ ID.
getppid
getppid()—Returns the parent process’ ID.
getsid
getsid(pid)—Get the session ID of the given process.
getuid
getuid()—Returns the process’ real user ID.
setpgid
setpgid(pid, pgid)—Sets the process group ID of the given process.
setsid
setsid()—Create a new session.