Expand description
Process-associated operations.
Structs§
- Flock
- File lock data structure used in
fcntl_getlk. - Gid
gid_t—A Unix group ID.- Pid
pid_t—A non-zero Unix process ID.- Rlimit
struct rlimit—Current and maximum values used ingetrlimit,setrlimit, and [prlimit].- Signal
- A signal number for use with
kill_process,kill_process_group, andkill_current_process_group. - Uid
uid_t—A Unix user ID.- Wait
IdOptions - Options for modifying the behavior of
waitid. - Wait
IdStatus - The status of a process after calling
waitid. - Wait
Options - Options for modifying the behavior of
wait/waitpid. - Wait
Status - The status of a child process after calling
wait/waitpid.
Enums§
- Flock
Offset Type F_SEEK*constants for use withfcntl_getlk.- Flock
Type F_*LCKconstants for use withfcntl_getlk.- Resource
- A resource value for use with
getrlimit,setrlimit, andprlimit. - WaitId
- The identifier to wait on in a call to
waitid.
Constants§
- EXIT_
FAILURE EXIT_FAILUREfor use withexit.- EXIT_
SIGNALED_ SIGABRT - The exit status used by a process terminated with a
Signal::ABORTsignal. - EXIT_
SUCCESS EXIT_SUCCESSfor use withexit.
Functions§
- chdir
chdir(path)—Change the current working directory.- chroot
chroot(path)—Change the process root directory.- fchdir
fchdir(fd)—Change the current working directory.- fcntl_
getlk fcntl(fd, F_GETLK)—Get the first lock that blocks the lock description pointed to by the argumentlock. If no such lock is found, thenNoneis returned.- getcwd
getcwd—Return the current working directory.- 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.- getpriority_
pgrp getpriority(PRIO_PGRP, gid)—Get the scheduling priority of the given process group.- getpriority_
process getpriority(PRIO_PROCESS, pid)—Get the scheduling priority of the given process.- getpriority_
user getpriority(PRIO_USER, uid)—Get the scheduling priority of the given user.- getrlimit
getrlimit(resource)—Get a process resource limit value.- getsid
getsid(pid)—Get the session ID of the given process.- getuid
getuid()—Returns the process’ real user ID.- ioctl_
tiocsctty ioctl(fd, TIOCSCTTY, 0)—Sets the controlling terminal for the process.- kill_
current_ process_ group kill(0, sig)—Sends a signal to all processes in the current process group.- kill_
process kill(pid, sig)—Sends a signal to a process.- kill_
process_ group kill(-pid, sig)—Sends a signal to all processes in a process group.- nice
nice(inc)—Adjust the scheduling priority of the current process.- setpgid
setpgid(pid, pgid)—Sets the process group ID of the given process.- setpriority_
pgrp setpriority(PRIO_PGRP, pgid)—Get the scheduling priority of the given process group.- setpriority_
process setpriority(PRIO_PROCESS, pid)—Get the scheduling priority of the given process.- setpriority_
user setpriority(PRIO_USER, uid)—Get the scheduling priority of the given user.- setrlimit
setrlimit(resource, new)—Set a process resource limit value.- setsid
setsid()—Create a new session.- test_
kill_ current_ process_ group 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.- test_
kill_ process kill(pid, 0)—Check validity of pid and permissions to send signals to the process, without actually sending any signals.- test_
kill_ process_ group 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
umask(mask)—Set the process file creation mask.- wait
wait(waitopts)—Wait for any of the children of calling process to change state.- waitid
waitid(_, _, _, opts)—Wait for the specified child process to change state.- waitpgid
waitpid(-pgid, waitopts)—Wait for a process in a specific process group to change state.- waitpid
waitpid(pid, waitopts)—Wait for a specific process to change state.