[][src]Module linux::syscall

Re-exports

pub use self::raw as r;
pub use self::raw::StatType;
pub use self::raw::StatfsType;

Modules

raw

Functions

accept4

Accepts a connection request on a socket.

acct

Enables or disables process accounting.

bind

Binds a socket to an address.

capget_v3

Retrieves the capabilities of a thread.

capset_v3

Sets the capabilities of this thread.

chdir

Changes the current working directory.

chroot

Changes the root directory of the process.

clock_getres

Retrieves the resolution of a clock.

clock_gettime

Retrieves the time of a clock.

clock_nanosleep

Sleeps for a certain amount of time.

clock_settime

Sets the time of a clock.

close

Closes a file descriptor.

connect

Connects a socket to an address.

dup3

Duplicates a file descriptor by replacing another one.

epoll_create

Creates a new epoll instance.

epoll_ctl

Modifies a file descriptor in an epoll instance.

epoll_pwait

Waits on an epoll instance.

eventfd2

Creates a new eventfd.

execveat

Executes a file relative to a directory.

exit

Terminates the thread.

exit_group

Terminates the process.

faccessat

Checks whether a file relative to a file descriptor can be accessed.

fadvise

Advises the kernel of a certain usage pattern of a file descriptor.

fallocate

Allocates memory for a file descriptor.

fchdir

Set the current working directory to the directory referenced by a file descriptor.

fchmod

Changes the mode of an inode represented by a file descriptor.

fchmodat

Changes the mode of a file relative to a directory.

fchownat

Changes the owner of a file relative to a directory.

fcntl_add_seals

Adds file seals to an inode.

fcntl_dupfd_cloexec

Duplicates a file descriptor.

fcntl_get_seals

Returns the seals of an inode.

fcntl_getfd

Retrieves the file descriptor flags of a file descriptor.

fcntl_getfl

Retrieves the file access mode and file status flags of a file descriptor.

fcntl_getpipe_sz

Gets the capacity of a pipe.

fcntl_setfd

Sets the file descriptor flags of a file descriptor.

fcntl_setfl

Sets the file status flags of a file descriptor.

fcntl_setpipe_sz

Sets the capacity of a pipe.

fdatasync

Transfers most of the kernel state of a file descriptor to the disk.

fgetxattr

Retrieves an extended attribute of a file descriptor.

flistxattr

Retrieves all extended attribute of a file descriptor.

flock

Applies or removes an advisory lock on a file descriptor.

fremovexattr

Removes an extended attribute of a file descriptor.

fsetxattr

Sets an extended attribute of a file descriptor.

fstatat

Retrieves information about a file relative to a file descriptor.

fstatfs

Retrieves filesystem statistics from a file descriptor.

fsync

Transfers the kernel state of a file descriptor to the disk.

ftruncate

Truncates a file descriptor to a certain length.

futex_wait

Waits on a futex.

futex_wake

Wakes processes sleeping on a futex.

getcpu

Retrieves the CPU and NUMA node this thread is running one.

getcwd

Retrieves the current working directory.

getdents

Retrieves entries in a opened directory.

getgroups

Retrieves the supplementary groups of this process.

getpeername

Retrieves the address a socket is connected to.

getpgid

Get the process group of a process.

getpid

Returns the process id of this process.

getppid

Returns the process id of the parent of this process.

getpriority

Returns the scheduling priority of a process, process group, or user.

getrandom

Retrieves random bytes from the system.

getresgid

Retrieves the real, effective, and saved group ids of the process.

getresuid

Retrieves the real, effective, and saved user ids of the process.

getrusage

Returns the resource usage of this thread, this process, or its children.

getsid

Get the session id of a process.

getsockname

Retrieves the address a socket is bound to.

getsockopt

Retrieves a socket option.

gettid

Returns the thread id of the calling thread.

getxattr

Retrieves an extended attribute of a file.

inotify_add_watch

Adds or modifies an inotify watch.

inotify_init1

Creates a new inotify object.

inotify_rm_watch

Removes an inotify watch.

ioctl_fionread

Executes ioctl with the FIONREAD option.

ioctl_siocgstampns

