Expand description
Process-associated operations.
Structs§
gid_t
—A Unix group ID.pid_t
—A non-zero Unix process ID.uid_t
—A Unix user ID.- Options for modifying the behavior of
waitid
. - The status of a process after calling
waitid
.
Enums§
- The identifier to wait on in a call to
waitid
.
Constants§
EXIT_FAILURE
for use withexit
.- The exit status used by a process terminated with a
Signal::Abort
signal. EXIT_SUCCESS
for use withexit
.
Functions§
chdir(path)
—Change the current working directory.chroot(path)
—Change the process root directory.fchdir(fd)
—Change the current working directory.getcwd
—Return the current working directory.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.getpriority(PRIO_PGRP, gid)
—Get the scheduling priority of the given process group.getpriority(PRIO_PROCESS, pid)
—Get the scheduling priority of the given process.getpriority(PRIO_USER, uid)
—Get the scheduling priority of the given user.getrlimit(resource)
—Get a process resource limit value.getsid(pid)
—Get the session ID of the given process.getuid()
—Returns the process’ real user ID.ioctl(fd, TIOCSCTTY, 0)
—Sets the controlling terminal for the process.kill(0, sig)
—Sends a signal to all processes in the current process group.kill(pid, sig)
—Sends a signal to a process.kill(-pid, sig)
—Sends a signal to all processes in a process group.nice(inc)
—Adjust the scheduling priority of the current process.sched_yield()
—Hints to the OS that other processes should run.setpgid(pid, pgid)
—Sets the process group ID of the given process.setpriority(PRIO_PGRP, pgid)
—Get the scheduling priority of the given process group.setpriority(PRIO_PROCESS, pid)
—Get the scheduling priority of the given process.setpriority(PRIO_USER, uid)
—Get the scheduling priority of the given user.setrlimit(resource, new)
—Set a process resource limit value.setsid()
—Create a new session.kill(0, 0)
—Check validity of pid and permissions to send signals to the all processes in the current process group, without actually sending any signals.kill(pid, 0)
—Check validity of pid and permissions to send signals to the process, without actually sending any signals.kill(-pid, 0)
—Check validity of pid and permissions to send signals to all processes in the process group, without actually sending any signals.umask(mask)
—Set the process file creation mask.wait(waitopts)
—Wait for any of the children of calling process to change state.waitid(_, _, _, opts)
—Wait for the specified child process to change state.waitpid(-pgid, waitopts)
—Wait for a process in a specific process group to change state.waitpid(pid, waitopts)
—Wait for a specific process to change state.
Type Aliases§
- A group identifier as a raw integer.
- A process identifier as a raw integer.
- A user identifier as a raw integer.