Skip to content

Latest commit

 

History

History
2162 lines (1539 loc) · 63.5 KB

x64-syscalls.asc

File metadata and controls

2162 lines (1539 loc) · 63.5 KB

x64-syscalls

Syscalls, available at linux 64bit.
In order to use them, you have to define 'mini_syscalls".
This will define all the syscalls, prefixed with 'sys_'.
It is however not guaranteed, that the used stuctures and datatypes are implemented,
some of them might be only predeclared.
When 'mini_errno' is defined, all syscalls do return on error -1, and set errno.
When errno is not defined, the syscalls return on error the negative value of errno.
Not using the global errno spares some bytes and ressources, and eventually
global variables at all. (Important when using threads)
sys__sysctl

syssysctl( struct sysctl_args args)
*read/write system parameters
../include/syscalls_x64.h l.316

sys_accept

sys_accept( int fd, struct sockaddr upeersockaddr, int *upeeraddrlen)
*accept a new connection on a socket
../include/syscalls_x64.h l.91

sys_accept4

sys_accept4( int fd, struct sockaddr upeer_sockaddr, int *upeer_addrlen, int flags)
*accept a connection on a socket
../include/syscalls_x64.h l.552

sys_access

sys_access( const char filename, int mode)
*determine accessibility of a file relative to directory file
../include/syscalls_x64.h l.47

sys_acct

sys_acct( const char name)
*switch process accounting on or off
../include/syscalls_x64.h l.330

sys_add_key

sys_add_key( const char _type, const char *_description, const void *_payload, size_t plen)
*add a key to the kernel’s key management facility
../include/syscalls_x64.h l.472

sys_adjtimex

sys_adjtimex( struct timex txc_p)
*tune kernel clock
../include/syscalls_x64.h l.322

sys_alarm

sys_alarm( unsigned int seconds)
schedule an alarm signal ../include/syscalls_x64.h l.79

sys_arch_prctl

sys_arch_prctl( struct task_struct task, int code, unsigned long *addr)
*set architecture-specific thread state
../include/syscalls_x64.h l.320

sys_bind

sys_bind( int fd, struct sockaddr umyaddr, int addrlen)
*bind a name to a socket
../include/syscalls_x64.h l.103

sys_brk

long sys_brk(unsigned long addr)
change data segment size

the kernel syscall brk.
sys_capget

sys_capget( cap_user_header_t header, cap_user_data_t dataptr)
set/get capabilities of thread(s) ../include/syscalls_x64.h l.256

sys_capset

sys_capset( cap_user_header_t header, const cap_user_data_t data)
set/get capabilities of thread(s) ../include/syscalls_x64.h l.258

sys_chdir

sys_chdir( const char filename)
*change working directory
../include/syscalls_x64.h l.166

sys_chmod

sys_chmod( const char filename, mode_t mode)
*change mode of a file relative to directory file descriptor
../include/syscalls_x64.h l.186

sys_chown

sys_chown( const char filename, uid_t user, gid_t group)
*change owner and group of a file relative to directory
../include/syscalls_x64.h l.190

sys_chroot

sys_chroot( const char filename)
*change root directory
../include/syscalls_x64.h l.326

sys_clock_adjtime

sys_clock_adjtime( clockid_t which_clock, struct timex *tx)
../include/syscalls_x64.h l.586

sys_clock_getres

sys_clock_getres( const clockid_t which_clock, struct timespec *tp)
../include/syscalls_x64.h l.436

sys_clock_gettime

sys_clock_gettime( const clockid_t which_clock, struct timespec tp)
*clock and time functions
../include/syscalls_x64.h l.434

sys_clock_nanosleep

sys_clock_nanosleep( const clockid_t which_clock, int flags, const struct timespec rqtp, struct timespec *rmtp)
*high resolution sleep with specifiable clock
../include/syscalls_x64.h l.438

sys_clock_settime

sys_clock_settime( const clockid_t which_clock, const struct timespec tp)
*clock and timer functions
../include/syscalls_x64.h l.432

sys_clone

sys_clone( unsigned long clone_flags, unsigned long newsp, void parent_tid, void *child_tid)
*create a child process
../include/syscalls_x64.h l.117

sys_close

sys_close( unsigned int fd)
close a file descriptor ../include/syscalls_x64.h l.11

sys_connect

sys_connect( int fd, struct sockaddr uservaddr, int addrlen)
*connect a socket
../include/syscalls_x64.h l.89

sys_creat

sys_creat( const char pathname, int mode)
*create a new file or rewrite an existing one
../include/syscalls_x64.h l.176

sys_delete_module

sys_delete_module( const char name_user, unsigned int flags)
*unload a kernel module
../include/syscalls_x64.h l.354

sys_dup

sys_dup( unsigned int fildes)
duplicate an open file descriptor ../include/syscalls_x64.h l.69

sys_dup2

sys_dup2( unsigned int oldfd, unsigned int newfd)
duplicate a file descriptor ../include/syscalls_x64.h l.71

sys_dup3

sys_dup3( unsigned int oldfd, unsigned int newfd, int flags)
duplicate a file descriptor ../include/syscalls_x64.h l.560

sys_epoll_create

sys_epoll_create( int size)
open an epoll file descriptor ../include/syscalls_x64.h l.408

sys_epoll_create1

sys_epoll_create1( int flags)
open an epoll file descriptor ../include/syscalls_x64.h l.558

sys_epoll_ctl

sys_epoll_ctl( int epfd, int op, int fd, struct epoll_event event)
*control interface for an epoll file descriptor
../include/syscalls_x64.h l.444

sys_epoll_pwait

sys_epoll_pwait( int epfd, struct epoll_event events, int maxevents, int timeout, const sigset_t *sigmask, size_t sigsetsize)
*wait for an I/O event on an epoll file descriptor
../include/syscalls_x64.h l.538

sys_epoll_wait

sys_epoll_wait( int epfd, struct epoll_event events, int maxevents, int timeout)
*wait for an I/O event on an epoll file descriptor
../include/syscalls_x64.h l.442

sys_eventfd

