7736442
The system call list is in a separate file for easier updating.
7736442
5523218
diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list
5523218
new file mode 100644
7736442
index 0000000000..2e5cc77fe0
5523218
--- /dev/null
5523218
+++ b/sysdeps/unix/sysv/linux/syscall-names.list
7736442
@@ -0,0 +1,601 @@
5523218
+# List of all known Linux system calls.
5523218
+# Copyright (C) 2017 Free Software Foundation, Inc.
5523218
+# This file is part of the GNU C Library.
5523218
+#
5523218
+# The GNU C Library is free software; you can redistribute it and/or
5523218
+# modify it under the terms of the GNU Lesser General Public
5523218
+# License as published by the Free Software Foundation; either
5523218
+# version 2.1 of the License, or (at your option) any later version.
5523218
+#
5523218
+# The GNU C Library is distributed in the hope that it will be useful,
5523218
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
5523218
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5523218
+# Lesser General Public License for more details.
5523218
+#
5523218
+# You should have received a copy of the GNU Lesser General Public
5523218
+# License along with the GNU C Library; if not, see
5523218
+# <http://www.gnu.org/licenses/>.
5523218
+
5523218
+# This file contains the list of system call names names.  It has to
5523218
+# remain in alphabetica order.  Lines which start with # are treated
5523218
+# as comments.  This file can list all potential system calls.  The
5523218
+# names are only used if the installed kernel headers also provide
5523218
+# them.
5523218
+
1a3836a
+# The list of system calls is current as of Linux 4.12.
1a3836a
+kernel 4.12
5523218
+
5523218
+FAST_atomic_update
5523218
+FAST_cmpxchg
5523218
+FAST_cmpxchg64
5523218
+_llseek
5523218
+_newselect
5523218
+_sysctl
5523218
+accept
5523218
+accept4
5523218
+access
5523218
+acct
7736442
+acl_get
7736442
+acl_set
5523218
+add_key
5523218
+adjtimex
5523218
+afs_syscall
5523218
+alarm
7736442
+alloc_hugepages
5523218
+arch_prctl
5523218
+arm_fadvise64_64
5523218
+arm_sync_file_range
5523218
+atomic_barrier
5523218
+atomic_cmpxchg_32
7736442
+attrctl
5523218
+bdflush
5523218
+bind
5523218
+bpf
5523218
+break
5523218
+brk
5523218
+cachectl
5523218
+cacheflush
5523218
+capget
5523218
+capset
5523218
+chdir
5523218
+chmod
5523218
+chown
5523218
+chown32
5523218
+chroot
5523218
+clock_adjtime
5523218
+clock_getres
5523218
+clock_gettime
5523218
+clock_nanosleep
5523218
+clock_settime
5523218
+clone
5523218
+clone2
5523218
+close
5523218
+cmpxchg_badaddr
5523218
+connect
5523218
+copy_file_range
5523218
+creat
5523218
+create_module
5523218
+delete_module
5523218
+dipc
5523218
+dup
5523218
+dup2
5523218
+dup3
5523218
+epoll_create
5523218
+epoll_create1
5523218
+epoll_ctl
5523218
+epoll_ctl_old
5523218
+epoll_pwait
5523218
+epoll_wait
5523218
+epoll_wait_old
5523218
+eventfd
5523218
+eventfd2
5523218
+exec_with_loader
5523218
+execv
5523218
+execve
5523218
+execveat
5523218
+exit
5523218
+exit_group
5523218
+faccessat
5523218
+fadvise64
5523218
+fadvise64_64
5523218
+fallocate
5523218
+fanotify_init
5523218
+fanotify_mark
5523218
+fchdir
5523218
+fchmod
5523218
+fchmodat
5523218
+fchown
5523218
+fchown32
5523218
+fchownat
5523218
+fcntl
5523218
+fcntl64
5523218
+fdatasync
5523218
+fgetxattr
5523218
+finit_module
5523218
+flistxattr
5523218
+flock
5523218
+fork
7736442
+free_hugepages
5523218
+fremovexattr
5523218
+fsetxattr
5523218
+fstat
5523218
+fstat64
5523218
+fstatat64
5523218
+fstatfs
5523218
+fstatfs64
5523218
+fsync
5523218
+ftime
5523218
+ftruncate
5523218
+ftruncate64
5523218
+futex
5523218
+futimesat
5523218
+get_kernel_syms
5523218
+get_mempolicy
5523218
+get_robust_list
5523218
+get_thread_area
5523218
+getcpu
5523218
+getcwd
5523218
+getdents
5523218
+getdents64
5523218
+getdomainname
5523218
+getdtablesize
5523218
+getegid
5523218
+getegid32
5523218
+geteuid
5523218
+geteuid32
5523218
+getgid
5523218
+getgid32
5523218
+getgroups
5523218
+getgroups32
5523218
+gethostname
5523218
+getitimer
5523218
+getpagesize
5523218
+getpeername
5523218
+getpgid
5523218
+getpgrp
5523218
+getpid
5523218
+getpmsg
5523218
+getppid
5523218
+getpriority
5523218
+getrandom
5523218
+getresgid
5523218
+getresgid32
5523218
+getresuid
5523218
+getresuid32
5523218
+getrlimit
5523218
+getrusage
5523218
+getsid
5523218
+getsockname
5523218
+getsockopt
5523218
+gettid
5523218
+gettimeofday
5523218
+getuid
5523218
+getuid32
5523218
+getunwind
5523218
+getxattr
5523218
+getxgid
5523218
+getxpid
5523218
+getxuid
5523218
+gtty
5523218
+idle
5523218
+init_module
5523218
+inotify_add_watch
5523218
+inotify_init
5523218
+inotify_init1
5523218
+inotify_rm_watch
5523218
+io_cancel
5523218
+io_destroy
5523218
+io_getevents
5523218
+io_setup
5523218
+io_submit
5523218
+ioctl
5523218
+ioperm
5523218
+iopl
5523218
+ioprio_get
5523218
+ioprio_set
5523218
+ipc
5523218
+kcmp
5523218
+kern_features
5523218
+kexec_file_load
5523218
+kexec_load
5523218
+keyctl
5523218
+kill
5523218
+lchown
5523218
+lchown32
5523218
+lgetxattr
5523218
+link
5523218
+linkat
5523218
+listen
5523218
+listxattr
5523218
+llistxattr
5523218
+llseek
5523218
+lock
5523218
+lookup_dcookie
5523218
+lremovexattr
5523218
+lseek
5523218
+lsetxattr
5523218
+lstat
5523218
+lstat64
5523218
+madvise
5523218
+mbind
5523218
+membarrier
5523218
+memfd_create
5523218
+memory_ordering
5523218
+migrate_pages
5523218
+mincore
5523218
+mkdir
5523218
+mkdirat
5523218
+mknod
5523218
+mknodat
5523218
+mlock
5523218
+mlock2
5523218
+mlockall
5523218
+mmap
5523218
+mmap2
5523218
+modify_ldt
5523218
+mount
5523218
+move_pages
5523218
+mprotect
5523218
+mpx
5523218
+mq_getsetattr
5523218
+mq_notify
5523218
+mq_open
5523218
+mq_timedreceive
5523218
+mq_timedsend
5523218
+mq_unlink
5523218
+mremap
5523218
+msgctl
5523218
+msgget
5523218
+msgrcv
5523218
+msgsnd
5523218
+msync
5523218
+multiplexer
5523218
+munlock
5523218
+munlockall
5523218
+munmap
5523218
+name_to_handle_at
5523218
+nanosleep
5523218
+newfstatat
5523218
+nfsservctl
5523218
+ni_syscall
5523218
+nice
5523218
+old_adjtimex
5523218
+oldfstat
5523218
+oldlstat
5523218
+oldolduname
5523218
+oldstat
5523218
+oldumount
5523218
+olduname
5523218
+open
5523218
+open_by_handle_at
5523218
+openat
5523218
+osf_adjtime
5523218
+osf_afs_syscall
5523218
+osf_alt_plock
5523218
+osf_alt_setsid
5523218
+osf_alt_sigpending
5523218
+osf_asynch_daemon
5523218
+osf_audcntl
5523218
+osf_audgen
5523218
+osf_chflags
5523218
+osf_execve
5523218
+osf_exportfs
5523218
+osf_fchflags
5523218
+osf_fdatasync
5523218
+osf_fpathconf
5523218
+osf_fstat
5523218
+osf_fstatfs
5523218
+osf_fstatfs64
5523218
+osf_fuser
5523218
+osf_getaddressconf
5523218
+osf_getdirentries
5523218
+osf_getdomainname
5523218
+osf_getfh
5523218
+osf_getfsstat
5523218
+osf_gethostid
5523218
+osf_getitimer
5523218
+osf_getlogin
5523218
+osf_getmnt
5523218
+osf_getrusage
5523218
+osf_getsysinfo
5523218
+osf_gettimeofday
5523218
+osf_kloadcall
5523218
+osf_kmodcall
5523218
+osf_lstat
5523218
+osf_memcntl
5523218
+osf_mincore
5523218
+osf_mount
5523218
+osf_mremap
5523218
+osf_msfs_syscall
5523218
+osf_msleep
5523218
+osf_mvalid
5523218
+osf_mwakeup
5523218
+osf_naccept
5523218
+osf_nfssvc
5523218
+osf_ngetpeername
5523218
+osf_ngetsockname
5523218
+osf_nrecvfrom
5523218
+osf_nrecvmsg
5523218
+osf_nsendmsg
5523218
+osf_ntp_adjtime
5523218
+osf_ntp_gettime
5523218
+osf_old_creat
5523218
+osf_old_fstat
5523218
+osf_old_getpgrp
5523218
+osf_old_killpg
5523218
+osf_old_lstat
5523218
+osf_old_open
5523218
+osf_old_sigaction
5523218
+osf_old_sigblock
5523218
+osf_old_sigreturn
5523218
+osf_old_sigsetmask
5523218
+osf_old_sigvec
5523218
+osf_old_stat
5523218
+osf_old_vadvise
5523218
+osf_old_vtrace
5523218
+osf_old_wait
5523218
+osf_oldquota
5523218
+osf_pathconf
5523218
+osf_pid_block
5523218
+osf_pid_unblock
5523218
+osf_plock
5523218
+osf_priocntlset
5523218
+osf_profil
5523218
+osf_proplist_syscall
5523218
+osf_reboot
5523218
+osf_revoke
5523218
+osf_sbrk
5523218
+osf_security
5523218
+osf_select
5523218
+osf_set_program_attributes
5523218
+osf_set_speculative
5523218
+osf_sethostid
5523218
+osf_setitimer
5523218
+osf_setlogin
5523218
+osf_setsysinfo
5523218
+osf_settimeofday
5523218
+osf_shmat
5523218
+osf_signal
5523218
+osf_sigprocmask
5523218
+osf_sigsendset
5523218
+osf_sigstack
5523218
+osf_sigwaitprim
5523218
+osf_sstk
5523218
+osf_stat
5523218
+osf_statfs
5523218
+osf_statfs64
5523218
+osf_subsys_info
5523218
+osf_swapctl
5523218
+osf_swapon
5523218
+osf_syscall
5523218
+osf_sysinfo
5523218
+osf_table
5523218
+osf_uadmin
5523218
+osf_usleep_thread
5523218
+osf_uswitch
5523218
+osf_utc_adjtime
5523218
+osf_utc_gettime
5523218
+osf_utimes
5523218
+osf_utsname
5523218
+osf_wait4
5523218
+osf_waitid
5523218
+pause
5523218
+pciconfig_iobase
5523218
+pciconfig_read
5523218
+pciconfig_write
5523218
+perf_event_open
5523218
+perfctr
5523218
+perfmonctl
5523218
+personality
5523218
+pipe
5523218
+pipe2
5523218
+pivot_root
5523218
+pkey_alloc
5523218
+pkey_free
5523218
+pkey_mprotect
5523218
+poll
5523218
+ppoll
5523218
+prctl
5523218
+pread64
5523218
+preadv
5523218
+preadv2
5523218
+prlimit64
5523218
+process_vm_readv
5523218
+process_vm_writev
5523218
+prof
5523218
+profil
5523218
+pselect6
5523218
+ptrace
5523218
+putpmsg
5523218
+pwrite64
5523218
+pwritev
5523218
+pwritev2
5523218
+query_module
5523218
+quotactl
5523218
+read
5523218
+readahead
5523218
+readdir
5523218
+readlink
5523218
+readlinkat
5523218
+readv
5523218
+reboot
5523218
+recv
5523218
+recvfrom
5523218
+recvmmsg
5523218
+recvmsg
5523218
+remap_file_pages
5523218
+removexattr
5523218
+rename
5523218
+renameat
5523218
+renameat2
5523218
+request_key
5523218
+restart_syscall
5523218
+rmdir
5523218
+rt_sigaction
5523218
+rt_sigpending
5523218
+rt_sigprocmask
5523218
+rt_sigqueueinfo
5523218
+rt_sigreturn
5523218
+rt_sigsuspend
5523218
+rt_sigtimedwait
5523218
+rt_tgsigqueueinfo
5523218
+rtas
1a3836a
+s390_guarded_storage
5523218
+s390_pci_mmio_read
5523218
+s390_pci_mmio_write
5523218
+s390_runtime_instr
5523218
+sched_get_affinity
5523218
+sched_get_priority_max
5523218
+sched_get_priority_min
5523218
+sched_getaffinity
5523218
+sched_getattr
5523218
+sched_getparam
5523218
+sched_getscheduler
5523218
+sched_rr_get_interval
5523218
+sched_set_affinity
5523218
+sched_setaffinity
5523218
+sched_setattr
5523218
+sched_setparam
5523218
+sched_setscheduler
5523218
+sched_yield
5523218
+seccomp
5523218
+security
5523218
+select
5523218
+semctl
5523218
+semget
5523218
+semop
5523218
+semtimedop
5523218
+send
5523218
+sendfile
5523218
+sendfile64
5523218
+sendmmsg
5523218
+sendmsg
5523218
+sendto
5523218
+set_mempolicy
5523218
+set_robust_list
5523218
+set_thread_area
5523218
+set_tid_address
5523218
+setdomainname
5523218
+setfsgid
5523218
+setfsgid32
5523218
+setfsuid
5523218
+setfsuid32
5523218
+setgid
5523218
+setgid32
5523218
+setgroups
5523218
+setgroups32
5523218
+sethae
5523218
+sethostname
5523218
+setitimer
5523218
+setns
5523218
+setpgid
5523218
+setpgrp
5523218
+setpriority
5523218
+setregid
5523218
+setregid32
5523218
+setresgid
5523218
+setresgid32
5523218
+setresuid
5523218
+setresuid32
5523218
+setreuid
5523218
+setreuid32
5523218
+setrlimit
5523218
+setsid
5523218
+setsockopt
5523218
+settimeofday
5523218
+setuid
5523218
+setuid32
5523218
+setxattr
5523218
+sgetmask
5523218
+shmat
5523218
+shmctl
5523218
+shmdt
5523218
+shmget
5523218
+shutdown
5523218
+sigaction
5523218
+sigaltstack
5523218
+signal
5523218
+signalfd
5523218
+signalfd4
5523218
+sigpending
5523218
+sigprocmask
5523218
+sigreturn
5523218
+sigsuspend
5523218
+socket
5523218
+socketcall
5523218
+socketpair
5523218
+splice
5523218
+spu_create
5523218
+spu_run
5523218
+ssetmask
5523218
+stat
5523218
+stat64
5523218
+statfs
5523218
+statfs64
5523218
+statx
5523218
+stime
5523218
+stty
5523218
+subpage_prot
5523218
+swapcontext
5523218
+swapoff
5523218
+swapon
5523218
+switch_endian
5523218
+symlink
5523218
+symlinkat
5523218
+sync
5523218
+sync_file_range
5523218
+sync_file_range2
5523218
+syncfs
5523218
+sys_debug_setcontext
5523218
+sys_epoll_create
5523218
+sys_epoll_ctl
5523218
+sys_epoll_wait
5523218
+syscall
5523218
+sysfs
5523218
+sysinfo
5523218
+syslog
5523218
+sysmips
5523218
+tee
5523218
+tgkill
5523218
+time
5523218
+timer_create
5523218
+timer_delete
5523218
+timer_getoverrun
5523218
+timer_gettime
5523218
+timer_settime
5523218
+timerfd
5523218
+timerfd_create
5523218
+timerfd_gettime
5523218
+timerfd_settime
5523218
+times
5523218
+tkill
5523218
+truncate
5523218
+truncate64
5523218
+tuxcall
5523218
+ugetrlimit
5523218
+ulimit
5523218
+umask
5523218
+umount
5523218
+umount2
5523218
+uname
5523218
+unlink
5523218
+unlinkat
5523218
+unshare
5523218
+uselib
5523218
+userfaultfd
5523218
+ustat
5523218
+utime
5523218
+utimensat
5523218
+utimes
5523218
+utrap_install
5523218
+vfork
5523218
+vhangup
5523218
+vm86
5523218
+vm86old
5523218
+vmsplice
5523218
+vserver
5523218
+wait4
5523218
+waitid
5523218
+waitpid
5523218
+write
5523218
+writev