Executes ioctl with the SIOCGSTAMPNS option.

ioctl_siocinq

Executes ioctl with the SIOCINQ option.

ioctl_siocoutq

Executes ioctl with the SIOCOUTQ option.

ioctl_tcflsh

Executes ioctl with the TCFLSH option.

ioctl_tcgets2

Executes ioctl with the TCGETS2 option.

ioctl_tcsets2

Executes ioctl with the TCSETS2 option.

ioctl_tcxonc

Executes ioctl with the TCXONC option.

ioctl_tioccons

Executes ioctl with the TIOCCONS option.

ioctl_tiocexcl

Executes ioctl with the TIOCEXCL option.

ioctl_tiocgdev

Executes ioctl with the TIOCGDEV option.

ioctl_tiocgetd

Executes ioctl with the TIOCGETD option.

ioctl_tiocgexcl

Executes ioctl with the TIOCGEXCL option.

ioctl_tiocgpgrp

Executes ioctl with the TIOCGPGRP option.

ioctl_tiocgpkt

Executes ioctl with the TIOCGPKT option.

ioctl_tiocgptlck

Executes ioctl with the TIOCGPTLCK option.

ioctl_tiocgptn

Executes ioctl with the TIOCGPTN option.

ioctl_tiocgsid

Executes ioctl with the TIOCGSID option.

ioctl_tiocgwinsz

Executes ioctl with the TIOCGWINSZ option.

ioctl_tiocnotty

Executes ioctl with the TIOCNOTTY option.

ioctl_tiocnxcl

Executes ioctl with the TIOCNXCL option.

ioctl_tiocoutq

Executes ioctl with the TIOCOUTQ option.

ioctl_tiocpkt

Executes ioctl with the TIOCPKT option.

ioctl_tiocsctty

Executes ioctl with the TIOCSCTTY option.

ioctl_tiocsetd

Executes ioctl with the TIOCSETD option.

ioctl_tiocsig

Executes ioctl with the TIOCSIG option.

ioctl_tiocspgrp

Executes ioctl with the TIOCSPGRP option.

ioctl_tiocsptlck

Executes ioctl with the TIOCSPTLCK option.

ioctl_tiocsti

Executes ioctl with the TIOCSTI option.

ioctl_tiocswinsz

Executes ioctl with the TIOCSWINSZ option.

ioctl_tiocvhangup

Executes ioctl with the TIOCVHANGUP option.

kill

Sends a signal to a process.

lgetxattr

Retrieves an extended attribute of a file without following symlinks.

linkat

Creates a hardlink relative to directories.

listen

Marks a socket as accepting connections.

listxattr

Retrieves all extended attribute of a file.

llistxattr

Retrieves all extended attribute of a file without following symlinks.

lremovexattr

Removes an extended attribute of a file without following symlinks.

lseek

Seeks in a file descriptor.

lsetxattr

Sets an extended attribute of a file without following symlinks.

madvise

Advise the kernel of a certain memory usage pattern.

memfd_create

Creates a memfd.

mincore

Checks whether pages are in memory or swapped out.

mkdirat

Creates a directory relative to a directory.

mknodat

Creates a file relative to a directory.

mlock

Lock a memory range in memory.

mlockall

Lock all pages in memory.

mmap

Maps a file into memory.

mount

Mounts a filesystem.

mprotect

Change the memory protection of a region.

mq_getsetattr

Sets or retrieves attributes of a message queue.

mq_open

Opens a message queue.

mq_timedreceive

Receives a message over a message queue.

mq_timedsend

Sends a message over a message queue.

mq_unlink

Destroys a queue.

mremap

Remaps a file in memory.

msync

Synchronizes a memory mapping with the filesystem.

munlock

Unlock a memory range.

munlockall

Unlock all pages in memory.

munmap

Unmaps a file.

openat

Opens a file relative to a file descriptor.

pipe2

Creates a new pipe.

pivot_root

Moves the current root directory and sets a new one.

prctl_pr_cap_ambient_clear_all
prctl_pr_cap_ambient_is_set
prctl_pr_cap_ambient_lower
prctl_pr_cap_ambient_raise
prctl_pr_capbset_drop

