[][src]Crate raw_syscall_enumerated

#raw-syscall-enumerated

This crate builds on raw-syscall-base, providing a function for each system call on the platform.

All functions are marked unsafe, and no validation is done on arguments or return values.

All arguments and return values use the most basic possible types, for example everything is usize on x86_64-linux. All arguments must be converted to this type, and it's up to the caller to determine whether the result represents a pointer or error code or whatever.

All system calls through the latest release of the platform should be supported here. Deprecated system calls should be supported as well. It is up to higher level libraries to check the platform version and prevent unsupported calls from being made if this is desired.

The intention is to provide a minimal stable base with no unnecessary overhead on which to build a higher-level library.

Functions

_sysctl

Performs the system call and returns the result.

accept

Performs the system call and returns the result.

accept4

Performs the system call and returns the result.

access

Performs the system call and returns the result.

acct

Performs the system call and returns the result.

add_key

Performs the system call and returns the result.

adjtimex

Performs the system call and returns the result.

afs_syscall

Performs the system call and returns the result.

alarm

Performs the system call and returns the result.

arch_prctl

Performs the system call and returns the result.

bind

Performs the system call and returns the result.

bpf

Performs the system call and returns the result.

brk

Performs the system call and returns the result.

capget

Performs the system call and returns the result.

capset

Performs the system call and returns the result.

chdir

Performs the system call and returns the result.

chmod

Performs the system call and returns the result.

chown

Performs the system call and returns the result.

chroot

Performs the system call and returns the result.

clock_adjtime

Performs the system call and returns the result.

clock_getres

Performs the system call and returns the result.

clock_gettime

Performs the system call and returns the result.

clock_nanosleep

Performs the system call and returns the result.

clock_settime

Performs the system call and returns the result.

clone

Performs the system call and returns the result.

close

Performs the system call and returns the result.

connect

Performs the system call and returns the result.

copy_file_range

Performs the system call and returns the result.

creat

Performs the system call and returns the result.

create_module

Performs the system call and returns the result.

delete_module

Performs the system call and returns the result.

dup

Performs the system call and returns the result.

dup2

Performs the system call and returns the result.

dup3

Performs the system call and returns the result.

epoll_create

Performs the system call and returns the result.

epoll_create1

Performs the system call and returns the result.

epoll_ctl

Performs the system call and returns the result.

epoll_ctl_old

Performs the system call and returns the result.

epoll_pwait

Performs the system call and returns the result.

epoll_wait

Performs the system call and returns the result.

epoll_wait_old

Performs the system call and returns the result.

eventfd

Performs the system call and returns the result.

eventfd2

Performs the system call and returns the result.

execve

Performs the system call and returns the result.

execveat

Performs the system call and returns the result.

exit

Performs the system call and never returns.

exit_group

Performs the system call and never returns.

faccessat

Performs the system call and returns the result.

fadvise64

Performs the system call and returns the result.

fallocate

Performs the system call and returns the result.

fanotify_init

Performs the system call and returns the result.

fanotify_mark

Performs the system call and returns the result.

fchdir

Performs the system call and returns the result.

fchmod

Performs the system call and returns the result.

fchmodat

Performs the system call and returns the result.

fchown

Performs the system call and returns the result.

fchownat

Performs the system call and returns the result.

fcntl

Performs the system call and returns the result.

fdatasync

Performs the system call and returns the result.

fgetxattr

Performs the system call and returns the result.

finit_module

Performs the system call and returns the result.

flistxattr

Performs the system call and returns the result.

flock

Performs the system call and returns the result.

fork

Performs the system call and returns the result.

fremovexattr

Performs the system call and returns the result.

fsetxattr

Performs the system call and returns the result.

fstat

Performs the system call and returns the result.

fstatfs

Performs the system call and returns the result.

fsync

Performs the system call and returns the result.

ftruncate

Performs the system call and returns the result.

futex

Performs the system call and returns the result.

futimesat

Performs the system call and returns the result.

get_kernel_syms

Performs the system call and returns the result.

get_mempolicy

