Module rsix::process[][src]

Expand description

Process-associated operations.

Structs

Cpuidlinux_raw, or libc and (Android or Linux)

A Linux CPU ID.

gid_t—A Unix group ID.

pid_t—A Unix process ID.

struct rlimit—Current and maximum values used in getrlimit.

uid_t—A Unix user ID.

struct utsname—Return type for uname.

Enums

A command for use with membarrier and membarrier_cpu.

A resource value for use with getrlimit.

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 working directory.

exit_groupAndroid or Linux

Exit all the threads in the current process’ thread group.

fchdirNon-Fuchsia

fchdir(fd)—Change the working directory.

getcwdNon-WASI

getcwd()

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.

linux_execfnlinux_raw, or libc and (Android or Linux)

getauxval(AT_EXECFN)—Returns the Linux “execfn” string.

linux_hwcaplinux_raw, or libc and (Android or Linux)

(getauxval(AT_HWCAP), getauxval(AT_HWCAP2)—Returns the Linux “hwcap” data.

membarrier(cmd, 0, 0)—Perform a memory barrier.

membarrier(cmd, MEMBARRIER_CMD_FLAG_CPU, cpu)—Perform a memory barrier with a specific CPU.

membarrier(MEMBARRIER_CMD_QUERY, 0, 0)—Query the supported membarrier commands.

nice()—Adjust the scheduling priority of the current process.

getpagesize()—Returns the process’ page size.

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.

uname()—Returns high-level information about the runtime OS and hardware.

Type Definitions