sys_eventfd( unsigned int count)
create a file descriptor for event notification ../include/syscalls_x64.h l.544

sys_eventfd2

sys_eventfd2( unsigned int count, int flags)
create a file descriptor for event notification ../include/syscalls_x64.h l.556

sys_execve

sys_execve( const char filename, const char *const argv[], const char *const envp[])
*execute program
../include/syscalls_x64.h l.123

sys_exit

sys_exit( int error_code)
terminate a process

sys_exit_group

sys_exit_group( int error_code)
exit all threads in a process ../include/syscalls_x64.h l.440

sys_faccessat

sys_faccessat( int dfd, const char filename, int mode)
*determine accessibility of a file relative to directory file
../include/syscalls_x64.h l.514

sys_fadvise64

sys_fadvise64( int fd, loff_t offset, size_t len, int advice)
predeclare an access pattern for file data ../include/syscalls_x64.h l.420

sys_fallocate

sys_fallocate( long fd, long mode, loff_t offset, loff_t len)
manipulate file space ../include/syscalls_x64.h l.546

sys_fanotify_init

sys_fanotify_init( unsigned int flags, unsigned int event_f_flags)
create and initialize fanotify group ../include/syscalls_x64.h l.576

sys_fanotify_mark

sys_fanotify_mark( long fanotify_fd, long flags, __u64 mask, long dfd, long pathname)
add, remove, or modify an fanotify mark on a filesystem ../include/syscalls_x64.h l.578

sys_fchdir

sys_fchdir( unsigned int fd)
change working directory ../include/syscalls_x64.h l.168

sys_fchmod

sys_fchmod( unsigned int fd, mode_t mode)
change mode of a file ../include/syscalls_x64.h l.188

sys_fchmodat

sys_fchmodat( int dfd, const char filename, mode_t mode)
*change mode of a file relative to directory file descriptor
../include/syscalls_x64.h l.512

sys_fchown

sys_fchown( unsigned int fd, uid_t user, gid_t group)
change owner and group of a file ../include/syscalls_x64.h l.192

sys_fchownat

sys_fchownat( int dfd, const char filename, uid_t user, gid_t group, int flag)
*change owner and group of a file relative to directory
../include/syscalls_x64.h l.496

sys_fcntl

sys_fcntl( unsigned int fd, unsigned int cmd, unsigned long arg)
file control ../include/syscalls_x64.h l.150

sys_fdatasync

sys_fdatasync( unsigned int fd)
synchronize the data of a file ../include/syscalls_x64.h l.156

sys_fgetxattr

sys_fgetxattr( int fd, const char name, void *value, size_t size)
*retrieve an extended attribute value
../include/syscalls_x64.h l.372

sys_finit_module

sys_finit_module( int fd, const char uargs, int flags)
*load a kernel module
../include/syscalls_x64.h l.602

sys_flistxattr

sys_flistxattr( int fd, char list, size_t size)
*list extended attribute names
../include/syscalls_x64.h l.378

sys_flock

sys_flock( unsigned int fd, unsigned int cmd)
apply or remove an advisory lock on an open file ../include/syscalls_x64.h l.152

sys_fork

sysSYSDEF_syscall(_fork,0)
create a new process ../include/syscalls_x64.h l.119

sys_fremovexattr

sys_fremovexattr( int fd, const char name)
*remove an extended attribute
../include/syscalls_x64.h l.384

sys_fsetxattr

sys_fsetxattr( int fd, const char name, const void *value, size_t size, int flags)
*set an extended attribute value
../include/syscalls_x64.h l.366

sys_fstat

sys_fstat( unsigned int fd, struct stat statbuf)
*get file status
../include/syscalls_x64.h l.15

sys_fstatfs

sys_fstatfs( unsigned int fd, struct statfs buf)
*get filesystem statistics
../include/syscalls_x64.h l.280

sys_fsync

sys_fsync( unsigned int fd)
synchronize changes to a file ../include/syscalls_x64.h l.154

sys_ftruncate

sys_ftruncate( unsigned int fd, unsigned long length)
truncate a file to a specified length ../include/syscalls_x64.h l.160

sys_futex

sys_futex( u32 uaddr, int op, u32 val, struct timespec *utime, u32 *uaddr2, u32 val3)
*fast user-space locking
../include/syscalls_x64.h l.390

sys_futimesat

sys_futimesat( int dfd, const char filename, struct timeval *utimes)
*change timestamps of a file relative to a directory file descriptor
../include/syscalls_x64.h l.498

sys_get_mempolicy

sys_get_mempolicy( int policy, unsigned long *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags)
*retrieve NUMA memory policy for a thread
../include/syscalls_x64.h l.454

sys_get_robust_list

sys_get_robust_list( int pid, struct robust_list_head *head_ptr, size_t *len_ptr)
*get/set list of robust futexes
../include/syscalls_x64.h l.524

sys_getcpu

sys_getcpu( unsigned cpup, unsigned *nodep, struct getcpu_cache *unused)
*determine CPU and NUMA node on which the calling thread is running
../include/syscalls_x64.h l.594

sys_getcwd

sys_getcwd( char buf, unsigned long size)
*get the pathname of the current working directory
../include/syscalls_x64.h l.164

sys_getdents

sys_getdents( unsigned int fd, struct linux_dirent dirent, unsigned int count)
*get directory entries
../include/syscalls_x64.h l.162

sys_getdents64

sys_getdents64( unsigned int fd, struct linux_dirent64 dirent, unsigned int count)
*get directory entries
../include/syscalls_x64.h l.412

sys_getegid

sysSYSDEF_syscall(_getegid,0)
get the effective group ID ../include/syscalls_x64.h l.222

sys_geteuid

sysSYSDEF_syscall(_geteuid,0)
get the effective user ID ../include/syscalls_x64.h l.220

sys_getgid

sysSYSDEF_syscall(_getgid,0)
get the real group ID ../include/syscalls_x64.h l.214

sys_getgroups

sys_getgroups( int gidsetsize, gid_t grouplist)
*get supplementary group IDs
../include/syscalls_x64.h l.236