Performs the system call and returns the result.

get_robust_list

Performs the system call and returns the result.

get_thread_area

Performs the system call and returns the result.

getcpu

Performs the system call and returns the result.

getcwd

Performs the system call and returns the result.

getdents

Performs the system call and returns the result.

getdents64

Performs the system call and returns the result.

getegid

Performs the system call and returns the result.

geteuid

Performs the system call and returns the result.

getgid

Performs the system call and returns the result.

getgroups

Performs the system call and returns the result.

getitimer

Performs the system call and returns the result.

getpeername

Performs the system call and returns the result.

getpgid

Performs the system call and returns the result.

getpgrp

Performs the system call and returns the result.

getpid

Performs the system call and returns the result.

getpmsg

Performs the system call and returns the result.

getppid

Performs the system call and returns the result.

getpriority

Performs the system call and returns the result.

getrandom

Performs the system call and returns the result.

getresgid

Performs the system call and returns the result.

getresuid

Performs the system call and returns the result.

getrlimit

Performs the system call and returns the result.

getrusage

Performs the system call and returns the result.

getsid

Performs the system call and returns the result.

getsockname

Performs the system call and returns the result.

getsockopt

Performs the system call and returns the result.

gettid

Performs the system call and returns the result.

gettimeofday

Performs the system call and returns the result.

getuid

Performs the system call and returns the result.

getxattr

Performs the system call and returns the result.

init_module

Performs the system call and returns the result.

inotify_add_watch

Performs the system call and returns the result.

inotify_init

Performs the system call and returns the result.

inotify_init1

Performs the system call and returns the result.

inotify_rm_watch

Performs the system call and returns the result.

io_cancel

Performs the system call and returns the result.

io_destroy

Performs the system call and returns the result.

io_getevents

Performs the system call and returns the result.

io_pgetevents

Performs the system call and returns the result.

io_setup

Performs the system call and returns the result.

io_submit

Performs the system call and returns the result.

ioctl

Performs the system call and returns the result.

ioperm

Performs the system call and returns the result.

iopl

Performs the system call and returns the result.

ioprio_get

Performs the system call and returns the result.

ioprio_set

Performs the system call and returns the result.

kcmp

Performs the system call and returns the result.

kexec_file_load

Performs the system call and returns the result.

kexec_load

Performs the system call and returns the result.

keyctl

Performs the system call and returns the result.

kill

Performs the system call and returns the result.

lchown

Performs the system call and returns the result.

lgetxattr

Performs the system call and returns the result.

link

Performs the system call and returns the result.

linkat

Performs the system call and returns the result.

listen

Performs the system call and returns the result.

listxattr

Performs the system call and returns the result.

llistxattr

Performs the system call and returns the result.

lookup_dcookie

Performs the system call and returns the result.

lremovexattr

Performs the system call and returns the result.

lseek

Performs the system call and returns the result.

lsetxattr

Performs the system call and returns the result.

lstat

Performs the system call and returns the result.

madvise

Performs the system call and returns the result.

mbind

Performs the system call and returns the result.

membarrier

Performs the system call and returns the result.

memfd_create

Performs the system call and returns the result.

migrate_pages

Performs the system call and returns the result.

mincore

Performs the system call and returns the result.

mkdir

Performs the system call and returns the result.

mkdirat

Performs the system call and returns the result.

mknod

Performs the system call and returns the result.

mknodat

Performs the system call and returns the result.

mlock

Performs the system call and returns the result.

mlock2

Performs the system call and returns the result.

mlockall

Performs the system call and returns the result.

mmap

Performs the system call and returns the result.

modify_ldt

Performs the system call and returns the result.

mount

Performs the system call and returns the result.

move_pages

Performs the system call and returns the result.

mprotect

Performs the system call and returns the result.

mq_getsetattr

Performs the system call and returns the result.

mq_notify

Performs the system call and returns the result.

mq_open

Performs the system call and returns the result.

mq_timedreceive

Performs the system call and returns the result.

mq_timesend

Performs the system call and returns the result.

mq_unlink

