Module unistd

Source
Expand description

Safe wrappers around functions found in libc “unistd.h” header

Structs§

Gid
Group identifier
Group
Representation of a Group, based on libc::group
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§

SysconfVar
Variable names for sysconf

Constants§

ROOT
Constant for UID = 0

Functions§

close
Close a raw file descriptor
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.
getresgid
Gets the real, effective, and saved group IDs.
getresuid
Gets the real, effective, and saved user IDs.
getuid
Get a real user ID
initgroups
Initialize the supplementary group access list.
pipe
Create an interprocess channel.
read
Read from a raw file descriptor.
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.
setresgid
Sets the real, effective, and saved gid. (see setresuid(2))
setresuid
Sets the real, effective, and saved uid. (see setresuid(2))
setuid
Set the user ID
sleep
Suspend execution for an interval of time
sysconf
Get configurable system variables (see sysconf(3))
write
Write to a raw file descriptor.