sys_getitimer

sys_getitimer( int which, struct itimerval value)
*get and set value of interval timer
../include/syscalls_x64.h l.77

sys_getpeername

sys_getpeername( int fd, struct sockaddr usockaddr, int *usockaddr_len)
*get the name of the peer socket
../include/syscalls_x64.h l.109

sys_getpgid

sys_getpgid( pid_t pid)
get the process group ID for a process ../include/syscalls_x64.h l.248

sys_getpgrp

sysSYSDEF_syscall(_getpgrp,0)
get the process group ID of the calling process ../include/syscalls_x64.h l.228

sys_getpid

sysSYSDEF_syscall(_getpid,0)
get the process ID ../include/syscalls_x64.h l.83

sys_getppid

sysSYSDEF_syscall(_getppid,0)
get the parent process ID ../include/syscalls_x64.h l.226

sys_getpriority

sys_getpriority( int which, int who)
get and set the nice value ../include/syscalls_x64.h l.284

sys_getrandom

sys_getrandom( char buf, size_t count, unsigned int flags)
*obtain a series of random bytes
../include/syscalls_x64.h l.612

sys_getresgid

sys_getresgid( gid_t rgid, gid_t *egid, gid_t *sgid)
*get real, effective and saved user/group IDs
../include/syscalls_x64.h l.246

sys_getresuid

sys_getresuid( uid_t ruid, uid_t *euid, uid_t *suid)
*get real, effective and saved user/group IDs
../include/syscalls_x64.h l.242

sys_getrlimit

sys_getrlimit( unsigned int resource, struct rlimit rlim)
*control maximum resource consumption
../include/syscalls_x64.h l.200

sys_getrusage

sys_getrusage( int who, struct rusage ru)
*get information about resource utilization
../include/syscalls_x64.h l.202

sys_getsid

sys_getsid( pid_t pid)
get the process group ID of a session leader ../include/syscalls_x64.h l.254

sys_getsockname

sys_getsockname( int fd, struct sockaddr usockaddr, int *usockaddr_len)
*get the socket name
../include/syscalls_x64.h l.107

sys_getsockopt

sys_getsockopt( int fd, int level, int optname, char optval, int *optlen)
*get the socket options
../include/syscalls_x64.h l.115

sys_gettid

sysSYSDEF_syscall(_gettid,0)
get thread identification ../include/syscalls_x64.h l.358

sys_gettimeofday

sys_gettimeofday( struct timeval tv, struct timezone *tz)
*get the date and time
../include/syscalls_x64.h l.198

sys_getuid

sysSYSDEF_syscall(_getuid,0)
get a real user ID ../include/syscalls_x64.h l.210

sys_getxattr

sys_getxattr( const char pathname, const char *name, void *value, size_t size)
*retrieve an extended attribute value
../include/syscalls_x64.h l.368

sys_init_module

sys_init_module( void umod, unsigned long len, const char *uargs)
*load a kernel module
../include/syscalls_x64.h l.352

sys_inotify_add_watch

sys_inotify_add_watch( int fd, const char pathname, u32 mask)
*add a watch to an initialized inotify instance
../include/syscalls_x64.h l.484

sys_inotify_init

sysSYSDEF_syscall(_inotify_init,0)
initialize an inotify instance ../include/syscalls_x64.h l.482

sys_inotify_init1

sys_inotify_init1( int flags)
initialize an inotify instance ../include/syscalls_x64.h l.564

sys_inotify_rm_watch

sys_inotify_rm_watch( int fd, __s32 wd)
remove an existing watch from an inotify instance ../include/syscalls_x64.h l.486

sys_io_cancel

sys_io_cancel( aio_context_t ctx_id, struct iocb iocb, struct io_event *result)
*cancel an outstanding asynchronous I/O operation
../include/syscalls_x64.h l.404

sys_io_destroy

sys_io_destroy( aio_context_t ctx)
destroy an asynchronous I/O context ../include/syscalls_x64.h l.398

sys_io_getevents

sys_io_getevents( aio_context_t ctx_id, long min_nr, long nr, struct io_event events)
*read asynchronous I/O events from the completion queue
../include/syscalls_x64.h l.400

sys_io_setup

sys_io_setup( unsigned nr_events, aio_context_t ctxp)
*create an asynchronous I/O context
../include/syscalls_x64.h l.396

sys_io_submit

sys_io_submit( aio_context_t ctx_id, long nr, struct iocb *iocbpp)
*submit asynchronous I/O blocks for processing
../include/syscalls_x64.h l.402

sys_ioctl

sys_ioctl( unsigned int fd, unsigned int cmd, unsigned long arg)
control a STREAMS device (\fBSTREAMS\fP) ../include/syscalls_x64.h l.37

sys_ioperm

sys_ioperm( unsigned long from, unsigned long num, int turn_on)
set port input/output permissions ../include/syscalls_x64.h l.350

sys_iopl

sys_iopl( unsigned int level, struct pt_regs regs)
*change I/O privilege level
../include/syscalls_x64.h l.348

sys_ioprio_get

sys_ioprio_get( int which, int who)
get/set I/O scheduling class and priority ../include/syscalls_x64.h l.480

sys_ioprio_set

sys_ioprio_set( int which, int who, int ioprio)
get/set I/O scheduling class and priority ../include/syscalls_x64.h l.478

sys_kcmp

sys_kcmp( pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2)
compare two processes to determine if they share a kernel resource ../include/syscalls_x64.h l.600

sys_kexec_file_load

sys_kexec_file_load( int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char cmdline_ptr, unsigned long flags)
*load a new kernel for later execution
../include/syscalls_x64.h l.616

sys_kexec_load

sys_kexec_load( unsigned long entry, unsigned long nr_segments, struct kexec_segment segments, unsigned long flags)
*load a new kernel for later execution
../include/syscalls_x64.h l.468

sys_keyctl