Performs the system call and returns the result.

mremap

Performs the system call and returns the result.

msgctl

Performs the system call and returns the result.

msgget

Performs the system call and returns the result.

msgrcv

Performs the system call and returns the result.

msgsnd

Performs the system call and returns the result.

msync

Performs the system call and returns the result.

munlock

Performs the system call and returns the result.

munlockall

Performs the system call and returns the result.

munmap

Performs the system call and returns the result.

name_to_handle_at

Performs the system call and returns the result.

nanosleep

Performs the system call and returns the result.

newfstatat

Performs the system call and returns the result.

nfsservctl

Performs the system call and returns the result.

open

Performs the system call and returns the result.

open_by_handle_at

Performs the system call and returns the result.

openat

Performs the system call and returns the result.

pause

Performs the system call and returns the result.

perf_event_open

Performs the system call and returns the result.

personality

Performs the system call and returns the result.

pipe

Performs the system call and returns the result.

pipe2

Performs the system call and returns the result.

pivot_root

Performs the system call and returns the result.

pkey_alloc

Performs the system call and returns the result.

pkey_free

Performs the system call and returns the result.

pkey_mprotect

Performs the system call and returns the result.

poll

Performs the system call and returns the result.

ppoll

Performs the system call and returns the result.

prctl

Performs the system call and returns the result.

pread64

Performs the system call and returns the result.

preadv

Performs the system call and returns the result.

preadv2

Performs the system call and returns the result.

prlimit64

Performs the system call and returns the result.

process_vm_readv

Performs the system call and returns the result.

process_vm_writev

Performs the system call and returns the result.

pselect6

Performs the system call and returns the result.

ptrace

Performs the system call and returns the result.

putpmsg

Performs the system call and returns the result.

pwrite64

Performs the system call and returns the result.

pwritev

Performs the system call and returns the result.

pwritev2

Performs the system call and returns the result.

query_module

Performs the system call and returns the result.

quotactl

Performs the system call and returns the result.

read

Performs the system call and returns the result.

readahead

Performs the system call and returns the result.

readlink

Performs the system call and returns the result.

readlinkat

Performs the system call and returns the result.

readv

Performs the system call and returns the result.

reboot

Performs the system call and returns the result.

recvfrom

Performs the system call and returns the result.

recvmmsg

Performs the system call and returns the result.

recvmsg

Performs the system call and returns the result.

remap_file_pages

Performs the system call and returns the result.

removexattr

Performs the system call and returns the result.

rename

Performs the system call and returns the result.

renameat

Performs the system call and returns the result.

renameat2

Performs the system call and returns the result.

request_key

Performs the system call and returns the result.

restart_syscall

Performs the system call and returns the result.

rmdir

Performs the system call and returns the result.

rseq

Performs the system call and returns the result.

rt_sigaction

Performs the system call and returns the result.

rt_sigpending

Performs the system call and returns the result.

rt_sigprocmask

Performs the system call and returns the result.

rt_sigqueueinfo

Performs the system call and returns the result.

rt_sigreturn

Performs the system call and never returns.

rt_sigsuspend

Performs the system call and returns the result.

rt_sigtimedwait

Performs the system call and returns the result.

rt_tgsigqueueinfo

Performs the system call and returns the result.

sched_get_priority_max

Performs the system call and returns the result.

sched_get_priority_min

Performs the system call and returns the result.

sched_getaffinity

Performs the system call and returns the result.

sched_getattr

Performs the system call and returns the result.

sched_getparam

Performs the system call and returns the result.

sched_getscheduler

Performs the system call and returns the result.

sched_rr_get_interval

Performs the system call and returns the result.

sched_setaffinity

Performs the system call and returns the result.

sched_setattr

Performs the system call and returns the result.

sched_setparam

Performs the system call and returns the result.

sched_setscheduler

Performs the system call and returns the result.

sched_yield

Performs the system call and returns the result.

seccomp

Performs the system call and returns the result.

security

Performs the system call and returns the result.

select

Performs the system call and returns the result.

semctl