Removes a capability from this thread's bounding set.

prctl_pr_capbset_read

Checks whether a capability is in the bounding set of this thread.

prctl_pr_get_keepcaps

Checks whether capabilities are dropped when all root user ids are dropped.

prctl_pr_set_keepcaps

Sets whether capabilities are dropped when all root user ids are dropped.

pread

Reads from an offset in a file descriptor.

preadv

Reads from an offset in a file descriptor into multiple buffers.

prlimit

Retrieves or sets resource limits of a process.

pwrite

Writes to an offset in a file descriptor.

pwritev

Writes to an offset in a file descriptor from multiple buffers.

read

Reads from a file descriptor.

readahead

Initiates readahead for a file descriptor in the kernel.

readlinkat

Reads the target of a symbolic link relative to a directory.

readv

Reads from a file descriptor into multiple buffers.

reboot

Performs reboot-related operations.

recvfrom

Receives data on a socket.

recvmmsg

Receives multiple messages on a socket.

recvmsg

Receives a message on a socket.

removexattr

Removes an extended attribute of a file.

renameat2

Renames a file relative to a directory.

rt_sigaction

Changes or inspects the handler of a signal.

rt_sigpending

Examines the pending signals.

rt_sigprocmask

Modifies or inspects the process signal mask.

rt_sigsuspend

Temporarily replace the signal mask and waits for a signal to arrive.

rt_sigtimedwait

Suspends the thread until a certain signal occurs.

sched_get_priority_max

Returns the maximum priority of a scheduling policy.

sched_get_priority_min

Returns the minimum priority of a scheduling policy.

sched_getaffinity

Retrieves a thread's CPU affinity mask.

sched_getattr

Gets the scheduling policy of a thread.

sched_rr_get_interval

Returns the round-robin time slice of a thread.

sched_setaffinity

Sets a thread's CPU affinity mask.

sched_setattr

Sets the scheduling policy of a thread.

sched_yield

Relinquish the CPU.

seccomp_seccomp_set_mode_strict

Enables strict seccomp mode for this thread.

sendmmsg

Sends multiple messages on a socket.

sendmsg

Sends a message on a socket.

sendto

Sends data to an address.

set_tid_address

Sets the address on which the kernel will perform a futex_wake operation upon thread exit.

setdomainname

Sets the domain name of the system.

setgroups

Sets the supplementary groups of this process.

sethostname

Sets the hostname of the system.

setns

Associate a thread with a namespace.

setpgid

Sets the process group of a process.

setpriority

Sets the scheduling priority of a process, process group, or user.

setresgid

Sets the real, effective, and saved group ids of this process.

setresuid

Sets the real, effective, and saved user ids of this process.

setsid

Create a new session.

setsockopt

Sets a socket option.

setxattr

Sets an extended attribute of a file.

shutdown

Shuts down (part of) a socket.

signalfd4

Creates or modified a signalfd.

socket

Creates a socket.

socketpair

Creates a pair of connected sockets.

splice

Copies data between two file descriptors.

statfs

Retrieves filesystem statistics from a path.

swapoff

Removes a swap file/device.

swapon

Adds a swap file/device.

symlinkat

Creates a symbolic link relative to a directory.

sync

Transfers the kernel state to disk.

syncfs

Transfers the kernel state of a filesystem to disk.

sysinfo

Retrieves integer-style information about the system.

tee

Copies data from one pipe to another.

tgkill

Sends a signal to a thread.

timerfd_create

Creates a new timerfd.

timerfd_gettime

Retrieves the current settings of a timerfd.

timerfd_settime

Arms or disarms a timerfd.

times

Retrieves the CPU times used by this process and its children.

truncate

Truncates a file.

umask

Sets the file mode creating mask of the process.

umount

Unmounts a filesystem.

uname

Retrieves string-style information about the system.

unlinkat

Unlinks a file relative to a directory.

unshare

Disassociate parts of the thread's execution context.

utimensat

Changes the access and modification times of a file relative to a directory.

vhangup

Simulates a hangup on the current terminal.

waitid

Waits for a child process.

write

Writes to a file descriptor.

writev

Writes to a file descriptor from multiple buffers.