Expand description
Thin wrappers around the CPU instructions for making system calls on x86_64.
Constants§
- ACCEPT
- The system call number for
accepton this platform. - ACCEPT4
- The system call number for
accept4on this platform. - ACCESS
- The system call number for
accesson this platform. - ACCT
- The system call number for
accton this platform. - ADD_KEY
- The system call number for
add_keyon this platform. - ADJTIMEX
- The system call number for
adjtimexon this platform. - AFS_
SYSCALL - The system call number for
afs_syscallon this platform. - ALARM
- The system call number for
alarmon this platform. - ARCH_
PRCTL - The system call number for
arch_prctlon this platform. - BIND
- The system call number for
bindon this platform. - BPF
- The system call number for
bpfon this platform. - BRK
- The system call number for
brkon this platform. - CAPGET
- The system call number for
capgeton this platform. - CAPSET
- The system call number for
capseton this platform. - CHDIR
- The system call number for
chdiron this platform. - CHMOD
- The system call number for
chmodon this platform. - CHOWN
- The system call number for
chownon this platform. - CHROOT
- The system call number for
chrooton this platform. - CLOCK_
ADJTIME - The system call number for
clock_adjtimeon this platform. - CLOCK_
GETRES - The system call number for
clock_getreson this platform. - CLOCK_
GETTIME - The system call number for
clock_gettimeon this platform. - CLOCK_
NANOSLEEP - The system call number for
clock_nanosleepon this platform. - CLOCK_
SETTIME - The system call number for
clock_settimeon this platform. - CLONE
- The system call number for
cloneon this platform. - CLONE3
- The system call number for
clone3on this platform. - CLOSE
- The system call number for
closeon this platform. - CLOSE_
RANGE - The system call number for
close_rangeon this platform. - CONNECT
- The system call number for
connecton this platform. - COPY_
FILE_ RANGE - The system call number for
copy_file_rangeon this platform. - CREAT
- The system call number for
creaton this platform. - CREATE_
MODULE - The system call number for
create_moduleon this platform. - DELETE_
MODULE - The system call number for
delete_moduleon this platform. - DUP
- The system call number for
dupon this platform. - DUP2
- The system call number for
dup2on this platform. - DUP3
- The system call number for
dup3on this platform. - EPOLL_
CREATE - The system call number for
epoll_createon this platform. - EPOLL_
CREAT E1 - The system call number for
epoll_create1on this platform. - EPOLL_
CTL - The system call number for
epoll_ctlon this platform. - EPOLL_
CTL_ OLD - The system call number for
epoll_ctl_oldon this platform. - EPOLL_
PWAIT - The system call number for
epoll_pwaiton this platform. - EPOLL_
PWAI T2 - The system call number for
epoll_pwait2on this platform. - EPOLL_
WAIT - The system call number for
epoll_waiton this platform. - EPOLL_
WAIT_ OLD - The system call number for
epoll_wait_oldon this platform. - EVENTFD
- The system call number for
eventfdon this platform. - EVENTF
D2 - The system call number for
eventfd2on this platform. - EXECVE
- The system call number for
execveon this platform. - EXECVEAT
- The system call number for
execveaton this platform. - EXIT
- The system call number for
exiton this platform. - EXIT_
GROUP - The system call number for
exit_groupon this platform. - FACCESSAT
- The system call number for
faccessaton this platform. - FACCESSA
T2 - The system call number for
faccessat2on this platform. - FADVIS
E64 - The system call number for
fadvise64on this platform. - FALLOCATE
- The system call number for
fallocateon this platform. - FANOTIFY_
INIT - The system call number for
fanotify_initon this platform. - FANOTIFY_
MARK - The system call number for
fanotify_markon this platform. - FCHDIR
- The system call number for
fchdiron this platform. - FCHMOD
- The system call number for
fchmodon this platform. - FCHMODAT
- The system call number for
fchmodaton this platform. - FCHOWN
- The system call number for
fchownon this platform. - FCHOWNAT
- The system call number for
fchownaton this platform. - FCNTL
- The system call number for
fcntlon this platform. - FDATASYNC
- The system call number for
fdatasyncon this platform. - FGETXATTR
- The system call number for
fgetxattron this platform. - FINIT_
MODULE - The system call number for
finit_moduleon this platform. - FLISTXATTR
- The system call number for
flistxattron this platform. - FLOCK
- The system call number for
flockon this platform. - FORK
- The system call number for
forkon this platform. - FREMOVEXATTR
- The system call number for
fremovexattron this platform. - FSCONFIG
- The system call number for
fsconfigon this platform. - FSETXATTR
- The system call number for
fsetxattron this platform. - FSMOUNT
- The system call number for
fsmounton this platform. - FSOPEN
- The system call number for
fsopenon this platform. - FSPICK
- The system call number for
fspickon this platform. - FSTAT
- The system call number for
fstaton this platform. - FSTATFS
- The system call number for
fstatfson this platform. - FSYNC
- The system call number for
fsyncon this platform. - FTRUNCATE
- The system call number for
ftruncateon this platform. - FUTEX
- The system call number for
futexon this platform. - FUTIMESAT
- The system call number for
futimesaton this platform. - GETCPU
- The system call number for
getcpuon this platform. - GETCWD
- The system call number for
getcwdon this platform. - GETDENTS
- The system call number for
getdentson this platform. - GETDENT
S64 - The system call number for
getdents64on this platform. - GETEGID
- The system call number for
getegidon this platform. - GETEUID
- The system call number for
geteuidon this platform. - GETGID
- The system call number for
getgidon this platform. - GETGROUPS
- The system call number for
getgroupson this platform. - GETITIMER
- The system call number for
getitimeron this platform. - GETPEERNAME
- The system call number for
getpeernameon this platform. - GETPGID
- The system call number for
getpgidon this platform. - GETPGRP
- The system call number for
getpgrpon this platform. - GETPID
- The system call number for
getpidon this platform. - GETPMSG
- The system call number for
getpmsgon this platform. - GETPPID
- The system call number for
getppidon this platform. - GETPRIORITY
- The system call number for
getpriorityon this platform. - GETRANDOM
- The system call number for
getrandomon this platform. - GETRESGID
- The system call number for
getresgidon this platform. - GETRESUID
- The system call number for
getresuidon this platform. - GETRLIMIT
- The system call number for
getrlimiton this platform. - GETRUSAGE
- The system call number for
getrusageon this platform. - GETSID
- The system call number for
getsidon this platform. - GETSOCKNAME
- The system call number for
getsocknameon this platform. - GETSOCKOPT
- The system call number for
getsockopton this platform. - GETTID
- The system call number for
gettidon this platform. - GETTIMEOFDAY
- The system call number for
gettimeofdayon this platform. - GETUID
- The system call number for
getuidon this platform. - GETXATTR
- The system call number for
getxattron this platform. - GET_
KERNEL_ SYMS - The system call number for
get_kernel_symson this platform. - GET_
MEMPOLICY - The system call number for
get_mempolicyon this platform. - GET_
ROBUST_ LIST - The system call number for
get_robust_liston this platform. - GET_
THREAD_ AREA - The system call number for
get_thread_areaon this platform. - INIT_
MODULE - The system call number for
init_moduleon this platform. - INOTIFY_
ADD_ WATCH - The system call number for
inotify_add_watchon this platform. - INOTIFY_
INIT - The system call number for
inotify_initon this platform. - INOTIFY_
INIT1 - The system call number for
inotify_init1on this platform. - INOTIFY_
RM_ WATCH - The system call number for
inotify_rm_watchon this platform. - IOCTL
- The system call number for
ioctlon this platform. - IOPERM
- The system call number for
iopermon this platform. - IOPL
- The system call number for
ioplon this platform. - IOPRIO_
GET - The system call number for
ioprio_geton this platform. - IOPRIO_
SET - The system call number for
ioprio_seton this platform. - IO_
CANCEL - The system call number for
io_cancelon this platform. - IO_
DESTROY - The system call number for
io_destroyon this platform. - IO_
GETEVENTS - The system call number for
io_geteventson this platform. - IO_
PGETEVENTS - The system call number for
io_pgeteventson this platform. - IO_
SETUP - The system call number for
io_setupon this platform. - IO_
SUBMIT - The system call number for
io_submiton this platform. - IO_
URING_ ENTER - The system call number for
io_uring_enteron this platform. - IO_
URING_ REGISTER - The system call number for
io_uring_registeron this platform. - IO_
URING_ SETUP - The system call number for
io_uring_setupon this platform. - KCMP
- The system call number for
kcmpon this platform. - KEXEC_
FILE_ LOAD - The system call number for
kexec_file_loadon this platform. - KEXEC_
LOAD - The system call number for
kexec_loadon this platform. - KEYCTL
- The system call number for
keyctlon this platform. - KILL
- The system call number for
killon this platform. - LANDLOCK_
ADD_ RULE - The system call number for
landlock_add_ruleon this platform. - LANDLOCK_
CREATE_ RULESET - The system call number for
landlock_create_ruleseton this platform. - LANDLOCK_
RESTRICT_ SELF - The system call number for
landlock_restrict_selfon this platform. - LCHOWN
- The system call number for
lchownon this platform. - LGETXATTR
- The system call number for
lgetxattron this platform. - LINK
- The system call number for
linkon this platform. - LINKAT
- The system call number for
linkaton this platform. - LISTEN
- The system call number for
listenon this platform. - LISTXATTR
- The system call number for
listxattron this platform. - LLISTXATTR
- The system call number for
llistxattron this platform. - LOOKUP_
DCOOKIE - The system call number for
lookup_dcookieon this platform. - LREMOVEXATTR
- The system call number for
lremovexattron this platform. - LSEEK
- The system call number for
lseekon this platform. - LSETXATTR
- The system call number for
lsetxattron this platform. - LSTAT
- The system call number for
lstaton this platform. - MADVISE
- The system call number for
madviseon this platform. - MBIND
- The system call number for
mbindon this platform. - MEMBARRIER
- The system call number for
membarrieron this platform. - MEMFD_
CREATE - The system call number for
memfd_createon this platform. - MIGRATE_
PAGES - The system call number for
migrate_pageson this platform. - MINCORE
- The system call number for
mincoreon this platform. - MKDIR
- The system call number for
mkdiron this platform. - MKDIRAT
- The system call number for
mkdiraton this platform. - MKNOD
- The system call number for
mknodon this platform. - MKNODAT
- The system call number for
mknodaton this platform. - MLOCK
- The system call number for
mlockon this platform. - MLOCK2
- The system call number for
mlock2on this platform. - MLOCKALL
- The system call number for
mlockallon this platform. - MMAP
- The system call number for
mmapon this platform. - MODIFY_
LDT - The system call number for
modify_ldton this platform. - MOUNT
- The system call number for
mounton this platform. - MOUNT_
SETATTR - The system call number for
mount_setattron this platform. - MOVE_
MOUNT - The system call number for
move_mounton this platform. - MOVE_
PAGES - The system call number for
move_pageson this platform. - MPROTECT
- The system call number for
mprotecton this platform. - MQ_
GETSETATTR - The system call number for
mq_getsetattron this platform. - MQ_
NOTIFY - The system call number for
mq_notifyon this platform. - MQ_OPEN
- The system call number for
mq_openon this platform. - MQ_
TIMEDRECEIVE - The system call number for
mq_timedreceiveon this platform. - MQ_
TIMEDSEND - The system call number for
mq_timedsendon this platform. - MQ_
UNLINK - The system call number for
mq_unlinkon this platform. - MREMAP
- The system call number for
mremapon this platform. - MSGCTL
- The system call number for
msgctlon this platform. - MSGGET
- The system call number for
msggeton this platform. - MSGRCV
- The system call number for
msgrcvon this platform. - MSGSND
- The system call number for
msgsndon this platform. - MSYNC
- The system call number for
msyncon this platform. - MUNLOCK
- The system call number for
munlockon this platform. - MUNLOCKALL
- The system call number for
munlockallon this platform. - MUNMAP
- The system call number for
munmapon this platform. - NAME_
TO_ HANDLE_ AT - The system call number for
name_to_handle_aton this platform. - NANOSLEEP
- The system call number for
nanosleepon this platform. - NEWFSTATAT
- The system call number for
newfstataton this platform. - NFSSERVCTL
- The system call number for
nfsservctlon this platform. - OPEN
- The system call number for
openon this platform. - OPENAT
- The system call number for
openaton this platform. - OPENAT2
- The system call number for
openat2on this platform. - OPEN_
BY_ HANDLE_ AT - The system call number for
open_by_handle_aton this platform. - OPEN_
TREE - The system call number for
open_treeon this platform. - PAUSE
- The system call number for
pauseon this platform. - PERF_
EVENT_ OPEN - The system call number for
perf_event_openon this platform. - PERSONALITY
- The system call number for
personalityon this platform. - PIDFD_
GETFD - The system call number for
pidfd_getfdon this platform. - PIDFD_
OPEN - The system call number for
pidfd_openon this platform. - PIDFD_
SEND_ SIGNAL - The system call number for
pidfd_send_signalon this platform. - PIPE
- The system call number for
pipeon this platform. - PIPE2
- The system call number for
pipe2on this platform. - PIVOT_
ROOT - The system call number for
pivot_rooton this platform. - PKEY_
ALLOC - The system call number for
pkey_allocon this platform. - PKEY_
FREE - The system call number for
pkey_freeon this platform. - PKEY_
MPROTECT - The system call number for
pkey_mprotecton this platform. - POLL
- The system call number for
pollon this platform. - PPOLL
- The system call number for
ppollon this platform. - PRCTL
- The system call number for
prctlon this platform. - PREAD64
- The system call number for
pread64on this platform. - PREADV
- The system call number for
preadvon this platform. - PREADV2
- The system call number for
preadv2on this platform. - PRLIMI
T64 - The system call number for
prlimit64on this platform. - PROCESS_
MADVISE - The system call number for
process_madviseon this platform. - PROCESS_
VM_ READV - The system call number for
process_vm_readvon this platform. - PROCESS_
VM_ WRITEV - The system call number for
process_vm_writevon this platform. - PSELEC
T6 - The system call number for
pselect6on this platform. - PTRACE
- The system call number for
ptraceon this platform. - PUTPMSG
- The system call number for
putpmsgon this platform. - PWRIT
E64 - The system call number for
pwrite64on this platform. - PWRITEV
- The system call number for
pwritevon this platform. - PWRITE
V2 - The system call number for
pwritev2on this platform. - QUERY_
MODULE - The system call number for
query_moduleon this platform. - QUOTACTL
- The system call number for
quotactlon this platform. - READ
- The system call number for
readon this platform. - READAHEAD
- The system call number for
readaheadon this platform. - READLINK
- The system call number for
readlinkon this platform. - READLINKAT
- The system call number for
readlinkaton this platform. - READV
- The system call number for
readvon this platform. - REBOOT
- The system call number for
rebooton this platform. - RECVFROM
- The system call number for
recvfromon this platform. - RECVMMSG
- The system call number for
recvmmsgon this platform. - RECVMSG
- The system call number for
recvmsgon this platform. - REMAP_
FILE_ PAGES - The system call number for
remap_file_pageson this platform. - REMOVEXATTR
- The system call number for
removexattron this platform. - RENAME
- The system call number for
renameon this platform. - RENAMEAT
- The system call number for
renameaton this platform. - RENAMEA
T2 - The system call number for
renameat2on this platform. - REQUEST_
KEY - The system call number for
request_keyon this platform. - RESTART_
SYSCALL - The system call number for
restart_syscallon this platform. - RMDIR
- The system call number for
rmdiron this platform. - RSEQ
- The system call number for
rseqon this platform. - RT_
SIGACTION - The system call number for
rt_sigactionon this platform. - RT_
SIGPENDING - The system call number for
rt_sigpendingon this platform. - RT_
SIGPROCMASK - The system call number for
rt_sigprocmaskon this platform. - RT_
SIGQUEUEINFO - The system call number for
rt_sigqueueinfoon this platform. - RT_
SIGRETURN - The system call number for
rt_sigreturnon this platform. - RT_
SIGSUSPEND - The system call number for
rt_sigsuspendon this platform. - RT_
SIGTIMEDWAIT - The system call number for
rt_sigtimedwaiton this platform. - RT_
TGSIGQUEUEINFO - The system call number for
rt_tgsigqueueinfoon this platform. - SCHED_
GETAFFINITY - The system call number for
sched_getaffinityon this platform. - SCHED_
GETATTR - The system call number for
sched_getattron this platform. - SCHED_
GETPARAM - The system call number for
sched_getparamon this platform. - SCHED_
GETSCHEDULER - The system call number for
sched_getscheduleron this platform. - SCHED_
GET_ PRIORITY_ MAX - The system call number for
sched_get_priority_maxon this platform. - SCHED_
GET_ PRIORITY_ MIN - The system call number for
sched_get_priority_minon this platform. - SCHED_
RR_ GET_ INTERVAL - The system call number for
sched_rr_get_intervalon this platform. - SCHED_
SETAFFINITY - The system call number for
sched_setaffinityon this platform. - SCHED_
SETATTR - The system call number for
sched_setattron this platform. - SCHED_
SETPARAM - The system call number for
sched_setparamon this platform. - SCHED_
SETSCHEDULER - The system call number for
sched_setscheduleron this platform. - SCHED_
YIELD - The system call number for
sched_yieldon this platform. - SECCOMP
- The system call number for
seccompon this platform. - SECURITY
- The system call number for
securityon this platform. - SELECT
- The system call number for
selecton this platform. - SEMCTL
- The system call number for
semctlon this platform. - SEMGET
- The system call number for
semgeton this platform. - SEMOP
- The system call number for
semopon this platform. - SEMTIMEDOP
- The system call number for
semtimedopon this platform. - SENDFILE
- The system call number for
sendfileon this platform. - SENDMMSG
- The system call number for
sendmmsgon this platform. - SENDMSG
- The system call number for
sendmsgon this platform. - SENDTO
- The system call number for
sendtoon this platform. - SETDOMAINNAME
- The system call number for
setdomainnameon this platform. - SETFSGID
- The system call number for
setfsgidon this platform. - SETFSUID
- The system call number for
setfsuidon this platform. - SETGID
- The system call number for
setgidon this platform. - SETGROUPS
- The system call number for
setgroupson this platform. - SETHOSTNAME
- The system call number for
sethostnameon this platform. - SETITIMER
- The system call number for
setitimeron this platform. - SETNS
- The system call number for
setnson this platform. - SETPGID
- The system call number for
setpgidon this platform. - SETPRIORITY
- The system call number for
setpriorityon this platform. - SETREGID
- The system call number for
setregidon this platform. - SETRESGID
- The system call number for
setresgidon this platform. - SETRESUID
- The system call number for
setresuidon this platform. - SETREUID
- The system call number for
setreuidon this platform. - SETRLIMIT
- The system call number for
setrlimiton this platform. - SETSID
- The system call number for
setsidon this platform. - SETSOCKOPT
- The system call number for
setsockopton this platform. - SETTIMEOFDAY
- The system call number for
settimeofdayon this platform. - SETUID
- The system call number for
setuidon this platform. - SETXATTR
- The system call number for
setxattron this platform. - SET_
MEMPOLICY - The system call number for
set_mempolicyon this platform. - SET_
ROBUST_ LIST - The system call number for
set_robust_liston this platform. - SET_
THREAD_ AREA - The system call number for
set_thread_areaon this platform. - SET_
TID_ ADDRESS - The system call number for
set_tid_addresson this platform. - SHMAT
- The system call number for
shmaton this platform. - SHMCTL
- The system call number for
shmctlon this platform. - SHMDT
- The system call number for
shmdton this platform. - SHMGET
- The system call number for
shmgeton this platform. - SHUTDOWN
- The system call number for
shutdownon this platform. - SIGALTSTACK
- The system call number for
sigaltstackon this platform. - SIGNALFD
- The system call number for
signalfdon this platform. - SIGNALF
D4 - The system call number for
signalfd4on this platform. - SOCKET
- The system call number for
socketon this platform. - SOCKETPAIR
- The system call number for
socketpairon this platform. - SPLICE
- The system call number for
spliceon this platform. - STAT
- The system call number for
staton this platform. - STATFS
- The system call number for
statfson this platform. - STATX
- The system call number for
statxon this platform. - SWAPOFF
- The system call number for
swapoffon this platform. - SWAPON
- The system call number for
swaponon this platform. - SYMLINK
- The system call number for
symlinkon this platform. - SYMLINKAT
- The system call number for
symlinkaton this platform. - SYNC
- The system call number for
syncon this platform. - SYNCFS
- The system call number for
syncfson this platform. - SYNC_
FILE_ RANGE - The system call number for
sync_file_rangeon this platform. - SYSFS
- The system call number for
sysfson this platform. - SYSINFO
- The system call number for
sysinfoon this platform. - SYSLOG
- The system call number for
syslogon this platform. - TEE
- The system call number for
teeon this platform. - TGKILL
- The system call number for
tgkillon this platform. - TIME
- The system call number for
timeon this platform. - TIMERFD_
CREATE - The system call number for
timerfd_createon this platform. - TIMERFD_
GETTIME - The system call number for
timerfd_gettimeon this platform. - TIMERFD_
SETTIME - The system call number for
timerfd_settimeon this platform. - TIMER_
CREATE - The system call number for
timer_createon this platform. - TIMER_
DELETE - The system call number for
timer_deleteon this platform. - TIMER_
GETOVERRUN - The system call number for
timer_getoverrunon this platform. - TIMER_
GETTIME - The system call number for
timer_gettimeon this platform. - TIMER_
SETTIME - The system call number for
timer_settimeon this platform. - TIMES
- The system call number for
timeson this platform. - TKILL
- The system call number for
tkillon this platform. - TRUNCATE
- The system call number for
truncateon this platform. - TUXCALL
- The system call number for
tuxcallon this platform. - UMASK
- The system call number for
umaskon this platform. - UMOUNT2
- The system call number for
umount2on this platform. - UNAME
- The system call number for
unameon this platform. - UNLINK
- The system call number for
unlinkon this platform. - UNLINKAT
- The system call number for
unlinkaton this platform. - UNSHARE
- The system call number for
unshareon this platform. - USELIB
- The system call number for
uselibon this platform. - USERFAULTFD
- The system call number for
userfaultfdon this platform. - USTAT
- The system call number for
ustaton this platform. - UTIME
- The system call number for
utimeon this platform. - UTIMENSAT
- The system call number for
utimensaton this platform. - UTIMES
- The system call number for
utimeson this platform. - VFORK
- The system call number for
vforkon this platform. - VHANGUP
- The system call number for
vhangupon this platform. - VMSPLICE
- The system call number for
vmspliceon this platform. - VSERVER
- The system call number for
vserveron this platform. - WAIT4
- The system call number for
wait4on this platform. - WAITID
- The system call number for
waitidon this platform. - WRITE
- The system call number for
writeon this platform. - WRITEV
- The system call number for
writevon this platform. - _SYSCTL
- The system call number for
_sysctlon 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.