Performs the system call and returns the result.

semget

Performs the system call and returns the result.

semop

Performs the system call and returns the result.

semtimedop

Performs the system call and returns the result.

sendfile

Performs the system call and returns the result.

sendmmsg

Performs the system call and returns the result.

sendmsg

Performs the system call and returns the result.

sendto

Performs the system call and returns the result.

set_mempolicy

Performs the system call and returns the result.

set_robust_list

Performs the system call and returns the result.

set_thread_area

Performs the system call and returns the result.

set_tid_address

Performs the system call and returns the result.

setdomainname

Performs the system call and returns the result.

setfsgid

Performs the system call and returns the result.

setfsuid

Performs the system call and returns the result.

setgid

Performs the system call and returns the result.

setgroups

Performs the system call and returns the result.

sethostname

Performs the system call and returns the result.

setitimer

Performs the system call and returns the result.

setns

Performs the system call and returns the result.

setpgid

Performs the system call and returns the result.

setpriority

Performs the system call and returns the result.

setregid

Performs the system call and returns the result.

setresgid

Performs the system call and returns the result.

setresuid

Performs the system call and returns the result.

setreuid

Performs the system call and returns the result.

setrlimit

Performs the system call and returns the result.

setsid

Performs the system call and returns the result.

setsockopt

Performs the system call and returns the result.

settimeofday

Performs the system call and returns the result.

setuid

Performs the system call and returns the result.

setxattr

Performs the system call and returns the result.

shmat

Performs the system call and returns the result.

shmctl

Performs the system call and returns the result.

shmdt

Performs the system call and returns the result.

shmget

Performs the system call and returns the result.

shutdown

Performs the system call and returns the result.

sigaltstack

Performs the system call and returns the result.

signalfd

Performs the system call and returns the result.

signalfd4

Performs the system call and returns the result.

socket

Performs the system call and returns the result.

socketpair

Performs the system call and returns the result.

splice

Performs the system call and returns the result.

stat

Performs the system call and returns the result.

statfs

Performs the system call and returns the result.

statx

Performs the system call and returns the result.

swapoff

Performs the system call and returns the result.

swapon

Performs the system call and returns the result.

symlink

Performs the system call and returns the result.

symlinkat

Performs the system call and returns the result.

sync

Performs the system call and returns the result.

sync_file_range

Performs the system call and returns the result.

syncfs

Performs the system call and returns the result.

sysfs

Performs the system call and returns the result.

sysinfo

Performs the system call and returns the result.

syslog

Performs the system call and returns the result.

tee

Performs the system call and returns the result.

tgkill

Performs the system call and returns the result.

time

Performs the system call and returns the result.

timer_create

Performs the system call and returns the result.

timer_delete

Performs the system call and returns the result.

timer_getoverrun

Performs the system call and returns the result.

timer_gettime

Performs the system call and returns the result.

timer_settime

Performs the system call and returns the result.

timerfd_create

Performs the system call and returns the result.

timerfd_gettime

Performs the system call and returns the result.

timerfd_settime

Performs the system call and returns the result.

times

Performs the system call and returns the result.

tkill

Performs the system call and returns the result.

truncate

Performs the system call and returns the result.

tuxcall

Performs the system call and returns the result.

umask

Performs the system call and returns the result.

umount2

Performs the system call and returns the result.

uname

Performs the system call and returns the result.

unlink

Performs the system call and returns the result.

unlinkat

Performs the system call and returns the result.

unshare

Performs the system call and returns the result.

uselib

Performs the system call and returns the result.

userfaultfd

Performs the system call and returns the result.

ustat

Performs the system call and returns the result.

utime

Performs the system call and returns the result.

utimensat

Performs the system call and returns the result.

utimes

Performs the system call and returns the result.

vfork

Performs the system call and returns the result.

vhangup

Performs the system call and returns the result.

vmsplice

Performs the system call and returns the result.

wait4

Performs the system call and returns the result.

waitid

Performs the system call and returns the result.

write

Performs the system call and returns the result.

writev

Performs the system call and returns the result.