dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
b7dd4d
From f20ccc0d505eccd59bb3814f59a63ea036be5bd5 Mon Sep 17 00:00:00 2001
b7dd4d
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
b7dd4d
Date: Tue, 18 Aug 2020 16:27:20 +0200
b7dd4d
Subject: [PATCH] meson: add syscall-names-update target
b7dd4d
b7dd4d
The calls to find_program("tools/*") are moved earlier so they can be used
b7dd4d
in libshared/ (and it doesn't make sense to split them).
b7dd4d
b7dd4d
(cherry picked from commit 47354b440e90626c320d8f142cb742ff569e3a40)
b7dd4d
b7dd4d
Related: #2040247
b7dd4d
---
b7dd4d
 meson.build                   |  13 +-
b7dd4d
 src/shared/meson.build        |   6 +
b7dd4d
 src/shared/syscall-names.text | 597 ++++++++++++++++++++++++++++++++++
b7dd4d
 tools/syscall-names-update.sh |   6 +
b7dd4d
 4 files changed, 617 insertions(+), 5 deletions(-)
b7dd4d
 create mode 100644 src/shared/syscall-names.text
b7dd4d
 create mode 100755 tools/syscall-names-update.sh
b7dd4d
b7dd4d
diff --git a/meson.build b/meson.build
b7dd4d
index 57de947367..6729a9ea5e 100644
b7dd4d
--- a/meson.build
b7dd4d
+++ b/meson.build
b7dd4d
@@ -1417,6 +1417,14 @@ install_libsystemd_static = static_library(
b7dd4d
 
b7dd4d
 ############################################################
b7dd4d
 
b7dd4d
+hwdb_update_sh = find_program('tools/meson-hwdb-update.sh')
b7dd4d
+make_directive_index_py = find_program('tools/make-directive-index.py')
b7dd4d
+make_man_index_py = find_program('tools/make-man-index.py')
b7dd4d
+syscall_names_update_sh = find_program('tools/syscall-names-update.sh')
b7dd4d
+xml_helper_py = find_program('tools/xml_helper.py')
b7dd4d
+
b7dd4d
+############################################################
b7dd4d
+
b7dd4d
 # binaries that have --help and are intended for use by humans,
b7dd4d
 # usually, but not always, installed in /bin.
b7dd4d
 public_programs = []
b7dd4d
@@ -2721,11 +2729,6 @@ run_target('fuzzers',
b7dd4d
 
b7dd4d
 ############################################################
b7dd4d
 
b7dd4d
-make_directive_index_py = find_program('tools/make-directive-index.py')
b7dd4d
-make_man_index_py = find_program('tools/make-man-index.py')
b7dd4d
-xml_helper_py = find_program('tools/xml_helper.py')
b7dd4d
-hwdb_update_sh = find_program('tools/meson-hwdb-update.sh')
b7dd4d
-
b7dd4d
 subdir('units')
b7dd4d
 subdir('sysctl.d')
b7dd4d
 subdir('sysusers.d')
b7dd4d
diff --git a/src/shared/meson.build b/src/shared/meson.build
b7dd4d
index d0a1bba4c6..c9dd0a3a4e 100644
b7dd4d
--- a/src/shared/meson.build
b7dd4d
+++ b/src/shared/meson.build
b7dd4d
@@ -165,3 +165,9 @@ libshared = shared_library(
b7dd4d
         dependencies : libshared_deps,
b7dd4d
         install : true,
b7dd4d
         install_dir : rootlibexecdir)
b7dd4d
+
b7dd4d
+############################################################
b7dd4d
+
b7dd4d
+run_target(
b7dd4d
+        'syscall-names-update',
b7dd4d
+        command : [syscall_names_update_sh, meson.current_source_dir()])
b7dd4d
diff --git a/src/shared/syscall-names.text b/src/shared/syscall-names.text
b7dd4d
new file mode 100644
b7dd4d
index 0000000000..40d18a8894
b7dd4d
--- /dev/null
b7dd4d
+++ b/src/shared/syscall-names.text
b7dd4d
@@ -0,0 +1,597 @@
b7dd4d
+_llseek
b7dd4d
+_newselect
b7dd4d
+_sysctl
b7dd4d
+accept
b7dd4d
+accept4
b7dd4d
+access
b7dd4d
+acct
b7dd4d
+add_key
b7dd4d
+adjtimex
b7dd4d
+alarm
b7dd4d
+arc_gettls
b7dd4d
+arc_settls
b7dd4d
+arc_usr_cmpxchg
b7dd4d
+arch_prctl
b7dd4d
+arm_fadvise64_64
b7dd4d
+arm_sync_file_range
b7dd4d
+atomic_barrier
b7dd4d
+atomic_cmpxchg_32
b7dd4d
+bdflush
b7dd4d
+bfin_spinlock
b7dd4d
+bind
b7dd4d
+bpf
b7dd4d
+brk
b7dd4d
+cache_sync
b7dd4d
+cachectl
b7dd4d
+cacheflush
b7dd4d
+capget
b7dd4d
+capset
b7dd4d
+chdir
b7dd4d
+chmod
b7dd4d
+chown
b7dd4d
+chown32
b7dd4d
+chroot
b7dd4d
+clock_adjtime
b7dd4d
+clock_adjtime64
b7dd4d
+clock_getres
b7dd4d
+clock_getres_time64
b7dd4d
+clock_gettime
b7dd4d
+clock_gettime64
b7dd4d
+clock_nanosleep
b7dd4d
+clock_nanosleep_time64
b7dd4d
+clock_settime
b7dd4d
+clock_settime64
b7dd4d
+clone
b7dd4d
+clone2
b7dd4d
+clone3
b7dd4d
+close
b7dd4d
+close_range
b7dd4d
+connect
b7dd4d
+copy_file_range
b7dd4d
+creat
b7dd4d
+create_module
b7dd4d
+delete_module
b7dd4d
+dipc
b7dd4d
+dup
b7dd4d
+dup2
b7dd4d
+dup3
b7dd4d
+epoll_create
b7dd4d
+epoll_create1
b7dd4d
+epoll_ctl
b7dd4d
+epoll_ctl_old
b7dd4d
+epoll_pwait
b7dd4d
+epoll_wait
b7dd4d
+epoll_wait_old
b7dd4d
+eventfd
b7dd4d
+eventfd2
b7dd4d
+exec_with_loader
b7dd4d
+execv
b7dd4d
+execve
b7dd4d
+execveat
b7dd4d
+exit
b7dd4d
+exit_group
b7dd4d
+faccessat
b7dd4d
+faccessat2
b7dd4d
+fadvise64
b7dd4d
+fadvise64_64
b7dd4d
+fallocate
b7dd4d
+fanotify_init
b7dd4d
+fanotify_mark
b7dd4d
+fchdir
b7dd4d
+fchmod
b7dd4d
+fchmodat
b7dd4d
+fchown
b7dd4d
+fchown32
b7dd4d
+fchownat
b7dd4d
+fcntl
b7dd4d
+fcntl64
b7dd4d
+fdatasync
b7dd4d
+fgetxattr
b7dd4d
+finit_module
b7dd4d
+flistxattr
b7dd4d
+flock
b7dd4d
+fork
b7dd4d
+fp_udfiex_crtl
b7dd4d
+fremovexattr
b7dd4d
+fsconfig
b7dd4d
+fsetxattr
b7dd4d
+fsmount
b7dd4d
+fsopen
b7dd4d
+fspick
b7dd4d
+fstat
b7dd4d
+fstat64
b7dd4d
+fstatat64
b7dd4d
+fstatfs
b7dd4d
+fstatfs64
b7dd4d
+fsync
b7dd4d
+ftruncate
b7dd4d
+ftruncate64
b7dd4d
+futex
b7dd4d
+futex_time64
b7dd4d
+futimesat
b7dd4d
+get_kernel_syms
b7dd4d
+get_mempolicy
b7dd4d
+get_robust_list
b7dd4d
+get_thread_area
b7dd4d
+getcpu
b7dd4d
+getcwd
b7dd4d
+getdents
b7dd4d
+getdents64
b7dd4d
+getdomainname
b7dd4d
+getdtablesize
b7dd4d
+getegid
b7dd4d
+getegid32
b7dd4d
+geteuid
b7dd4d
+geteuid32
b7dd4d
+getgid
b7dd4d
+getgid32
b7dd4d
+getgroups
b7dd4d
+getgroups32
b7dd4d
+gethostname
b7dd4d
+getitimer
b7dd4d
+getpagesize
b7dd4d
+getpeername
b7dd4d
+getpgid
b7dd4d
+getpgrp
b7dd4d
+getpid
b7dd4d
+getpmsg
b7dd4d
+getppid
b7dd4d
+getpriority
b7dd4d
+getrandom
b7dd4d
+getresgid
b7dd4d
+getresgid32
b7dd4d
+getresuid
b7dd4d
+getresuid32
b7dd4d
+getrlimit
b7dd4d
+getrusage
b7dd4d
+getsid
b7dd4d
+getsockname
b7dd4d
+getsockopt
b7dd4d
+gettid
b7dd4d
+gettimeofday
b7dd4d
+getuid
b7dd4d
+getuid32
b7dd4d
+getunwind
b7dd4d
+getxattr
b7dd4d
+getxgid
b7dd4d
+getxpid
b7dd4d
+getxuid
b7dd4d
+idle
b7dd4d
+init_module
b7dd4d
+inotify_add_watch
b7dd4d
+inotify_init
b7dd4d
+inotify_init1
b7dd4d
+inotify_rm_watch
b7dd4d
+io_cancel
b7dd4d
+io_destroy
b7dd4d
+io_getevents
b7dd4d
+io_pgetevents
b7dd4d
+io_pgetevents_time64
b7dd4d
+io_setup
b7dd4d
+io_submit
b7dd4d
+io_uring_enter
b7dd4d
+io_uring_register
b7dd4d
+io_uring_setup
b7dd4d
+ioctl
b7dd4d
+ioperm
b7dd4d
+iopl
b7dd4d
+ioprio_get
b7dd4d
+ioprio_set
b7dd4d
+ipc
b7dd4d
+kcmp
b7dd4d
+kern_features
b7dd4d
+kexec_file_load
b7dd4d
+kexec_load
b7dd4d
+keyctl
b7dd4d
+kill
b7dd4d
+lchown
b7dd4d
+lchown32
b7dd4d
+lgetxattr
b7dd4d
+link
b7dd4d
+linkat
b7dd4d
+listen
b7dd4d
+listxattr
b7dd4d
+llistxattr
b7dd4d
+lookup_dcookie
b7dd4d
+lremovexattr
b7dd4d
+lseek
b7dd4d
+lsetxattr
b7dd4d
+lstat
b7dd4d
+lstat64
b7dd4d
+madvise
b7dd4d
+mbind
b7dd4d
+membarrier
b7dd4d
+memfd_create
b7dd4d
+memory_ordering
b7dd4d
+migrate_pages
b7dd4d
+mincore
b7dd4d
+mkdir
b7dd4d
+mkdirat
b7dd4d
+mknod
b7dd4d
+mknodat
b7dd4d
+mlock
b7dd4d
+mlock2
b7dd4d
+mlockall
b7dd4d
+mmap
b7dd4d
+mmap2
b7dd4d
+modify_ldt
b7dd4d
+mount
b7dd4d
+move_mount
b7dd4d
+move_pages
b7dd4d
+mprotect
b7dd4d
+mq_getsetattr
b7dd4d
+mq_notify
b7dd4d
+mq_open
b7dd4d
+mq_timedreceive
b7dd4d
+mq_timedreceive_time64
b7dd4d
+mq_timedsend
b7dd4d
+mq_timedsend_time64
b7dd4d
+mq_unlink
b7dd4d
+mremap
b7dd4d
+msgctl
b7dd4d
+msgget
b7dd4d
+msgrcv
b7dd4d
+msgsnd
b7dd4d
+msync
b7dd4d
+multiplexer
b7dd4d
+munlock
b7dd4d
+munlockall
b7dd4d
+munmap
b7dd4d
+name_to_handle_at
b7dd4d
+nanosleep
b7dd4d
+newfstatat
b7dd4d
+nfsservctl
b7dd4d
+ni_syscall
b7dd4d
+nice
b7dd4d
+old_adjtimex
b7dd4d
+old_getpagesize
b7dd4d
+oldfstat
b7dd4d
+oldlstat
b7dd4d
+oldolduname
b7dd4d
+oldstat
b7dd4d
+oldumount
b7dd4d
+olduname
b7dd4d
+open
b7dd4d
+open_by_handle_at
b7dd4d
+open_tree
b7dd4d
+openat
b7dd4d
+openat2
b7dd4d
+or1k_atomic
b7dd4d
+osf_adjtime
b7dd4d
+osf_afs_syscall
b7dd4d
+osf_alt_plock
b7dd4d
+osf_alt_setsid
b7dd4d
+osf_alt_sigpending
b7dd4d
+osf_asynch_daemon
b7dd4d
+osf_audcntl
b7dd4d
+osf_audgen
b7dd4d
+osf_chflags
b7dd4d
+osf_execve
b7dd4d
+osf_exportfs
b7dd4d
+osf_fchflags
b7dd4d
+osf_fdatasync
b7dd4d
+osf_fpathconf
b7dd4d
+osf_fstat
b7dd4d
+osf_fstatfs
b7dd4d
+osf_fstatfs64
b7dd4d
+osf_fuser
b7dd4d
+osf_getaddressconf
b7dd4d
+osf_getdirentries
b7dd4d
+osf_getdomainname
b7dd4d
+osf_getfh
b7dd4d
+osf_getfsstat
b7dd4d
+osf_gethostid
b7dd4d
+osf_getitimer
b7dd4d
+osf_getlogin
b7dd4d
+osf_getmnt
b7dd4d
+osf_getrusage
b7dd4d
+osf_getsysinfo
b7dd4d
+osf_gettimeofday
b7dd4d
+osf_kloadcall
b7dd4d
+osf_kmodcall
b7dd4d
+osf_lstat
b7dd4d
+osf_memcntl
b7dd4d
+osf_mincore
b7dd4d
+osf_mount
b7dd4d
+osf_mremap
b7dd4d
+osf_msfs_syscall
b7dd4d
+osf_msleep
b7dd4d
+osf_mvalid
b7dd4d
+osf_mwakeup
b7dd4d
+osf_naccept
b7dd4d
+osf_nfssvc
b7dd4d
+osf_ngetpeername
b7dd4d
+osf_ngetsockname
b7dd4d
+osf_nrecvfrom
b7dd4d
+osf_nrecvmsg
b7dd4d
+osf_nsendmsg
b7dd4d
+osf_ntp_adjtime
b7dd4d
+osf_ntp_gettime
b7dd4d
+osf_old_creat
b7dd4d
+osf_old_fstat
b7dd4d
+osf_old_getpgrp
b7dd4d
+osf_old_killpg
b7dd4d
+osf_old_lstat
b7dd4d
+osf_old_open
b7dd4d
+osf_old_sigaction
b7dd4d
+osf_old_sigblock
b7dd4d
+osf_old_sigreturn
b7dd4d
+osf_old_sigsetmask
b7dd4d
+osf_old_sigvec
b7dd4d
+osf_old_stat
b7dd4d
+osf_old_vadvise
b7dd4d
+osf_old_vtrace
b7dd4d
+osf_old_wait
b7dd4d
+osf_oldquota
b7dd4d
+osf_pathconf
b7dd4d
+osf_pid_block
b7dd4d
+osf_pid_unblock
b7dd4d
+osf_plock
b7dd4d
+osf_priocntlset
b7dd4d
+osf_profil
b7dd4d
+osf_proplist_syscall
b7dd4d
+osf_reboot
b7dd4d
+osf_revoke
b7dd4d
+osf_sbrk
b7dd4d
+osf_security
b7dd4d
+osf_select
b7dd4d
+osf_set_program_attributes
b7dd4d
+osf_set_speculative
b7dd4d
+osf_sethostid
b7dd4d
+osf_setitimer
b7dd4d
+osf_setlogin
b7dd4d
+osf_setsysinfo
b7dd4d
+osf_settimeofday
b7dd4d
+osf_shmat
b7dd4d
+osf_signal
b7dd4d
+osf_sigprocmask
b7dd4d
+osf_sigsendset
b7dd4d
+osf_sigstack
b7dd4d
+osf_sigwaitprim
b7dd4d
+osf_sstk
b7dd4d
+osf_stat
b7dd4d
+osf_statfs
b7dd4d
+osf_statfs64
b7dd4d
+osf_subsys_info
b7dd4d
+osf_swapctl
b7dd4d
+osf_swapon
b7dd4d
+osf_syscall
b7dd4d
+osf_sysinfo
b7dd4d
+osf_table
b7dd4d
+osf_uadmin
b7dd4d
+osf_usleep_thread
b7dd4d
+osf_uswitch
b7dd4d
+osf_utc_adjtime
b7dd4d
+osf_utc_gettime
b7dd4d
+osf_utimes
b7dd4d
+osf_utsname
b7dd4d
+osf_wait4
b7dd4d
+osf_waitid
b7dd4d
+pause
b7dd4d
+pciconfig_iobase
b7dd4d
+pciconfig_read
b7dd4d
+pciconfig_write
b7dd4d
+perf_event_open
b7dd4d
+perfctr
b7dd4d
+perfmonctl
b7dd4d
+personality
b7dd4d
+pidfd_getfd
b7dd4d
+pidfd_open
b7dd4d
+pidfd_send_signal
b7dd4d
+pipe
b7dd4d
+pipe2
b7dd4d
+pivot_root
b7dd4d
+pkey_alloc
b7dd4d
+pkey_free
b7dd4d
+pkey_mprotect
b7dd4d
+poll
b7dd4d
+ppoll
b7dd4d
+ppoll_time64
b7dd4d
+prctl
b7dd4d
+pread64
b7dd4d
+preadv
b7dd4d
+preadv2
b7dd4d
+prlimit64
b7dd4d
+process_vm_readv
b7dd4d
+process_vm_writev
b7dd4d
+pselect6
b7dd4d
+pselect6_time64
b7dd4d
+ptrace
b7dd4d
+pwrite64
b7dd4d
+pwritev
b7dd4d
+pwritev2
b7dd4d
+query_module
b7dd4d
+quotactl
b7dd4d
+read
b7dd4d
+readahead
b7dd4d
+readdir
b7dd4d
+readlink
b7dd4d
+readlinkat
b7dd4d
+readv
b7dd4d
+reboot
b7dd4d
+recv
b7dd4d
+recvfrom
b7dd4d
+recvmmsg
b7dd4d
+recvmmsg_time64
b7dd4d
+recvmsg
b7dd4d
+remap_file_pages
b7dd4d
+removexattr
b7dd4d
+rename
b7dd4d
+renameat
b7dd4d
+renameat2
b7dd4d
+request_key
b7dd4d
+restart_syscall
b7dd4d
+riscv_flush_icache
b7dd4d
+rmdir
b7dd4d
+rseq
b7dd4d
+rt_sigaction
b7dd4d
+rt_sigpending
b7dd4d
+rt_sigprocmask
b7dd4d
+rt_sigqueueinfo
b7dd4d
+rt_sigreturn
b7dd4d
+rt_sigsuspend
b7dd4d
+rt_sigtimedwait
b7dd4d
+rt_sigtimedwait_time64
b7dd4d
+rt_tgsigqueueinfo
b7dd4d
+rtas
b7dd4d
+s390_guarded_storage
b7dd4d
+s390_pci_mmio_read
b7dd4d
+s390_pci_mmio_write
b7dd4d
+s390_runtime_instr
b7dd4d
+s390_sthyi
b7dd4d
+sched_get_affinity
b7dd4d
+sched_get_priority_max
b7dd4d
+sched_get_priority_min
b7dd4d
+sched_getaffinity
b7dd4d
+sched_getattr
b7dd4d
+sched_getparam
b7dd4d
+sched_getscheduler
b7dd4d
+sched_rr_get_interval
b7dd4d
+sched_rr_get_interval_time64
b7dd4d
+sched_set_affinity
b7dd4d
+sched_setaffinity
b7dd4d
+sched_setattr
b7dd4d
+sched_setparam
b7dd4d
+sched_setscheduler
b7dd4d
+sched_yield
b7dd4d
+seccomp
b7dd4d
+select
b7dd4d
+semctl
b7dd4d
+semget
b7dd4d
+semop
b7dd4d
+semtimedop
b7dd4d
+semtimedop_time64
b7dd4d
+send
b7dd4d
+sendfile
b7dd4d
+sendfile64
b7dd4d
+sendmmsg
b7dd4d
+sendmsg
b7dd4d
+sendto
b7dd4d
+set_mempolicy
b7dd4d
+set_robust_list
b7dd4d
+set_thread_area
b7dd4d
+set_tid_address
b7dd4d
+setdomainname
b7dd4d
+setfsgid
b7dd4d
+setfsgid32
b7dd4d
+setfsuid
b7dd4d
+setfsuid32
b7dd4d
+setgid
b7dd4d
+setgid32
b7dd4d
+setgroups
b7dd4d
+setgroups32
b7dd4d
+sethae
b7dd4d
+sethostname
b7dd4d
+setitimer
b7dd4d
+setns
b7dd4d
+setpgid
b7dd4d
+setpgrp
b7dd4d
+setpriority
b7dd4d
+setregid
b7dd4d
+setregid32
b7dd4d
+setresgid
b7dd4d
+setresgid32
b7dd4d
+setresuid
b7dd4d
+setresuid32
b7dd4d
+setreuid
b7dd4d
+setreuid32
b7dd4d
+setrlimit
b7dd4d
+setsid
b7dd4d
+setsockopt
b7dd4d
+settimeofday
b7dd4d
+setuid
b7dd4d
+setuid32
b7dd4d
+setxattr
b7dd4d
+sgetmask
b7dd4d
+shmat
b7dd4d
+shmctl
b7dd4d
+shmdt
b7dd4d
+shmget
b7dd4d
+shutdown
b7dd4d
+sigaction
b7dd4d
+sigaltstack
b7dd4d
+signal
b7dd4d
+signalfd
b7dd4d
+signalfd4
b7dd4d
+sigpending
b7dd4d
+sigprocmask
b7dd4d
+sigreturn
b7dd4d
+sigsuspend
b7dd4d
+socket
b7dd4d
+socketcall
b7dd4d
+socketpair
b7dd4d
+splice
b7dd4d
+spu_create
b7dd4d
+spu_run
b7dd4d
+ssetmask
b7dd4d
+stat
b7dd4d
+stat64
b7dd4d
+statfs
b7dd4d
+statfs64
b7dd4d
+statx
b7dd4d
+stime
b7dd4d
+subpage_prot
b7dd4d
+swapcontext
b7dd4d
+swapoff
b7dd4d
+swapon
b7dd4d
+switch_endian
b7dd4d
+symlink
b7dd4d
+symlinkat
b7dd4d
+sync
b7dd4d
+sync_file_range
b7dd4d
+sync_file_range2
b7dd4d
+syncfs
b7dd4d
+sys_debug_setcontext
b7dd4d
+syscall
b7dd4d
+sysfs
b7dd4d
+sysinfo
b7dd4d
+syslog
b7dd4d
+sysmips
b7dd4d
+tee
b7dd4d
+tgkill
b7dd4d
+time
b7dd4d
+timer_create
b7dd4d
+timer_delete
b7dd4d
+timer_getoverrun
b7dd4d
+timer_gettime
b7dd4d
+timer_gettime64
b7dd4d
+timer_settime
b7dd4d
+timer_settime64
b7dd4d
+timerfd
b7dd4d
+timerfd_create
b7dd4d
+timerfd_gettime
b7dd4d
+timerfd_gettime64
b7dd4d
+timerfd_settime
b7dd4d
+timerfd_settime64
b7dd4d
+times
b7dd4d
+tkill
b7dd4d
+truncate
b7dd4d
+truncate64
b7dd4d
+udftrap
b7dd4d
+ugetrlimit
b7dd4d
+umask
b7dd4d
+umount
b7dd4d
+umount2
b7dd4d
+uname
b7dd4d
+unlink
b7dd4d
+unlinkat
b7dd4d
+unshare
b7dd4d
+uselib
b7dd4d
+userfaultfd
b7dd4d
+ustat
b7dd4d
+utime
b7dd4d
+utimensat
b7dd4d
+utimensat_time64
b7dd4d
+utimes
b7dd4d
+utimesat
b7dd4d
+utrap_install
b7dd4d
+vfork
b7dd4d
+vhangup
b7dd4d
+vm86
b7dd4d
+vm86old
b7dd4d
+vmsplice
b7dd4d
+wait4
b7dd4d
+waitid
b7dd4d
+waitpid
b7dd4d
+write
b7dd4d
+writev
b7dd4d
diff --git a/tools/syscall-names-update.sh b/tools/syscall-names-update.sh
b7dd4d
new file mode 100755
b7dd4d
index 0000000000..c884b93cda
b7dd4d
--- /dev/null
b7dd4d
+++ b/tools/syscall-names-update.sh
b7dd4d
@@ -0,0 +1,6 @@
b7dd4d
+#!/bin/sh
b7dd4d
+set -eu
b7dd4d
+
b7dd4d
+cd "$1"
b7dd4d
+
b7dd4d
+curl -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'