Expand description
Thin wrappers around the CPU instructions for making system calls on x86_64.
Constants§
- ACCEPT
- The system call number for
accept
on this platform. - ACCEPT4
- The system call number for
accept4
on this platform. - ACCESS
- The system call number for
access
on this platform. - ACCT
- The system call number for
acct
on this platform. - ADD_KEY
- The system call number for
add_key
on this platform. - ADJTIMEX
- The system call number for
adjtimex
on this platform. - AFS_
SYSCALL - The system call number for
afs_syscall
on this platform. - ALARM
- The system call number for
alarm
on this platform. - ARCH_
PRCTL - The system call number for
arch_prctl
on this platform. - BIND
- The system call number for
bind
on this platform. - BPF
- The system call number for
bpf
on this platform. - BRK
- The system call number for
brk
on this platform. - CAPGET
- The system call number for
capget
on this platform. - CAPSET
- The system call number for
capset
on this platform. - CHDIR
- The system call number for
chdir
on this platform. - CHMOD
- The system call number for
chmod
on this platform. - CHOWN
- The system call number for
chown
on this platform. - CHROOT
- The system call number for
chroot
on this platform. - CLOCK_
ADJTIME - The system call number for
clock_adjtime
on this platform. - CLOCK_
GETRES - The system call number for
clock_getres
on this platform. - CLOCK_
GETTIME - The system call number for
clock_gettime
on this platform. - CLOCK_
NANOSLEEP - The system call number for
clock_nanosleep
on this platform. - CLOCK_
SETTIME - The system call number for
clock_settime
on this platform. - CLONE
- The system call number for
clone
on this platform. - CLONE3
- The system call number for
clone3
on this platform. - CLOSE
- The system call number for
close
on this platform. - CLOSE_
RANGE - The system call number for
close_range
on this platform. - CONNECT
- The system call number for
connect
on this platform. - COPY_
FILE_ RANGE - The system call number for
copy_file_range
on this platform. - CREAT
- The system call number for
creat
on this platform. - CREATE_
MODULE - The system call number for
create_module
on this platform. - DELETE_
MODULE - The system call number for
delete_module
on this platform. - DUP
- The system call number for
dup
on this platform. - DUP2
- The system call number for
dup2
on this platform. - DUP3
- The system call number for
dup3
on this platform. - EPOLL_
CREATE - The system call number for
epoll_create
on this platform. - EPOLL_
CREAT E1 - The system call number for
epoll_create1
on this platform. - EPOLL_
CTL - The system call number for
epoll_ctl
on this platform. - EPOLL_
CTL_ OLD - The system call number for
epoll_ctl_old
on this platform. - EPOLL_
PWAIT - The system call number for
epoll_pwait
on this platform. - EPOLL_
PWAI T2 - The system call number for
epoll_pwait2
on this platform. - EPOLL_
WAIT - The system call number for
epoll_wait
on this platform. - EPOLL_
WAIT_ OLD - The system call number for
epoll_wait_old
on this platform. - EVENTFD
- The system call number for
eventfd
on this platform. - EVENTF
D2 - The system call number for
eventfd2
on this platform. - EXECVE
- The system call number for
execve
on this platform. - EXECVEAT
- The system call number for
execveat
on this platform. - EXIT
- The system call number for
exit
on this platform. - EXIT_
GROUP - The system call number for
exit_group
on this platform. - FACCESSAT
- The system call number for
faccessat
on this platform. - FACCESSA
T2 - The system call number for
faccessat2
on this platform. - FADVIS
E64 - The system call number for
fadvise64
on this platform. - FALLOCATE
- The system call number for
fallocate
on this platform. - FANOTIFY_
INIT - The system call number for
fanotify_init
on this platform. - FANOTIFY_
MARK - The system call number for
fanotify_mark
on this platform. - FCHDIR
- The system call number for
fchdir
on this platform. - FCHMOD
- The system call number for
fchmod
on this platform. - FCHMODAT
- The system call number for
fchmodat
on this platform. - FCHOWN
- The system call number for
fchown
on this platform. - FCHOWNAT
- The system call number for
fchownat
on this platform. - FCNTL
- The system call number for
fcntl
on this platform. - FDATASYNC
- The system call number for
fdatasync
on this platform. - FGETXATTR
- The system call number for
fgetxattr
on this platform. - FINIT_
MODULE - The system call number for
finit_module
on this platform. - FLISTXATTR
- The system call number for
flistxattr
on this platform. - FLOCK
- The system call number for
flock
on this platform. - FORK
- The system call number for
fork
on this platform. - FREMOVEXATTR
- The system call number for
fremovexattr
on this platform. - FSCONFIG
- The system call number for
fsconfig
on this platform. - FSETXATTR
- The system call number for
fsetxattr
on this platform. - FSMOUNT
- The system call number for
fsmount
on this platform. - FSOPEN
- The system call number for
fsopen
on this platform. - FSPICK
- The system call number for
fspick
on this platform. - FSTAT
- The system call number for
fstat
on this platform. - FSTATFS
- The system call number for
fstatfs
on this platform. - FSYNC
- The system call number for
fsync
on this platform. - FTRUNCATE
- The system call number for
ftruncate
on this platform. - FUTEX
- The system call number for
futex
on this platform. - FUTIMESAT
- The system call number for
futimesat
on this platform. - GETCPU
- The system call number for
getcpu
on this platform. - GETCWD
- The system call number for
getcwd
on this platform. - GETDENTS
- The system call number for
getdents
on this platform. - GETDENT
S64 - The system call number for
getdents64
on this platform. - GETEGID
- The system call number for
getegid
on this platform. - GETEUID
- The system call number for
geteuid
on this platform. - GETGID
- The system call number for
getgid
on this platform. - GETGROUPS
- The system call number for
getgroups
on this platform. - GETITIMER
- The system call number for
getitimer
on this platform. - GETPEERNAME
- The system call number for
getpeername
on this platform. - GETPGID
- The system call number for
getpgid
on this platform. - GETPGRP
- The system call number for
getpgrp
on this platform. - GETPID
- The system call number for
getpid
on this platform. - GETPMSG
- The system call number for
getpmsg
on this platform. - GETPPID
- The system call number for
getppid
on this platform. - GETPRIORITY
- The system call number for
getpriority
on this platform. - GETRANDOM
- The system call number for
getrandom
on this platform. - GETRESGID
- The system call number for
getresgid
on this platform. - GETRESUID
- The system call number for
getresuid
on this platform. - GETRLIMIT
- The system call number for
getrlimit
on this platform. - GETRUSAGE
- The system call number for
getrusage
on this platform. - GETSID
- The system call number for
getsid
on this platform. - GETSOCKNAME
- The system call number for
getsockname
on this platform. - GETSOCKOPT
- The system call number for
getsockopt
on this platform. - GETTID
- The system call number for
gettid
on this platform. - GETTIMEOFDAY
- The system call number for
gettimeofday
on this platform. - GETUID
- The system call number for
getuid
on this platform. - GETXATTR
- The system call number for
getxattr
on this platform. - GET_
KERNEL_ SYMS - The system call number for
get_kernel_syms
on this platform. - GET_
MEMPOLICY - The system call number for
get_mempolicy
on this platform. - GET_
ROBUST_ LIST - The system call number for
get_robust_list
on this platform. - GET_
THREAD_ AREA - The system call number for
get_thread_area
on this platform. - INIT_
MODULE - The system call number for
init_module
on this platform. - INOTIFY_
ADD_ WATCH - The system call number for
inotify_add_watch
on this platform. - INOTIFY_
INIT - The system call number for
inotify_init
on this platform. - INOTIFY_
INIT1 - The system call number for
inotify_init1
on this platform. - INOTIFY_
RM_ WATCH - The system call number for
inotify_rm_watch
on this platform. - IOCTL
- The system call number for
ioctl
on this platform. - IOPERM
- The system call number for
ioperm
on this platform. - IOPL
- The system call number for
iopl
on this platform. - IOPRIO_
GET - The system call number for
ioprio_get
on this platform. - IOPRIO_
SET - The system call number for
ioprio_set
on this platform. - IO_
CANCEL - The system call number for
io_cancel
on this platform. - IO_
DESTROY - The system call number for
io_destroy
on this platform. - IO_
GETEVENTS - The system call number for
io_getevents
on this platform. - IO_
PGETEVENTS - The system call number for
io_pgetevents
on this platform. - IO_
SETUP - The system call number for
io_setup
on this platform. - IO_
SUBMIT - The system call number for
io_submit
on this platform. - IO_
URING_ ENTER - The system call number for
io_uring_enter
on this platform. - IO_
URING_ REGISTER - The system call number for
io_uring_register
on this platform. - IO_
URING_ SETUP - The system call number for
io_uring_setup
on this platform. - KCMP
- The system call number for
kcmp
on this platform. - KEXEC_
FILE_ LOAD - The system call number for
kexec_file_load
on this platform. - KEXEC_
LOAD - The system call number for
kexec_load
on this platform. - KEYCTL
- The system call number for
keyctl
on this platform. - KILL
- The system call number for
kill
on this platform. - LANDLOCK_
ADD_ RULE - The system call number for
landlock_add_rule
on this platform. - LANDLOCK_
CREATE_ RULESET - The system call number for
landlock_create_ruleset
on this platform. - LANDLOCK_
RESTRICT_ SELF - The system call number for
landlock_restrict_self
on this platform. - LCHOWN
- The system call number for
lchown
on this platform. - LGETXATTR
- The system call number for
lgetxattr
on this platform. - LINK
- The system call number for
link
on this platform. - LINKAT
- The system call number for
linkat
on this platform. - LISTEN
- The system call number for
listen
on this platform. - LISTXATTR
- The system call number for
listxattr
on this platform. - LLISTXATTR
- The system call number for
llistxattr
on this platform. - LOOKUP_
DCOOKIE - The system call number for
lookup_dcookie
on this platform. - LREMOVEXATTR
- The system call number for
lremovexattr
on this platform. - LSEEK
- The system call number for
lseek
on this platform. - LSETXATTR
- The system call number for
lsetxattr
on this platform. - LSTAT
- The system call number for
lstat
on this platform. - MADVISE
- The system call number for
madvise
on this platform. - MBIND
- The system call number for
mbind
on this platform. - MEMBARRIER
- The system call number for
membarrier
on this platform. - MEMFD_
CREATE - The system call number for
memfd_create
on this platform. - MIGRATE_
PAGES - The system call number for
migrate_pages
on this platform. - MINCORE
- The system call number for
mincore
on this platform. - MKDIR
- The system call number for
mkdir
on this platform. - MKDIRAT
- The system call number for
mkdirat
on this platform. - MKNOD
- The system call number for
mknod
on this platform. - MKNODAT
- The system call number for
mknodat
on this platform. - MLOCK
- The system call number for
mlock
on this platform. - MLOCK2
- The system call number for
mlock2
on this platform. - MLOCKALL
- The system call number for
mlockall
on this platform. - MMAP
- The system call number for
mmap
on this platform. - MODIFY_
LDT - The system call number for
modify_ldt
on this platform. - MOUNT
- The system call number for
mount
on this platform. - MOUNT_
SETATTR - The system call number for
mount_setattr
on this platform. - MOVE_
MOUNT - The system call number for
move_mount
on this platform. - MOVE_
PAGES - The system call number for
move_pages
on this platform. - MPROTECT
- The system call number for
mprotect
on this platform. - MQ_
GETSETATTR - The system call number for
mq_getsetattr
on this platform. - MQ_
NOTIFY - The system call number for
mq_notify
on this platform. - MQ_OPEN
- The system call number for
mq_open
on this platform. - MQ_
TIMEDRECEIVE - The system call number for
mq_timedreceive
on this platform. - MQ_
TIMEDSEND - The system call number for
mq_timedsend
on this platform. - MQ_
UNLINK - The system call number for
mq_unlink
on this platform. - MREMAP
- The system call number for
mremap
on this platform. - MSGCTL
- The system call number for
msgctl
on this platform. - MSGGET
- The system call number for
msgget
on this platform. - MSGRCV
- The system call number for
msgrcv
on this platform. - MSGSND
- The system call number for
msgsnd
on this platform. - MSYNC
- The system call number for
msync
on this platform. - MUNLOCK
- The system call number for
munlock
on this platform. - MUNLOCKALL
- The system call number for
munlockall
on this platform. - MUNMAP
- The system call number for
munmap
on this platform. - NAME_
TO_ HANDLE_ AT - The system call number for
name_to_handle_at
on this platform. - NANOSLEEP
- The system call number for
nanosleep
on this platform. - NEWFSTATAT
- The system call number for
newfstatat
on this platform. - NFSSERVCTL
- The system call number for
nfsservctl
on this platform. - OPEN
- The system call number for
open
on this platform. - OPENAT
- The system call number for
openat
on this platform. - OPENAT2
- The system call number for
openat2
on this platform. - OPEN_
BY_ HANDLE_ AT - The system call number for
open_by_handle_at
on this platform. - OPEN_
TREE - The system call number for
open_tree
on this platform. - PAUSE
- The system call number for
pause
on this platform. - PERF_
EVENT_ OPEN - The system call number for
perf_event_open
on this platform. - PERSONALITY
- The system call number for
personality
on this platform. - PIDFD_
GETFD - The system call number for
pidfd_getfd
on this platform. - PIDFD_
OPEN - The system call number for
pidfd_open
on this platform. - PIDFD_
SEND_ SIGNAL - The system call number for
pidfd_send_signal
on this platform. - PIPE
- The system call number for
pipe
on this platform. - PIPE2
- The system call number for
pipe2
on this platform. - PIVOT_
ROOT - The system call number for
pivot_root
on this platform. - PKEY_
ALLOC - The system call number for
pkey_alloc
on this platform. - PKEY_
FREE - The system call number for
pkey_free
on this platform. - PKEY_
MPROTECT - The system call number for
pkey_mprotect
on this platform. - POLL
- The system call number for
poll
on this platform. - PPOLL
- The system call number for
ppoll
on this platform. - PRCTL
- The system call number for
prctl
on this platform. - PREAD64
- The system call number for
pread64
on this platform. - PREADV
- The system call number for
preadv
on this platform. - PREADV2
- The system call number for
preadv2
on this platform. - PRLIMI
T64 - The system call number for
prlimit64
on this platform. - PROCESS_
MADVISE - The system call number for
process_madvise
on this platform. - PROCESS_
VM_ READV - The system call number for
process_vm_readv
on this platform. - PROCESS_
VM_ WRITEV - The system call number for
process_vm_writev
on this platform. - PSELEC
T6 - The system call number for
pselect6
on this platform. - PTRACE
- The system call number for
ptrace
on this platform. - PUTPMSG
- The system call number for
putpmsg
on this platform. - PWRIT
E64 - The system call number for
pwrite64
on this platform. - PWRITEV
- The system call number for
pwritev
on this platform. - PWRITE
V2 - The system call number for
pwritev2
on this platform. - QUERY_
MODULE - The system call number for
query_module
on this platform. - QUOTACTL
- The system call number for
quotactl
on this platform. - READ
- The system call number for
read
on this platform. - READAHEAD
- The system call number for
readahead
on this platform. - READLINK
- The system call number for
readlink
on this platform. - READLINKAT
- The system call number for
readlinkat
on this platform. - READV
- The system call number for
readv
on this platform. - REBOOT
- The system call number for
reboot
on this platform. - RECVFROM
- The system call number for
recvfrom
on this platform. - RECVMMSG
- The system call number for
recvmmsg
on this platform. - RECVMSG
- The system call number for
recvmsg
on this platform. - REMAP_
FILE_ PAGES - The system call number for
remap_file_pages
on this platform. - REMOVEXATTR
- The system call number for
removexattr
on this platform. - RENAME
- The system call number for
rename
on this platform. - RENAMEAT
- The system call number for
renameat
on this platform. - RENAMEA
T2 - The system call number for
renameat2
on this platform. - REQUEST_
KEY - The system call number for
request_key
on this platform. - RESTART_
SYSCALL - The system call number for
restart_syscall
on this platform. - RMDIR
- The system call number for
rmdir
on this platform. - RSEQ
- The system call number for
rseq
on this platform. - RT_
SIGACTION - The system call number for
rt_sigaction
on this platform. - RT_
SIGPENDING - The system call number for
rt_sigpending
on this platform. - RT_
SIGPROCMASK - The system call number for
rt_sigprocmask
on this platform. - RT_
SIGQUEUEINFO - The system call number for
rt_sigqueueinfo
on this platform. - RT_
SIGRETURN - The system call number for
rt_sigreturn
on this platform. - RT_
SIGSUSPEND - The system call number for
rt_sigsuspend
on this platform. - RT_
SIGTIMEDWAIT - The system call number for
rt_sigtimedwait
on this platform. - RT_
TGSIGQUEUEINFO - The system call number for
rt_tgsigqueueinfo
on this platform. - SCHED_
GETAFFINITY - The system call number for
sched_getaffinity
on this platform. - SCHED_
GETATTR - The system call number for
sched_getattr
on this platform. - SCHED_
GETPARAM - The system call number for
sched_getparam
on this platform. - SCHED_
GETSCHEDULER - The system call number for
sched_getscheduler
on this platform. - SCHED_
GET_ PRIORITY_ MAX - The system call number for
sched_get_priority_max
on this platform. - SCHED_
GET_ PRIORITY_ MIN - The system call number for
sched_get_priority_min
on this platform. - SCHED_
RR_ GET_ INTERVAL - The system call number for
sched_rr_get_interval
on this platform. - SCHED_
SETAFFINITY - The system call number for
sched_setaffinity
on this platform. - SCHED_
SETATTR - The system call number for
sched_setattr
on this platform. - SCHED_
SETPARAM - The system call number for
sched_setparam
on this platform. - SCHED_
SETSCHEDULER - The system call number for
sched_setscheduler
on this platform. - SCHED_
YIELD - The system call number for
sched_yield
on this platform. - SECCOMP
- The system call number for
seccomp
on this platform. - SECURITY
- The system call number for
security
on this platform. - SELECT
- The system call number for
select
on this platform. - SEMCTL
- The system call number for
semctl
on this platform. - SEMGET
- The system call number for
semget
on this platform. - SEMOP
- The system call number for
semop
on this platform. - SEMTIMEDOP
- The system call number for
semtimedop
on this platform. - SENDFILE
- The system call number for
sendfile
on this platform. - SENDMMSG
- The system call number for
sendmmsg
on this platform. - SENDMSG
- The system call number for
sendmsg
on this platform. - SENDTO
- The system call number for
sendto
on this platform. - SETDOMAINNAME
- The system call number for
setdomainname
on this platform. - SETFSGID
- The system call number for
setfsgid
on this platform. - SETFSUID
- The system call number for
setfsuid
on this platform. - SETGID
- The system call number for
setgid
on this platform. - SETGROUPS
- The system call number for
setgroups
on this platform. - SETHOSTNAME
- The system call number for
sethostname
on this platform. - SETITIMER
- The system call number for
setitimer
on this platform. - SETNS
- The system call number for
setns
on this platform. - SETPGID
- The system call number for
setpgid
on this platform. - SETPRIORITY
- The system call number for
setpriority
on this platform. - SETREGID
- The system call number for
setregid
on this platform. - SETRESGID
- The system call number for
setresgid
on this platform. - SETRESUID
- The system call number for
setresuid
on this platform. - SETREUID
- The system call number for
setreuid
on this platform. - SETRLIMIT
- The system call number for
setrlimit
on this platform. - SETSID
- The system call number for
setsid
on this platform. - SETSOCKOPT
- The system call number for
setsockopt
on this platform. - SETTIMEOFDAY
- The system call number for
settimeofday
on this platform. - SETUID
- The system call number for
setuid
on this platform. - SETXATTR
- The system call number for
setxattr
on this platform. - SET_
MEMPOLICY - The system call number for
set_mempolicy
on this platform. - SET_
ROBUST_ LIST - The system call number for
set_robust_list
on this platform. - SET_
THREAD_ AREA - The system call number for
set_thread_area
on this platform. - SET_
TID_ ADDRESS - The system call number for
set_tid_address
on this platform. - SHMAT
- The system call number for
shmat
on this platform. - SHMCTL
- The system call number for
shmctl
on this platform. - SHMDT
- The system call number for
shmdt
on this platform. - SHMGET
- The system call number for
shmget
on this platform. - SHUTDOWN
- The system call number for
shutdown
on this platform. - SIGALTSTACK
- The system call number for
sigaltstack
on this platform. - SIGNALFD
- The system call number for
signalfd
on this platform. - SIGNALF
D4 - The system call number for
signalfd4
on this platform. - SOCKET
- The system call number for
socket
on this platform. - SOCKETPAIR
- The system call number for
socketpair
on this platform. - SPLICE
- The system call number for
splice
on this platform. - STAT
- The system call number for
stat
on this platform. - STATFS
- The system call number for
statfs
on this platform. - STATX
- The system call number for
statx
on this platform. - SWAPOFF
- The system call number for
swapoff
on this platform. - SWAPON
- The system call number for
swapon
on this platform. - SYMLINK
- The system call number for
symlink
on this platform. - SYMLINKAT
- The system call number for
symlinkat
on this platform. - SYNC
- The system call number for
sync
on this platform. - SYNCFS
- The system call number for
syncfs
on this platform. - SYNC_
FILE_ RANGE - The system call number for
sync_file_range
on this platform. - SYSFS
- The system call number for
sysfs
on this platform. - SYSINFO
- The system call number for
sysinfo
on this platform. - SYSLOG
- The system call number for
syslog
on this platform. - TEE
- The system call number for
tee
on this platform. - TGKILL
- The system call number for
tgkill
on this platform. - TIME
- The system call number for
time
on this platform. - TIMERFD_
CREATE - The system call number for
timerfd_create
on this platform. - TIMERFD_
GETTIME - The system call number for
timerfd_gettime
on this platform. - TIMERFD_
SETTIME - The system call number for
timerfd_settime
on this platform. - TIMER_
CREATE - The system call number for
timer_create
on this platform. - TIMER_
DELETE - The system call number for
timer_delete
on this platform. - TIMER_
GETOVERRUN - The system call number for
timer_getoverrun
on this platform. - TIMER_
GETTIME - The system call number for
timer_gettime
on this platform. - TIMER_
SETTIME - The system call number for
timer_settime
on this platform. - TIMES
- The system call number for
times
on this platform. - TKILL
- The system call number for
tkill
on this platform. - TRUNCATE
- The system call number for
truncate
on this platform. - TUXCALL
- The system call number for
tuxcall
on this platform. - UMASK
- The system call number for
umask
on this platform. - UMOUNT2
- The system call number for
umount2
on this platform. - UNAME
- The system call number for
uname
on this platform. - UNLINK
- The system call number for
unlink
on this platform. - UNLINKAT
- The system call number for
unlinkat
on this platform. - UNSHARE
- The system call number for
unshare
on this platform. - USELIB
- The system call number for
uselib
on this platform. - USERFAULTFD
- The system call number for
userfaultfd
on this platform. - USTAT
- The system call number for
ustat
on this platform. - UTIME
- The system call number for
utime
on this platform. - UTIMENSAT
- The system call number for
utimensat
on this platform. - UTIMES
- The system call number for
utimes
on this platform. - VFORK
- The system call number for
vfork
on this platform. - VHANGUP
- The system call number for
vhangup
on this platform. - VMSPLICE
- The system call number for
vmsplice
on this platform. - VSERVER
- The system call number for
vserver
on this platform. - WAIT4
- The system call number for
wait4
on this platform. - WAITID
- The system call number for
waitid
on this platform. - WRITE
- The system call number for
write
on this platform. - WRITEV
- The system call number for
writev
on this platform. - _SYSCTL
- The system call number for
_sysctl
on this platform.
Functions§
- syscall0⚠
- Call into a system function with no arguments.
- syscall1⚠
- Call into a system function with one argument.
- syscall2⚠
- Call into a system function with two arguments.
- syscall3⚠
- Call into a system function with three arguments.
- syscall4⚠
- Call into a system function with four arguments.
- syscall5⚠
- Call into a system function with five arguments.
- syscall6⚠
- Call into a system function with six arguments.
- unpack_
standard_ result - Given a result value from a system call that follows the standard error return convention for this platform, returns either the given value verbatim or the kernel error code extracted from it.
Type Aliases§
- V
- The type of all system call arguments and return values on this platform.