Modules§
Macros§
- c_flags
- enumeration
- ioctl
- mode
- Create a file access mode.
Roughly follows the format shown by
ls -l
.
Structs§
Enums§
Constants§
- CODE_
BITS - CODE_
MASK - CODE_
SHIFT - DIRECTION_
BITS - DIRECTION_
MASK - DIRECTION_
SHIFT - NUMBER_
BITS - NUMBER_
MASK - NUMBER_
SHIFT - SIZE_
BITS - SIZE_
MASK - SIZE_
SHIFT
Traits§
Functions§
- accept
- Accept a connection on a socket.
- bind
- Bind a name to a socket.
- close
- connect
- Initiate a connection on a socket.
- epoll_
create - Open an epoll file descriptor.
- epoll_
ctl - Modify an entry in the epoll wait list.
- epoll_
wait - Wait for an entry to enter the epoll ready list.
- exit
- Terminate the process, returning a code to the parent process.
- fcntl
- Manipulate a file descriptor.
- fstat
- ioctl⚠
- Send an I/O control command to a stream device.
- listen
- Listen for connections on a socket.
- lstat
- lstat_
unsafe ⚠ - Get information about a file without opening it and without following symlinks.
- memfd_
create - Create an anonymous file.
- memfd_
create_ ⚠unsafe - Create an anonymous file.
- mmap
- Map a memory object in to the processes address space.
- mprotect⚠
- Change the access protections for a region of memory.
- munmap⚠
- Unmap a region of memory from the processes address space.
- open
- open_
unsafe ⚠ - Open a file from the file system.
- read
- Read in the next available bytes from a file. The buffer may not be filled, extra bytes are left unmodified.
- read_
uninit ⚠ - Read in the next available bytes from a file. The buffer may be uninitialised.
- readv
- Vectorized read. The same operation as read but specifying a set of destination buffers. The buffers may be uninitialised.
- recvmsg
- Recieve a message from a socket.
- sendmsg
- Send a message to a socket.
- socket
- Create a socket file descriptor.
- stat
- stat_
unsafe ⚠ - Get information about a file without opening it.
- unlink
- Remove an entry from the file system.
- unlink_
unsafe ⚠ - Remove an entry from the file system.
- write
- Write a slice of bytes to a file. The number of bytes successfully written is returned.