process
only.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 wait/waitpid
the status of the child processes the caller waited on
Enums
A signal number for use with kill_process
, kill_process_group
,
and kill_current_process_group
.
Constants
EXIT_FAILURE
for use with exit
.
The exit status used by a process terminated with SIGABRT
signal.
EXIT_SUCCESS
for use with exit
.
Functions
chdir(path)
—Change the current working 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.
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.
getuid()
—Returns the process’ real user ID.
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()
—Adjust the scheduling priority of the current process.
sched_yield()
—Hints to the OS that other processes should run.
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.
uname()
—Returns high-level information about the runtime OS and
hardware.
wait(waitopts)
—Wait for any of the children of calling process to
change state.
waitpid(pid, waitopts)
—Wait for a specific process to change state.
Type Definitions
A group identifier as a raw integer.
A non-zero process identifier as a raw non-zero integer.
A process identifier as a raw integer.
A user identifier as a raw integer.