sys_keyctl( int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
key management function wrappers ../include/syscalls_x64.h l.476

sys_kill

sys_kill( pid_t pid, int sig)
send a signal to a process or a group of processes ../include/syscalls_x64.h l.130

sys_lchown

sys_lchown( const char filename, uid_t user, gid_t group)
*change the owner and group of a symbolic link
../include/syscalls_x64.h l.194

sys_lgetxattr

sys_lgetxattr( const char pathname, const char *name, void *value, size_t size)
*retrieve an extended attribute value
../include/syscalls_x64.h l.370

sys_linkat

sys_linkat( int oldfd, const char oldname, int newfd, const char *newname, int flags)
*make a new name for a file
../include/syscalls_x64.h l.506

sys_listen

sys_listen( int fd, int backlog)
listen for socket connections and limit the queue of incoming ../include/syscalls_x64.h l.105

sys_listxattr

sys_listxattr( const char pathname, char *list, size_t size)
*list extended attribute names
../include/syscalls_x64.h l.374

sys_llistxattr

sys_llistxattr( const char pathname, char *list, size_t size)
*list extended attribute names
../include/syscalls_x64.h l.376

sys_lookup_dcookie

sys_lookup_dcookie( u64 cookie64, long buf, long len)
return a directory entry’s path ../include/syscalls_x64.h l.406

sys_lremovexattr

sys_lremovexattr( const char pathname, const char *name)
*remove an extended attribute
../include/syscalls_x64.h l.382

sys_lseek

sys_lseek( unsigned int fd, off_t offset, unsigned int origin)
move the read/write file offset ../include/syscalls_x64.h l.21

sys_lsetxattr

sys_lsetxattr( const char pathname, const char *name, const void *value, size_t size, int flags)
*set an extended attribute value
../include/syscalls_x64.h l.364

sys_lstat

sys_lstat( const char filename, struct stat *statbuf)
*get file status
../include/syscalls_x64.h l.17

sys_madvise

sys_madvise( unsigned long start, size_t len_in, int behavior)
give advice about use of memory ../include/syscalls_x64.h l.61

sys_mbind

sys_mbind( unsigned long start, unsigned long len, unsigned long mode, unsigned long nmask, unsigned long maxnode, unsigned flags)
*set memory policy for a memory range
../include/syscalls_x64.h l.450

sys_memfd_create

sys_memfd_create( const char uname_ptr, unsigned int flags)
*create an anonymous file
../include/syscalls_x64.h l.614

sys_migrate_pages

sys_migrate_pages( pid_t pid, unsigned long maxnode, const unsigned long old_nodes, const unsigned long *new_nodes)
*move all pages in a process to another set of nodes
../include/syscalls_x64.h l.488

sys_mincore

sys_mincore( unsigned long start, size_t len, unsigned char vec)
*determine whether pages are resident in memory
../include/syscalls_x64.h l.59

sys_mkdir

sys_mkdir( const char pathname, int mode)
*make a directory relative to directory file descriptor
../include/syscalls_x64.h l.172

sys_mkdirat

sys_mkdirat( int dfd, const char pathname, int mode)
*create a directory
../include/syscalls_x64.h l.492

sys_mknod

sys_mknod( const char filename, umode_t mode, unsigned dev)
*make directory, special file, or regular file
../include/syscalls_x64.h l.272

sys_mknodat

sys_mknodat( int dfd, const char filename, int mode, unsigned dev)
*create a special or ordinary file
../include/syscalls_x64.h l.494

sys_mlock

sys_mlock( unsigned long start, size_t len)
lock or unlock a range of process address space ../include/syscalls_x64.h l.302

sys_mlockall

sys_mlockall( int flags)
lock/unlock the address space of a process ../include/syscalls_x64.h l.306

sys_mmap

sys_mmap( unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off)
map pages of memory ../include/syscalls_x64.h l.23

sys_modify_ldt

sys_modify_ldt( int func, void ptr, unsigned long bytecount)
*get or set a per-process LDT entry
../include/syscalls_x64.h l.312

sys_mount

sys_mount( char dev_name, char *dir_name, char *type, unsigned long flags, void *data)
*mount filesystem
../include/syscalls_x64.h l.334

sys_move_pages

sys_move_pages( pid_t pid, unsigned long nr_pages, const void pages[], const int *nodes, int *status, int flags)
*move individual pages of a process to another node
../include/syscalls_x64.h l.534

sys_mprotect

sys_mprotect( unsigned long start, size_t len, unsigned long prot)
set protection of memory mapping ../include/syscalls_x64.h l.25

sys_mq_getsetattr

sys_mq_getsetattr( mqd_t mqdes, const struct mq_attr u_mqstat, struct mq_attr *u_omqstat)
*get/set message queue attributes
../include/syscalls_x64.h l.466

sys_mq_notify

sys_mq_notify( mqd_t mqdes, const struct sigevent u_notification)
*notify process that a message is available
../include/syscalls_x64.h l.464

sys_mq_open

sys_mq_open( const char u_name, int oflag, mode_t mode, struct mq_attr *u_attr)
*open a message queue
../include/syscalls_x64.h l.456

sys_mq_timedreceive

sys_mq_timedreceive( mqd_t mqdes, char u_msg_ptr, size_t msg_len, unsigned int *u_msg_prio, const struct timespec *u_abs_timeout)
*receive a message from a message queue
../include/syscalls_x64.h l.462

sys_mq_timedsend

sys_mq_timedsend( mqd_t mqdes, const char u_msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *u_abs_timeout)
*send a message to a message queue
../include/syscalls_x64.h l.460

sys_mremap

sys_mremap( unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr)
remap a virtual memory address ../include/syscalls_x64.h l.55

sys_msgctl

sys_msgctl( int msqid, int cmd, struct msqid_ds buf)
*XSI message control operations
../include/syscalls_x64.h l.148

sys_msgget

sys_msgget( key_t key, int msgflg)
get the XSI message queue identifier ../include/syscalls_x64.h l.142

sys_msgrcv

sys_msgrcv( int msqid, struct msgbuf msgp, size_t msgsz, long msgtyp, int msgflg)
*XSI message receive operation
../include/syscalls_x64.h l.146

sys_msgsnd

sys_msgsnd( int msqid, struct msgbuf msgp, size_t msgsz, int msgflg)
*XSI message send operation
../include/syscalls_x64.h l.144

sys_msync

sys_msync( unsigned long start, size_t len, int flags)
synchronize memory with physical storage ../include/syscalls_x64.h l.57

sys_munlock

sys_munlock( unsigned long start, size_t len)
unlock a range of process address space ../include/syscalls_x64.h l.304

sys_munlockall

sysSYSDEF_syscall(_munlockall,0)
unlock the address space of a process ../include/syscalls_x64.h l.308

sys_munmap

sys_munmap( unsigned long addr, size_t len)
unmap pages of memory ../include/syscalls_x64.h l.27

sys_name_to_handle_at

sys_name_to_handle_at( int dfd, const char name, struct file_handle *handle, int *mnt_id, int flag)
*obtain handle
../include/syscalls_x64.h l.582

sys_nanosleep

sys_nanosleep( struct timespec rqtp, struct timespec *rmtp)
*high resolution sleep
../include/syscalls_x64.h l.75

sys_newfstatat

sys_newfstatat( int dfd, const char filename, struct stat *statbuf, int flag)
*get file status
../include/syscalls_x64.h l.500

sys_open

sys_open( const char filename, int flags, int mode)
*open file relative to directory file descriptor
../include/syscalls_x64.h l.9

sys_open_by_handle_at

sys_open_by_handle_at( int dfd, const char name, struct file_handle *handle, int *mnt_id, int flags)
*obtain handle
../include/syscalls_x64.h l.584

sys_openat

sys_openat( int dfd, const char filename, int flags, int mode)
*open file relative to directory file descriptor
../include/syscalls_x64.h l.490

sys_pause

sysSYSDEF_syscall(_pause,0)
suspend the thread until a signal is received ../include/syscalls_x64.h l.73

sys_perf_event_open

sys_perf_event_open( struct perf_event_attr attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags)
*set up performance monitoring
../include/syscalls_x64.h l.572

sys_personality

sys_personality( unsigned int personality)
set the process execution domain ../include/syscalls_x64.h l.274

sys_pipe

sys_pipe( int filedes)
*create an interprocess channel
../include/syscalls_x64.h l.49

sys_pipe2

sys_pipe2( int filedes, int flags)
*create pipe
../include/syscalls_x64.h l.562

sys_pivot_root

sys_pivot_root( const char new_root, const char *put_old)
*change the root mount
../include/syscalls_x64.h l.314

sys_poll

sys_poll( struct poll_fd ufds, unsigned int nfds, long timeout_msecs)
*input/output multiplexing
../include/syscalls_x64.h l.19

sys_ppoll

sys_ppoll( struct pollfd ufds, unsigned int nfds, struct timespec *tsp, const sigset_t *sigmask, size_t sigsetsize)
*wait for some event on a file descriptor
../include/syscalls_x64.h l.518

sys_prctl

sys_prctl( int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
operations on a process ../include/syscalls_x64.h l.318

sys_pread64

sys_pread64( unsigned long fd, char buf, size_t count, loff_t pos)
*read from or write to a file descriptor at a given offset
../include/syscalls_x64.h l.39

sys_preadv

sys_preadv( unsigned long fd, const struct iovec vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h)
*read or write data into multiple buffers
../include/syscalls_x64.h l.566

sys_prlimit64

sys_prlimit64( pid_t pid, unsigned int resource, const struct rlimit64 new_rlim, struct rlimit64 *old_rlim)
*get/set resource limits
../include/syscalls_x64.h l.580

sys_process_vm_readv

sys_process_vm_readv( pid_t pid, const struct iovec lvec, unsigned long liovcnt, const struct iovec *rvec, unsigned long riovcnt, unsigned long flags)
*transfer data between process address spaces
../include/syscalls_x64.h l.596

sys_process_vm_writev

sys_process_vm_writev( pid_t pid, const struct iovec lvec, unsigned long liovcnt, const struct iovcc *rvec, unsigned long riovcnt, unsigned long flags)
*transfer data between process address spaces
../include/syscalls_x64.h l.598

sys_pselect6

sys_pselect6( int n, fd_set inp, fd_set *outp, fd_set *exp, struct timespec *tsp, void *sig)
*select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \-
../include/syscalls_x64.h l.516

sys_ptrace

sys_ptrace( long request, long pid, unsigned long addr, unsigned long data)
process trace ../include/syscalls_x64.h l.208

sys_pwrite64

sys_pwrite64( unsigned int fd, const char buf, size_t count, loff_t pos)
*read from or write to a file descriptor at a given offset
../include/syscalls_x64.h l.41

sys_pwritev

sys_pwritev( unsigned long fd, const struct iovec vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h)
*read or write data into multiple buffers
../include/syscalls_x64.h l.568

sys_quotactl

sys_quotactl( unsigned int cmd, const char special, qid_t id, void *addr)
*manipulate disk quotas
../include/syscalls_x64.h l.356

sys_read

sys_read( unsigned int fd, char buf, size_t count)
*read from a file
../include/syscalls_x64.h l.5

sys_readahead

sys_readahead( int fd, loff_t offset, size_t count)
initiate file readahead into page cache ../include/syscalls_x64.h l.360

sys_readlinkat

sys_readlinkat( int dfd, const char pathname, char *buf, int bufsiz)
*read value of a symbolic link
../include/syscalls_x64.h l.510

sys_readv

sys_readv( unsigned long fd, const struct iovec vec, unsigned long vlen)
*read a vector
../include/syscalls_x64.h l.43

sys_reboot

sys_reboot( int magic1, int magic2, unsigned int cmd, void arg)
*reboot or enable/disable Ctrl-Alt-Del
../include/syscalls_x64.h l.342

sys_recvfrom

sys_recvfrom( int fd, void ubuf, size_t size, unsigned flags, struct sockaddr *addr, int *addr_len)
*receive a message from a socket
../include/syscalls_x64.h l.95

sys_recvmmsg

sys_recvmmsg( int fd, struct msghdr mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout)
*receive multiple messages on a socket
../include/syscalls_x64.h l.574

sys_recvmsg

sys_recvmsg( int fd, struct msghdr msg, unsigned int flags)
*receive a message from a socket
../include/syscalls_x64.h l.99

sys_remap_file_pages

sys_remap_file_pages( unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags)
create a nonlinear file mapping ../include/syscalls_x64.h l.410

sys_removexattr

sys_removexattr( const char pathname, const char *name)
*remove an extended attribute
../include/syscalls_x64.h l.380

sys_rename

sys_rename( const char oldname, const char *newname)
*rename file relative to directory file descriptor
../include/syscalls_x64.h l.170

sys_renameat

sys_renameat( int oldfd, const char oldname, int newfd, const char *newname)
*change the name or location of a file
../include/syscalls_x64.h l.504

sys_renameat2

sys_renameat2( int olddfd, const char oldname, int newdfd, const char *newname, unsigned int flags)
*change the name or location of a file
../include/syscalls_x64.h l.608

sys_request_key

sys_request_key( const char _type, const char *_description, const char *_callout_info, key_serial_t destringid)
*request a key from the kernel’s key management facility
../include/syscalls_x64.h l.474

sys_restart_syscall

sysSYSDEF_syscall(_restart_syscall,0)
restart a system call after interruption by a stop signal ../include/syscalls_x64.h l.416

sys_rmdir

sys_rmdir( const char pathname)
*remove a directory
../include/syscalls_x64.h l.174

sys_rt_sigaction

sys_rt_sigaction( int sig, const struct sigaction act, struct sigaction *oact, size_t sigsetsize)
*examine and change a signal action
../include/syscalls_x64.h l.31

sys_rt_sigpending

sys_rt_sigpending( sigset_t set, size_t sigsetsize)
*examine pending signals
../include/syscalls_x64.h l.260

sys_rt_sigprocmask

sys_rt_sigprocmask( int how, sigset_t nset, sigset_t *oset, size_t sigsetsize)
*examine and change blocked signals
../include/syscalls_x64.h l.33

sys_rt_sigqueueinfo

sys_rt_sigqueueinfo( pid_t pid, int sig, siginfo_t uinfo)
*queue a signal and data
../include/syscalls_x64.h l.264

sys_rt_sigreturn

sys_rt_sigreturn( unsigned long __unused)
return from signal handler and cleanup stack frame ../include/syscalls_x64.h l.35

sys_rt_sigsuspend

sys_rt_sigsuspend( sigset_t unewset, size_t sigsetsize)
*wait for a signal
../include/syscalls_x64.h l.266

sys_rt_sigtimedwait

sys_rt_sigtimedwait( const sigset_t uthese, siginfo_t *uinfo, const struct timespec *uts, size_t sigsetsize)
*synchronously wait
../include/syscalls_x64.h l.262

sys_rt_tgsigqueueinfo

sys_rt_tgsigqueueinfo( pid_t tgid, pid_t pid, int sig, siginfo_t uinfo)
*queue a signal and data
../include/syscalls_x64.h l.570

sys_sched_get_priority_max

sys_sched_get_priority_max( int policy)
get priority limits ../include/syscalls_x64.h l.296

sys_sched_get_priority_min

sys_sched_get_priority_min( int policy)
get static priority range ../include/syscalls_x64.h l.298

sys_sched_getaffinity

sys_sched_getaffinity( pid_t pid, unsigned int len, unsigned long user_mask_ptr)
*set and get a thread’s CPU affinity mask
../include/syscalls_x64.h l.394

sys_sched_getattr

sys_sched_getattr( pid_t pid, struct sched_attr attr, unsigned int size, unsigned int flags)
*sched_setattr, sched_getattr \-
../include/syscalls_x64.h l.606

sys_sched_getparam

sys_sched_getparam( pid_t pid, struct sched_param param)
*get scheduling parameters
../include/syscalls_x64.h l.290

sys_sched_getscheduler

sys_sched_getscheduler( pid_t pid)
get scheduling policy ../include/syscalls_x64.h l.294

sys_sched_rr_get_interval

sys_sched_rr_get_interval( pid_t pid, struct timespec interval)
*get execution time limits
../include/syscalls_x64.h l.300

sys_sched_setaffinity

sys_sched_setaffinity( pid_t pid, unsigned int len, unsigned long user_mask_ptr)
*set and get a thread’s CPU affinity mask
../include/syscalls_x64.h l.392

sys_sched_setattr

sys_sched_setattr( pid_t pid, struct sched_attr attr, unsigned int flags)
*sched_setattr, sched_getattr \-
../include/syscalls_x64.h l.604

sys_sched_setparam

sys_sched_setparam( pid_t pid, struct sched_param param)
*set scheduling parameters
../include/syscalls_x64.h l.288

sys_sched_setscheduler

sys_sched_setscheduler( pid_t pid, int policy, struct sched_param param)
*set scheduling policy and parameters
../include/syscalls_x64.h l.292

sys_sched_yield

sysSYSDEF_syscall(_sched_yield,0)
yield the processor ../include/syscalls_x64.h l.53

sys_seccomp

sys_seccomp( unsigned int op, unsigned int flags, const char uargs)
*operate on Secure Computing state of the process
../include/syscalls_x64.h l.610

sys_select

sys_select( int n, fd_set inp, fd_set *outp, fd_set *exp, struct timeval *tvp)
*synchronous I/O multiplexing
../include/syscalls_x64.h l.51

sys_semctl

sys_semctl( int semid, int semnum, int cmd, semun_u arg)
XSI semaphore control operations ../include/syscalls_x64.h l.138

sys_semget

sys_semget( key_t key, int nsems, int semflg)
get set of XSI semaphores ../include/syscalls_x64.h l.134

sys_semop

sys_semop( int semid, struct sembuf tsops, unsigned nsops)
*XSI semaphore operations
../include/syscalls_x64.h l.136

sys_semtimedop

sys_semtimedop( int semid, struct sembuf tsops, unsigned nsops, const struct timespec *timeout)
*System V semaphore operations
../include/syscalls_x64.h l.418

sys_sendfile

sys_sendfile( int out_fd, int in_fd, off_t offset, size_t count)
*transfer data between file descriptors
../include/syscalls_x64.h l.85

sys_sendmmsg

sys_sendmmsg( int fd, struct mmsghdr mmsg, unsigned int vlen, unsigned int flags)
*send multiple messages on a socket
../include/syscalls_x64.h l.590

sys_sendmsg

sys_sendmsg( int fd, struct msghdr msg, unsigned flags)
*send a message on a socket using a message structure
../include/syscalls_x64.h l.97

sys_sendto

sys_sendto( int fd, void buff, size_t len, unsigned flags, struct sockaddr *addr, int addr_len)
*send a message on a socket
../include/syscalls_x64.h l.93

sys_set_mempolicy

sys_set_mempolicy( int mode, unsigned long nmask, unsigned long maxnode)
*set default NUMA memory policy for a thread and its children
../include/syscalls_x64.h l.452

sys_set_robust_list

sys_set_robust_list( struct robust_list_head head, size_t len)
*get/set list of robust futexes
../include/syscalls_x64.h l.522

sys_set_tid_address

sys_set_tid_address( int tidptr)
*set pointer to thread ID
../include/syscalls_x64.h l.414

sys_setdomainname

sys_setdomainname( char name, int len)
*get/set NIS domain name
../include/syscalls_x64.h l.346

sys_setfsgid

sys_setfsgid( gid_t gid)
set group identity used for filesystem checks ../include/syscalls_x64.h l.252

sys_setfsuid

sys_setfsuid( uid_t uid)
set user identity used for filesystem checks ../include/syscalls_x64.h l.250

sys_setgid

sys_setgid( gid_t gid)
set-group-ID ../include/syscalls_x64.h l.218

sys_setgroups

sys_setgroups( int gidsetsize, gid_t grouplist)
*get/set list of supplementary group IDs
../include/syscalls_x64.h l.238

sys_sethostname

sys_sethostname( char name, int len)
*get/set hostname
../include/syscalls_x64.h l.344

sys_setitimer

sys_setitimer( int which, struct itimerval value, struct itimerval *ovalue)
*set the value of an interval timer
../include/syscalls_x64.h l.81

sys_setns

sys_setns( int fd, int nstype)
reassociate thread with a namespace ../include/syscalls_x64.h l.592

sys_setpgid

sys_setpgid( pid_t pid, pid_t pgid)
set process group ID for job control ../include/syscalls_x64.h l.224

sys_setpriority

sys_setpriority( int which, int who, int niceval)
set the nice value ../include/syscalls_x64.h l.286

sys_setregid

sys_setregid( gid_t rgid, gid_t egid)
set real and effective group IDs ../include/syscalls_x64.h l.234

sys_setresgid

sys_setresgid( gid_t rgid, gid_t egid, gid_t sgid)
set real, effective and saved user or group ID ../include/syscalls_x64.h l.244

sys_setresuid

sys_setresuid( uid_t ruid, uid_t *euid, uid_t *suid)
*set real, effective and saved user or group ID
../include/syscalls_x64.h l.240

sys_setreuid

sys_setreuid( uid_t ruid, uid_t euid)
set real and effective user IDs ../include/syscalls_x64.h l.232

sys_setrlimit

sys_setrlimit( unsigned int resource, struct rlimit rlim)
*control maximum resource consumption
../include/syscalls_x64.h l.324

sys_setsid

sysSYSDEF_syscall(_setsid,0)
create session and set process group ID ../include/syscalls_x64.h l.230

sys_setsockopt

sys_setsockopt( int fd, int level, int optname, char optval, int optlen)
*set the socket options
../include/syscalls_x64.h l.113

sys_settimeofday

sys_settimeofday( struct timeval tv, struct timezone *tz)
*get / set time
../include/syscalls_x64.h l.332

sys_setuid

sys_setuid( uid_t uid)
set user ID ../include/syscalls_x64.h l.216

sys_setxattr

sys_setxattr( const char pathname, const char *name, const void *value, size_t size, int flags)
*set an extended attribute value
../include/syscalls_x64.h l.362

sys_shmat

sys_shmat( int shmid, char shmaddr, int shmflg)
*XSI shared memory attach operation
../include/syscalls_x64.h l.65

sys_shmctl

sys_shmctl( int shmid, int cmd, struct shmid_ds buf)
*XSI shared memory control operations
../include/syscalls_x64.h l.67

sys_shmdt

sys_shmdt( char shmaddr)
*XSI shared memory detach operation
../include/syscalls_x64.h l.140

sys_shmget

sys_shmget( key_t key, size_t size, int shmflg)
get an XSI shared memory segment ../include/syscalls_x64.h l.63

sys_shutdown

sys_shutdown( int fd, int how)
shut down socket send and receive operations ../include/syscalls_x64.h l.101

sys_sigaltstack

sys_sigaltstack( const stack_t uss, stack_t *uoss)
*set and get signal alternate stack context
../include/syscalls_x64.h l.268

sys_signalfd

sys_signalfd( int ufd, sigset_t user_mask, size_t sizemask)
*create a file descriptor for accepting signals
../include/syscalls_x64.h l.540

sys_signalfd4

sys_signalfd4( int ufd, sigset_t user_mask, size_t sizemask, int flags)
*create a file descriptor for accepting signals
../include/syscalls_x64.h l.554

sys_socket

sys_socket( int family, int type, int protocol)
create an endpoint for communication ../include/syscalls_x64.h l.87

sys_socketpair

sys_socketpair( int family, int type, int protocol, int usockvec)
*create a pair of connected sockets
../include/syscalls_x64.h l.111

sys_splice

sys_splice( int fd_in, loff_t off_in, int fd_out, loff_t *off_out, size_t len, unsigned int flags)
*splice data to/from a pipe
../include/syscalls_x64.h l.526

sys_stat

sys_stat( const char filename, struct stat *statbuf)
*get file status
../include/syscalls_x64.h l.13

sys_statfs

sys_statfs( const char pathname, struct statfs *buf)
*get filesystem statistics
../include/syscalls_x64.h l.278

sys_swapoff

sys_swapoff( const char specialfile)
*start/stop swapping to file/device
../include/syscalls_x64.h l.340

sys_swapon

sys_swapon( const char specialfile, int swap_flags)
*start/stop swapping to file/device
../include/syscalls_x64.h l.338

sys_symlinkat

sys_symlinkat( const char oldname, int newfd, const char *newname)
*make a new name for a file
../include/syscalls_x64.h l.508

sys_sync

sysSYSDEF_syscall(_sync,0)
schedule file system updates ../include/syscalls_x64.h l.328

sys_sync_file_range

sys_sync_file_range( long fd, loff_t offset, loff_t bytes, long flags)
sync a file segment with disk ../include/syscalls_x64.h l.530

sys_syncfs

sys_syncfs( int fd)
commit filesystem caches to disk ../include/syscalls_x64.h l.588

sys_sysfs

sys_sysfs( int option, unsigned long arg1, unsigned long arg2)
get filesystem type information ../include/syscalls_x64.h l.282

sys_sysinfo

sys_sysinfo( struct sysinfo info)
*return system information
../include/syscalls_x64.h l.204

sys_syslog

sys_syslog( int type, char buf, int len)
*log a message
../include/syscalls_x64.h l.212

sys_tee

sys_tee( int fdin, int fdout, size_t len, unsigned int flags)
duplicating pipe content ../include/syscalls_x64.h l.528

sys_tgkill

sys_tgkill( pid_t tgid, pid_t pid, int sig)
send a signal to a thread ../include/syscalls_x64.h l.446

sys_time

sys_time( time_t tloc)
*get time
../include/syscalls_x64.h l.388

sys_timer_create

sys_timer_create( const clockid_t which_clock, struct sigevent timer_event_spec, timer_t *created_timer_id)
*create a per-process timer
../include/syscalls_x64.h l.422

sys_timer_delete

sys_timer_delete( timer_t timer_id)
delete a per-process timer ../include/syscalls_x64.h l.430

sys_timer_getoverrun

sys_timer_getoverrun( timer_t timer_id)
../include/syscalls_x64.h l.428

sys_timer_gettime

sys_timer_gettime( timer_t timer_id, struct itimerspec setting)
*arm/disarm and fetch
../include/syscalls_x64.h l.426

sys_timer_settime

sys_timer_settime( timer_t timer_id, int flags, const struct itimerspec new_setting, struct itimerspec *old_setting)
*arm/disarm and fetch
../include/syscalls_x64.h l.424

sys_timerfd_create

sys_timerfd_create( int clockid, int flags)
timerfd_create, timerfd_settime, timerfd_gettime \- ../include/syscalls_x64.h l.542

sys_timerfd_gettime

sys_timerfd_gettime( int ufd, struct itimerspec otmr)
*timerfd_create, timerfd_settime, timerfd_gettime \-
../include/syscalls_x64.h l.550

sys_timerfd_settime

sys_timerfd_settime( int ufd, int flags, const struct itimerspec utmr, struct itimerspec *otmr)
*timerfd_create, timerfd_settime, timerfd_gettime \-
../include/syscalls_x64.h l.548

sys_times

sys_times( struct sysinfo info)
*get process and waited-for child process times
../include/syscalls_x64.h l.206

sys_tkill

sys_tkill( pid_t pid, int sig)
send a signal to a thread ../include/syscalls_x64.h l.386

sys_truncate

sys_truncate( const char path, long length)
*truncate a file to a specified length
../include/syscalls_x64.h l.158

sys_umask

sys_umask( int mask)
set and get the file mode creation mask ../include/syscalls_x64.h l.196

sys_umount2

sys_umount2( const char target, int flags)
*unmount filesystem
../include/syscalls_x64.h l.336

sys_uname

sys_uname( struct old_utsname name)
*get the name of the current system
../include/syscalls_x64.h l.132

sys_unlinkat

sys_unlinkat( int dfd, const char pathname, int flag)
*delete a name and possibly the file it refers to
../include/syscalls_x64.h l.502

sys_unshare

sys_unshare( unsigned long unshare_flags)
disassociate parts of the process execution context ../include/syscalls_x64.h l.520

sys_ustat

sys_ustat( unsigned dev, struct ustat ubuf)
*get filesystem statistics
../include/syscalls_x64.h l.276

sys_utime

sys_utime( char filename, struct utimbuf *times)
*set file access and modification times
../include/syscalls_x64.h l.270

sys_utimensat

sys_utimensat( int dfd, const char filename, struct timespec *utimes, int flags)
*set file access and modification times relative to directory
../include/syscalls_x64.h l.536

sys_utimes

sys_utimes( char filename, struct timeval *utimes)
*change file last access and modification times
../include/syscalls_x64.h l.448

sys_vfork

sysSYSDEF_syscall(_vfork,0)
create a child process and block parent ../include/syscalls_x64.h l.121

sys_vhangup

sysSYSDEF_syscall(_vhangup,0)
virtually hangup the current terminal ../include/syscalls_x64.h l.310

sys_vmsplice

sys_vmsplice( int fd, const struct iovec iov, unsigned long nr_segs, unsigned int flags)
*splice user pages to/from a pipe
../include/syscalls_x64.h l.532

sys_wait4

sys_wait4( pid_t upid, int stat_addr, int options, struct rusage *ru)
*wait for process to change state, BSD style
../include/syscalls_x64.h l.128

sys_waitid

sys_waitid( int which, pid_t upid, struct siginfo infop, int options, struct rusage *ru)
*wait for a child process to change state
../include/syscalls_x64.h l.470

sys_write

sys_write( unsigned int fd, const char buf, size_t count)
*write on a file
../include/syscalls_x64.h l.7

sys_writev

sys_writev( unsigned long fd, const struct iovec vec, unsigned long vlen)
*write a vector
../include/syscalls_x64.h l.45