Expand description
Safe wrappers around functions found in libc “unistd.h” header
Modules§
Structs§
- Gid
- Group identifier
- Group
- Representation of a Group, based on
libc::group
- Pid
- Process identifier
- ResGid
- Real, effective and saved group IDs.
- ResUid
- Real, effective and saved user IDs.
- Uid
- User identifier
- User
- Representation of a User, based on
libc::passwd
Enums§
- Fork
Result - Represents the successful result of calling
fork
- Sysconf
Var - Variable names for
sysconf
Constants§
- ROOT
- Constant for UID = 0
Functions§
- close
- Close a file descriptor.
- daemon
- Daemonize this process by detaching from the controlling terminal (see daemon(3)).
- execv
- Replace the current process image with a new one (see exec(3)).
- execve
- Replace the current process image with a new one (see execve(2)).
- execveat
- Execute program relative to a directory file descriptor (see execveat(2)).
- execvp
- Replace the current process image with a new one and replicate shell
PATH
searching behavior (see exec(3)). - execvpe
- Replace the current process image with a new one and replicate shell
PATH
searching behavior (seeexecvpe(3)
). - fexecve
- Replace the current process image with a new one (see fexecve(2)).
- fork⚠
- Create a new child process duplicating the parent process (see fork(2)).
- getegid
- Get the effective group ID
- geteuid
- Get the effective user ID
- getgid
- Get the real group ID
- getgrouplist
- Calculate the supplementary group access list.
- getgroups
- Get the list of supplementary group IDs of the calling process.
- getpgid
- Get process group
- getpgrp
- Get the group id of the calling process (see getpgrp(3)).
- getpid
- Get the pid of this process (see getpid(2)).
- getppid
- Get the pid of this processes’ parent (see getpid(2)).
- getresgid
- Gets the real, effective, and saved group IDs.
- getresuid
- Gets the real, effective, and saved user IDs.
- getsid
- Get the process group ID of a session leader getsid(2).
- gettid
- Get the caller’s thread ID (see gettid(2).
- getuid
- Get a real user ID
- initgroups
- Initialize the supplementary group access list.
- pause
- Suspend the thread until a signal is received.
- pipe
- Create an interprocess channel.
- read
- Read from a raw file descriptor.
- reserve_
double_ 🔒buffer_ size - setegid
- Set the effective group ID
- seteuid
- Set the effective user ID
- setgid
- Set the group ID
- setgroups
- Set the list of supplementary group IDs for the calling process.
- setpgid
- Set a process group ID (see setpgid(2)).
- setresgid
- Sets the real, effective, and saved gid. (see setresuid(2))
- setresuid
- Sets the real, effective, and saved uid. (see setresuid(2))
- setsid
- Create new session and set process group id (see setsid(2)).
- setuid
- Set the user ID
- sleep
- Suspend execution for an interval of time
- sysconf
- Get configurable system variables (see sysconf(3))
- to_
exec_ 🔒array - write
- Write to a raw file descriptor.