Crate syslib

Source

Modules§

epoll
open
sock

Macros§

c_flags
enumeration
ioctl
mode
Create a file access mode. Roughly follows the format shown by ls -l.

Structs§

Device
Error
Fd
An un-owned file descriptor.
File
IoVec
IoVecMut
Socket
Stat

Enums§

Fcntl

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§

FileDescriptor

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.