Module unistd

Source
Expand description

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

Modules§

alarmsignal
Alarm signal scheduling.

Structs§

AccessFlagsfs
Options for access()
Pidprocess
Process identifier

Enums§

ForkResultprocess
Represents the successful result of calling fork
UnlinkatFlagsfs
Flags for unlinkat function.
Whencefs
Directive that tells lseek and lseek64 what the offset is relative to.

Functions§

accessfs
Checks the file named by path for accessibility according to the flags given by amode See access(2)
chdirfs
Change the current working directory of the calling process (see chdir(2)).
chrootfs
Change a process’s root directory
close
Close a raw file descriptor
daemonprocess
Daemonize this process by detaching from the controlling terminal (see daemon(3)).
dupfs
Create a copy of the specified file descriptor (see dup(2)).
dup2fs
Create a copy of the specified file descriptor using the specified fd (see dup(2)).
dup3fs
Create a new copy of the specified file descriptor using the specified fd and flags (see dup(2)).
eaccessfs
Checks the file named by path for accessibility according to the flags given by mode using effective UID, effective GID and supplementary group lists.
execvprocess
Replace the current process image with a new one (see exec(3)).
execveprocess
Replace the current process image with a new one (see execve(2)).
execveatprocess
Execute program relative to a directory file descriptor (see execveat(2)).
execvpprocess
Replace the current process image with a new one and replicate shell PATH searching behavior (see exec(3)).
execvpeprocess
Replace the current process image with a new one and replicate shell PATH searching behavior (see execvpe(3)).
faccessatfs
Checks the file named by path for accessibility according to the flags given by mode
fchdirfs
Change the current working directory of the process to the one given as an open file descriptor (see fchdir(2)).
fdatasyncfs
Synchronize the data of a file
fexecveprocess
Replace the current process image with a new one (see fexecve(2)).
forkprocess
Create a new child process duplicating the parent process (see fork(2)).
fsyncfs
Synchronize changes to a file
ftruncatefs
Truncate a file to a specified length
getcwdfs
Returns the current directory as a PathBuf
getpgidprocess
Get process group
getpgrpprocess
Get the group id of the calling process (see getpgrp(3)).
getpidprocess
Get the pid of this process (see getpid(2)).
getppidprocess
Get the pid of this processes’ parent (see getpid(2)).
getsidprocess
Get the process group ID of a session leader getsid(2).
gettidprocess
Get the caller’s thread ID (see gettid(2).
isattyfs
Determines if the file descriptor refers to a valid terminal type device.
linkatfs
Link one file to another file
lseekfs
Move the read/write file offset.
lseek64fs
Move the read/write file offset.
mkdirfs
Creates new directory path with access rights mode. (see mkdir(2))
mkfifofs
Creates new fifo special file (named pipe) with path path and access rights mode.
mkfifoatfs
Creates new fifo special file (named pipe) with path path and access rights mode.
mkstempfs
Creates a regular file which persists even after process termination
pausesignal
Suspend the thread until a signal is received.
pipe
Create an interprocess channel.
pipe2fs
Like pipe, but allows setting certain file descriptor flags.
pivot_rootfs
Change the root file system.
read
Read from a raw file descriptor.
setpgidprocess
Set a process group ID (see setpgid(2)).
setsidprocess
Create new session and set process group id (see setsid(2)).
sleep
Suspend execution for an interval of time
symlinkatfs
Creates a symbolic link at path2 which points to path1.
syncfs
Commit filesystem caches to disk
syncfsfs
Commit filesystem caches containing file referred to by the open file descriptor fd to disk
truncatefs
Truncate a file to a specified length
unlinkfs
Remove a directory entry
unlinkatfs
Remove a directory entry
write
Write to a raw file descriptor.

Type Aliases§

LinkatFlagsfs