Structs§
Functions§
- Changes the working directory of the current process. See the Linux docs for details
- Attempts to close the provided
Fd
. See the linux docs for details. - Copies from one file-offset to another in-kernel
- Get the file access mode and status flags See the Linux documentation for details
- Set file status flags, access mode and creation flags are valid, but ignored See the linux documentation for details
- Reads directory entities into the provided buffer and returns the number of bytes read See Linux docs for details
- Gets the userid of this process See the linux docs for details
- Seek a fd See details in the linux docs here
- Create a directory named
path
See linux documentation for details - mmap⚠Map files or devices into memory. Almost impossible to make safe, and the linux documentation should be consulted for details.
- Mount a device. Attempt to mount a device from
source
totarget
specifying aFilesystemType
andflags
. Some filesystems allow providing additional data, which goes indata
. See the linux docs for details. - Unmaps memory. Almost impossible to make safe, and the linux documentation should be consulted for details.
- Attempts to open the fd at the path specified by a null terminated string, with the provided
OpenFlags
See the linux docs here - Attempts to open a file at the specified path from the opened directory (
Fd
) with the specifiedOpenFlags
See the linux docs here - Attempts to open a file at the specified path from the opened directory (
Fd
) with the specifiedOpenFlags
andMode
See the linux docs here - Attempts to open the fd at the path specified by a null terminated string, with the provided
OpenFlags
andMode
See the linux docs here - Attempts to open the fd at the path described by the null terminated pointer supplied.
- Creates a new set of pipes by utilizing the
PIPE2
syscall See that documentation here - Creates a new set of pipes by utilizing the
PIPE2
syscall, with openflags See that documentation here - Attempts to read bytes up to the buffer’s len into the buffer from the provided
Fd
See linux docs for details - Renames
old_path
tonew_path
overwriting any content atnew_path
- Renames
old_path
tonew_path
withflags
. - Renames
old_path
tonew_path
withflags
. - Renames
old_path
tonew_path
withflags
. - Taking the liberty of using
unlinkat
for both implementations, effectively meaning thatCWD
is the base if the path isn’t absolute. Flags are either 0 orAT_REMOVEDIR
“unlink, unlinkat - delete a name and possibly the file it refers to”docs - Sets the process’ group id to the provided
gid
See Linux documentation for details - Sets process group id
grp_pid
to the process specified pyset_pid
See Linux documentation for detials - Creates a new session id if this process is not the current process group leader.
- stat Gets file status at the path pointed to by
path
- fstat Gets file status at the file pointed to by
Fd
- fstat Gets file status at the relative offset from
dir_fd
- Mount a swap. See the linux docs for details.
- Gets the
UtsName
struct See the linux docs for details - Taking the liberty of using
unlinkat
for both implementations, effectively meaning thatCWD
is the base if the path isn’t absolute “unlink, unlinkat - delete a name and possibly the file it refers to”docs - Taking the liberty of using
unlinkat
for both implementations, effectively meaning thatCWD
is the base if the path isn’t absolute. Flags are either 0 orAT_REMOVEDIR
“unlink, unlinkat - delete a name and possibly the file it refers to”docs - Unlink with a path from
CWD
and the provided flags. Flags are either 0 orAT_REMOVEDIR
. “unlink, unlinkat - delete a name and possibly the file it refers to”docs - Unmount a device. Attempts to unmount the device at
target
. See the linux docs for details. - Unshare the properties specified by
CloneFlags
with other processes. See the Linux docs for details - Attempts to write bytes from the buffer to the corresponding fd. See linux syscall docs