Module rustix::process::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;

Structs§

Functions§

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