Available on crate feature
process only.Expand description
Process-associated operations.
Structs§
- Floating
Point Emulation Control linux_kernel PR_FPEMU_*flags for use withfloating_point_emulation_controlandset_floating_point_emulation_control.- Floating
Point Exception Mode linux_kernel - Zero means floating point exceptions are disabled.
- Flock
Neither Emscripten nor target_os=espidfnor Fuchsia nor Redox nortarget_os=vitanor WASI and non-target_os=horizon - File lock data structure used in
fcntl_getlk. - Gid
gid_t—A Unix group ID.- Pid
pid_t—A non-zero Unix process ID.- Pidfd
Flags Linux PIDFD_*flags for use withpidfd_open.- Pidfd
Getfd Flags Linux - All flags are reserved for future use.
- Prctl
MmMap linux_kernel - This structure provides new memory descriptor map which mostly modifies
/proc/pid/stat[m]output for a task. This mostly done in a sake of checkpoint/restore functionality. - Rlimit
Neither target_os=espidfnor Fuchsia nortarget_os=horizonnor Redox nortarget_os=vitanor WASI struct rlimit—Current and maximum values used ingetrlimit,setrlimit, andprlimit.- Signal
- A signal number for use with
kill_process,kill_process_group, andkill_current_process_group. - Speculation
Feature Control linux_kernel PR_SPEC_*flags for use withcontrol_speculative_feature.- Speculation
Feature State linux_kernel - Zero means the processors are not vulnerable.
- Uid
uid_t—A Unix user ID.- Unaligned
Access Control linux_kernel PR_UNALIGN_*flags for use withunaligned_access_controlandset_unaligned_access_control.- Wait
IdOptions Neither target_os=espidfnortarget_os=vitanor WASI - Options for modifying the behavior of
waitid. - Wait
IdStatus Neither target_os=espidfnortarget_os=vitanor WASI and neithertarget_os=horizonnor OpenBSD nor Redox nor WASI - The status of a process after calling
waitid. - Wait
Options Neither target_os=espidfnortarget_os=vitanor WASI - Options for modifying the behavior of
wait/waitpid. - Wait
Status Neither target_os=espidfnortarget_os=vitanor WASI - The status of a child process after calling
wait/waitpid.
Enums§
- Dumpable
Behavior linux_kernel SUID_DUMP_*values for use withdumpable_behaviorandset_dumpable_behavior.- Endian
Mode linux_kernel PR_ENDIAN_*values for use withendian_mode.- Floating
Point Mode linux_kernel PR_FP_MODE_*values for use withfloating_point_modeandset_floating_point_mode.- Flock
Offset Type Neither Emscripten nor target_os=espidfnor Fuchsia nor Redox nortarget_os=vitanor WASI and non-target_os=horizon F_SEEK*constants for use withfcntl_getlk.- Flock
Type Neither Emscripten nor target_os=espidfnor Fuchsia nor Redox nortarget_os=vitanor WASI and non-target_os=horizon F_*LCKconstants for use withfcntl_getlk.- Machine
Check Memory Corruption Kill Policy linux_kernel PR_MCE_KILL_*values for use withmachine_check_memory_corruption_kill_policyandset_machine_check_memory_corruption_kill_policy.- PTracer
linux_kernel - Process ptracer.
- Resource
- A resource value for use with
getrlimit,setrlimit, andprlimit. - Speculation
Feature linux_kernel PR_SPEC_*values for use withspeculative_feature_stateandcontrol_speculative_feature.- Time
Stamp Counter Readability linux_kernel PR_TSC_*values for use withtime_stamp_counter_readabilityandset_time_stamp_counter_readability.- Timing
Method linux_kernel PR_TIMING_*values for use withtiming_methodandset_timing_method.- Virtual
Memory MapAddress linux_kernel PR_SET_MM_*values for use withset_virtual_memory_map_address.- WaitId
Neither target_os=espidfnortarget_os=vitanor WASI and neither OpenBSD nor Redox nor WASI - The identifier to wait on in a call to
waitid.
Constants§
- EXIT_
FAILURE EXIT_FAILUREfor use withexit.- EXIT_
SIGNALED_ SIGABRT Neither target_os=espidfnor WASI - The exit status used by a process terminated with a
Signal::ABORTsignal. - EXIT_
SUCCESS EXIT_SUCCESSfor use withexit.
Functions§
- chdir
fs chdir(path)—Change the current working directory.- child_
subreaper linux_kernel - Get the
child subreapersetting of the calling process. - chroot
fs chroot(path)—Change the process root directory.- configure_
io_ flusher_ behavior linux_kernel - Put the process in the
IO_FLUSHERstate, allowing it to make progress when allocating memory. - configure_
performance_ counters linux_kernel - Enable or disable all performance counters attached to the calling process.
- configure_
pointer_ ⚠authentication_ keys linux_kernelandlinux_raw_dep - Set enabled pointer authentication keys.
- configure_
virtual_ ⚠memory_ map linux_kernel - Provides one-shot access to all the addresses by passing in a
PrctlMmMap. - control_
speculative_ feature linux_kernel - Sets the state of the speculation misfeature.
- dumpable_
behavior linux_kernel - Get the current state of the calling process’
dumpableattribute. - enabled_
pointer_ authentication_ keys linux_kernelandlinux_raw_dep - Get enabled pointer authentication keys.
- endian_
mode linux_kernel - Get the endianness of the calling process.
- fchdir
Non-WASI and non-Fuchsia fchdir(fd)—Change the current working directory.- fcntl_
getlk Neither Emscripten nor target_os=espidfnor Fuchsia nortarget_os=horizonnor Redox nortarget_os=vitanor WASI 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.- floating_
point_ emulation_ control linux_kernel - Get floating point emulation control bits.
- floating_
point_ exception_ mode linux_kernel - Get floating point exception mode.
- floating_
point_ mode linux_kernel - Get the current floating point mode.
- getcwd
fsandalloc getcwd—Return the current working directory.- getegid
Non-WASI getegid()—Returns the process’ effective group ID.- geteuid
Non-WASI geteuid()—Returns the process’ effective user ID.- getgid
Non-WASI getgid()—Returns the process’ real group ID.- getgroups
alloc getgroups()—Return a list of the current user’s groups.- getpgid
Non-WASI getpgid(pid)—Returns the process group ID of the given process.- getpgrp
Non-WASI getpgrp()—Returns the process’ group ID.- getpid
Non-WASI getpid()—Returns the process’ ID.- getppid
Non-WASI getppid()—Returns the parent process’ ID.- getpriority_
pgrp Neither Fuchsia nor target_os=vitanor WASI and neithertarget_os=espidfnortarget_os=horizon getpriority(PRIO_PGRP, gid)—Get the scheduling priority of the given process group.- getpriority_
process Neither Fuchsia nor target_os=vitanor WASI and neithertarget_os=espidfnortarget_os=horizon getpriority(PRIO_PROCESS, pid)—Get the scheduling priority of the given process.- getpriority_
user Neither Fuchsia nor target_os=vitanor WASI and neithertarget_os=espidfnortarget_os=horizon getpriority(PRIO_USER, uid)—Get the scheduling priority of the given user.- getrlimit
Neither target_os=espidfnor Fuchsia nortarget_os=horizonnor Redox nortarget_os=vitanor WASI getrlimit(resource)—Get a process resource limit value.- getsid
Non-WASI and non-Redox getsid(pid)—Get the session ID of the given process.- getuid
Non-WASI getuid()—Returns the process’ real user ID.- ioctl_
tiocsctty Neither target_os=aixnortarget_os=espidfnortarget_os=vitaand neither Windows nortarget_os=aixnortarget_os=horizonnor Redox nor WASI ioctl(fd, TIOCSCTTY, 0)—Sets the controlling terminal for the process.- is_
io_ flusher linux_kernel - Get the
IO_FLUSHERstate of the caller. - kill_
current_ process_ group Neither target_os=espidfnor WASI kill(0, sig)—Sends a signal to all processes in the current process group.- kill_
process Neither target_os=espidfnor WASI kill(pid, sig)—Sends a signal to a process.- kill_
process_ group Neither target_os=espidfnor WASI kill(-pid, sig)—Sends a signal to all processes in a process group.- machine_
check_ memory_ corruption_ kill_ policy linux_kernel - Get the current per-process machine check kill policy.
- nice
Neither Fuchsia nor target_os=vitanor WASI nice(inc)—Adjust the scheduling priority of the current process.- parent_
process_ death_ signal linux_kernel - Get the current value of the parent process death signal.
- pidfd_
getfd Linux syscall(SYS_pidfd_getfd, pidfd, flags)—Obtain a duplicate of another process’ file descriptor.- pidfd_
open Linux syscall(SYS_pidfd_open, pid, flags)—Creates a file descriptor for a process.- pidfd_
send_ signal Linux syscall(SYS_pidfd_send_signal, pidfd, sig, NULL, 0)—Send a signal to a process specified by a file descriptor.- pivot_
root fs pivot_root(new_root, put_old)—Change the root mount.- prlimit
Neither target_os=espidfnor Fuchsia nortarget_os=horizonnor Redox nortarget_os=vitanor WASI andlinux_kernel prlimit(pid, resource, new)—Get and set a process resource limit value.- set_
auxiliary_ ⚠vector linux_kernel - Set a new auxiliary vector.
- set_
child_ subreaper linux_kernel - Set the
child subreaperattribute of the calling process. - set_
dumpable_ behavior linux_kernel - Set the state of the
dumpableattribute. - set_
endian_ ⚠mode linux_kernel - Set the endianness of the calling process.
- set_
executable_ file linux_kernel - Supersede the
/proc/pid/exesymbolic link with a new one pointing to a new executable file. - set_
floating_ point_ emulation_ control linux_kernel - Set floating point emulation control bits.
- set_
floating_ point_ exception_ mode linux_kernel - Set floating point exception mode.
- set_
floating_ point_ mode linux_kernel - Allow control of the floating point mode from user space.
- set_
machine_ check_ memory_ corruption_ kill_ policy linux_kernel - Set the machine check memory corruption kill policy for the calling thread.
- set_
parent_ process_ death_ signal linux_kernel - Set the parent-death signal of the calling process.
- set_
ptracer linux_kernel - Declare that the ptracer process can
ptracethe calling process as if it were a direct process ancestor. - set_
time_ stamp_ counter_ readability linux_kernel - Set the state of the flag determining if the timestamp counter can be read by the process.
- set_
timing_ method linux_kernel - Set whether to use (normal, traditional) statistical process timing or accurate timestamp-based process timing.
- set_
unaligned_ access_ control linux_kernel - Set unaligned access control bits.
- set_
virtual_ ⚠memory_ map_ address linux_kernel - Modify certain kernel memory map descriptor addresses of the calling process.
- set_
virtual_ memory_ region_ name linux_kernel - Set the name for a virtual memory region.
- setpgid
Non-WASI setpgid(pid, pgid)—Sets the process group ID of the given process.- setpriority_
pgrp Neither Fuchsia nor target_os=vitanor WASI and neithertarget_os=espidfnortarget_os=horizon setpriority(PRIO_PGRP, pgid)—Get the scheduling priority of the given process group.- setpriority_
process Neither Fuchsia nor target_os=vitanor WASI and neithertarget_os=espidfnortarget_os=horizon setpriority(PRIO_PROCESS, pid)—Get the scheduling priority of the given process.- setpriority_
user Neither Fuchsia nor target_os=vitanor WASI and neithertarget_os=espidfnortarget_os=horizon setpriority(PRIO_USER, uid)—Get the scheduling priority of the given user.- setrlimit
Neither target_os=espidfnor Fuchsia nortarget_os=horizonnor Redox nortarget_os=vitanor WASI setrlimit(resource, new)—Set a process resource limit value.- setsid
Non-WASI setsid()—Create a new session.- speculative_
feature_ state linux_kernel - Get the state of the speculation misfeature.
- test_
kill_ current_ process_ group Neither target_os=espidfnor WASI 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 Neither target_os=espidfnor WASI kill(pid, 0)—Check validity of pid and permissions to send signals to the process, without actually sending any signals.- test_
kill_ process_ group Neither target_os=espidfnor WASI kill(-pid, 0)—Check validity of pid and permissions to send signals to all processes in the process group, without actually sending any signals.- time_
stamp_ counter_ readability linux_kernel - Get the state of the flag determining if the timestamp counter can be read.
- timing_
method linux_kernel - Get which process timing method is currently in use.
- umask
fs umask(mask)—Set the process file creation mask.- unaligned_
access_ control linux_kernel - Get unaligned access control bits.
- virtual_
memory_ map_ config_ struct_ size linux_kernel - Get the size of the
PrctlMmMapthe kernel expects. - wait
Neither target_os=espidfnortarget_os=vitanor WASI and non-WASI wait(waitopts)—Wait for any of the children of calling process to change state.- waitid
Neither target_os=espidfnortarget_os=vitanor WASI and neither Cygwin nortarget_os=horizonnor OpenBSD nor Redox nor WASI waitid(_, _, _, opts)—Wait for the specified child process to change state.- waitpgid
Neither target_os=espidfnortarget_os=vitanor WASI and non-WASI waitpid(-pgid, waitopts)—Wait for a process in a specific process group to change state.- waitpid
Neither target_os=espidfnortarget_os=vitanor WASI and non-WASI waitpid(pid, waitopts)—Wait for a specific process to change state.
Type Aliases§
- Foreign
RawFd Linux - Raw file descriptor in another process.
- RawGid
- A group identifier as a raw integer.
- RawPid
- A process identifier as a raw integer.
- RawUid
- A user identifier as a raw integer.