[libc-commits] [libc] [libc] remove include_file headergen usage (PR #96970)
via libc-commits
libc-commits at lists.llvm.org
Thu Jun 27 14:43:25 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Michael Jones (michaelrj-google)
<details>
<summary>Changes</summary>
Previously headergen had a mechanism to copy the contents of one file
inot another. This wasn't ever used properly, and isn't supported by the
new headergen design. We will investigate better ways to support
different syscall definitions in future.
---
Patch is 88.02 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/96970.diff
5 Files Affected:
- (removed) libc/config/linux/platform_defs.h.inc (-13)
- (removed) libc/config/linux/signal.h.in (-15)
- (removed) libc/config/linux/syscall_numbers.h.inc (-2347)
- (modified) libc/include/CMakeLists.txt (+14-26)
- (modified) libc/include/sys/syscall.h.def (+2340-4)
``````````diff
diff --git a/libc/config/linux/platform_defs.h.inc b/libc/config/linux/platform_defs.h.inc
deleted file mode 100644
index 495d07c80cf29..0000000000000
--- a/libc/config/linux/platform_defs.h.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-//===----- Definition of platform specific macros for ELF paltforms -------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-%%begin()
-
-#define ENTRYPOINT_SECTION_ATTRIBUTE(name) \
- __attribute__((section(".llvm.libc.entrypoint."#name)))
-#define LLVM_LIBC_ENTRYPOINT(name) ENTRYPOINT_SECTION_ATTRIBUTE(name) name
diff --git a/libc/config/linux/signal.h.in b/libc/config/linux/signal.h.in
deleted file mode 100644
index fd0b41d3de5b2..0000000000000
--- a/libc/config/linux/signal.h.in
+++ /dev/null
@@ -1,15 +0,0 @@
-//===-- Linux specific signal.h definitions -------------------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-%%begin()
-
-#include <linux/signal.h>
-
-#ifndef __LLVM_LIBC_INTERNAL_SIGACTION
-#define sigaction __sigaction
-#endif
diff --git a/libc/config/linux/syscall_numbers.h.inc b/libc/config/linux/syscall_numbers.h.inc
deleted file mode 100644
index 4a19d9a08875e..0000000000000
--- a/libc/config/linux/syscall_numbers.h.inc
+++ /dev/null
@@ -1,2347 +0,0 @@
-//===---------------------- Linux syscall number macros -------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-%%begin()
-
-#include <asm/unistd.h>
-
-#ifdef __NR_FAST_atomic_update
-#define SYS_FAST_atomic_update __NR_FAST_atomic_update
-#endif
-
-#ifdef __NR_FAST_cmpxchg
-#define SYS_FAST_cmpxchg __NR_FAST_cmpxchg
-#endif
-
-#ifdef __NR_FAST_cmpxchg64
-#define SYS_FAST_cmpxchg64 __NR_FAST_cmpxchg64
-#endif
-
-#ifdef __NR__llseek
-#define SYS__llseek __NR__llseek
-#endif
-
-#ifdef __NR__newselect
-#define SYS__newselect __NR__newselect
-#endif
-
-#ifdef __NR__sysctl
-#define SYS__sysctl __NR__sysctl
-#endif
-
-#ifdef __NR_accept
-#define SYS_accept __NR_accept
-#endif
-
-#ifdef __NR_accept4
-#define SYS_accept4 __NR_accept4
-#endif
-
-#ifdef __NR_access
-#define SYS_access __NR_access
-#endif
-
-#ifdef __NR_acct
-#define SYS_acct __NR_acct
-#endif
-
-#ifdef __NR_acl_get
-#define SYS_acl_get __NR_acl_get
-#endif
-
-#ifdef __NR_acl_set
-#define SYS_acl_set __NR_acl_set
-#endif
-
-#ifdef __NR_add_key
-#define SYS_add_key __NR_add_key
-#endif
-
-#ifdef __NR_adjtimex
-#define SYS_adjtimex __NR_adjtimex
-#endif
-
-#ifdef __NR_afs_syscall
-#define SYS_afs_syscall __NR_afs_syscall
-#endif
-
-#ifdef __NR_alarm
-#define SYS_alarm __NR_alarm
-#endif
-
-#ifdef __NR_alloc_hugepages
-#define SYS_alloc_hugepages __NR_alloc_hugepages
-#endif
-
-#ifdef __NR_arch_prctl
-#define SYS_arch_prctl __NR_arch_prctl
-#endif
-
-#ifdef __NR_arm_fadvise64_64
-#define SYS_arm_fadvise64_64 __NR_arm_fadvise64_64
-#endif
-
-#ifdef __NR_arm_sync_file_range
-#define SYS_arm_sync_file_range __NR_arm_sync_file_range
-#endif
-
-#ifdef __NR_atomic_barrier
-#define SYS_atomic_barrier __NR_atomic_barrier
-#endif
-
-#ifdef __NR_atomic_cmpxchg_32
-#define SYS_atomic_cmpxchg_32 __NR_atomic_cmpxchg_32
-#endif
-
-#ifdef __NR_attrctl
-#define SYS_attrctl __NR_attrctl
-#endif
-
-#ifdef __NR_bdflush
-#define SYS_bdflush __NR_bdflush
-#endif
-
-#ifdef __NR_bind
-#define SYS_bind __NR_bind
-#endif
-
-#ifdef __NR_bpf
-#define SYS_bpf __NR_bpf
-#endif
-
-#ifdef __NR_break
-#define SYS_break __NR_break
-#endif
-
-#ifdef __NR_brk
-#define SYS_brk __NR_brk
-#endif
-
-#ifdef __NR_cachectl
-#define SYS_cachectl __NR_cachectl
-#endif
-
-#ifdef __NR_cacheflush
-#define SYS_cacheflush __NR_cacheflush
-#endif
-
-#ifdef __NR_capget
-#define SYS_capget __NR_capget
-#endif
-
-#ifdef __NR_capset
-#define SYS_capset __NR_capset
-#endif
-
-#ifdef __NR_chdir
-#define SYS_chdir __NR_chdir
-#endif
-
-#ifdef __NR_chmod
-#define SYS_chmod __NR_chmod
-#endif
-
-#ifdef __NR_chown
-#define SYS_chown __NR_chown
-#endif
-
-#ifdef __NR_chown32
-#define SYS_chown32 __NR_chown32
-#endif
-
-#ifdef __NR_chroot
-#define SYS_chroot __NR_chroot
-#endif
-
-#ifdef __NR_clock_adjtime
-#define SYS_clock_adjtime __NR_clock_adjtime
-#endif
-
-#ifdef __NR_clock_getres
-#define SYS_clock_getres __NR_clock_getres
-#endif
-
-#ifdef __NR_clock_gettime
-#define SYS_clock_gettime __NR_clock_gettime
-#endif
-
-#ifdef __NR_clock_gettime64
-#define SYS_clock_gettime64 __NR_clock_gettime64
-#endif
-
-#ifdef __NR_clock_nanosleep
-#define SYS_clock_nanosleep __NR_clock_nanosleep
-#endif
-
-#ifdef __NR_clock_nanosleep_time64
-#define SYS_clock_nanosleep_time64 __NR_clock_nanosleep_time64
-#endif
-
-#ifdef __NR_clock_settime
-#define SYS_clock_settime __NR_clock_settime
-#endif
-
-#ifdef __NR_clone
-#define SYS_clone __NR_clone
-#endif
-
-#ifdef __NR_clone2
-#define SYS_clone2 __NR_clone2
-#endif
-
-#ifdef __NR_close
-#define SYS_close __NR_close
-#endif
-
-#ifdef __NR_cmpxchg_badaddr
-#define SYS_cmpxchg_badaddr __NR_cmpxchg_badaddr
-#endif
-
-#ifdef __NR_connect
-#define SYS_connect __NR_connect
-#endif
-
-#ifdef __NR_copy_file_range
-#define SYS_copy_file_range __NR_copy_file_range
-#endif
-
-#ifdef __NR_creat
-#define SYS_creat __NR_creat
-#endif
-
-#ifdef __NR_create_module
-#define SYS_create_module __NR_create_module
-#endif
-
-#ifdef __NR_delete_module
-#define SYS_delete_module __NR_delete_module
-#endif
-
-#ifdef __NR_dipc
-#define SYS_dipc __NR_dipc
-#endif
-
-#ifdef __NR_dup
-#define SYS_dup __NR_dup
-#endif
-
-#ifdef __NR_dup2
-#define SYS_dup2 __NR_dup2
-#endif
-
-#ifdef __NR_dup3
-#define SYS_dup3 __NR_dup3
-#endif
-
-#ifdef __NR_epoll_create
-#define SYS_epoll_create __NR_epoll_create
-#endif
-
-#ifdef __NR_epoll_create1
-#define SYS_epoll_create1 __NR_epoll_create1
-#endif
-
-#ifdef __NR_epoll_ctl
-#define SYS_epoll_ctl __NR_epoll_ctl
-#endif
-
-#ifdef __NR_epoll_ctl_old
-#define SYS_epoll_ctl_old __NR_epoll_ctl_old
-#endif
-
-#ifdef __NR_epoll_pwait
-#define SYS_epoll_pwait __NR_epoll_pwait
-#endif
-
-#ifdef __NR_epoll_pwait2
-#define SYS_epoll_pwait2 __NR_epoll_pwait2
-#endif
-
-#ifdef __NR_epoll_wait
-#define SYS_epoll_wait __NR_epoll_wait
-#endif
-
-#ifdef __NR_epoll_wait_old
-#define SYS_epoll_wait_old __NR_epoll_wait_old
-#endif
-
-#ifdef __NR_eventfd
-#define SYS_eventfd __NR_eventfd
-#endif
-
-#ifdef __NR_eventfd2
-#define SYS_eventfd2 __NR_eventfd2
-#endif
-
-#ifdef __NR_exec_with_loader
-#define SYS_exec_with_loader __NR_exec_with_loader
-#endif
-
-#ifdef __NR_execv
-#define SYS_execv __NR_execv
-#endif
-
-#ifdef __NR_execve
-#define SYS_execve __NR_execve
-#endif
-
-#ifdef __NR_execveat
-#define SYS_execveat __NR_execveat
-#endif
-
-#ifdef __NR_exit
-#define SYS_exit __NR_exit
-#endif
-
-#ifdef __NR_exit_group
-#define SYS_exit_group __NR_exit_group
-#endif
-
-#ifdef __NR_faccessat
-#define SYS_faccessat __NR_faccessat
-#endif
-
-#ifdef __NR_fadvise64
-#define SYS_fadvise64 __NR_fadvise64
-#endif
-
-#ifdef __NR_fadvise64_64
-#define SYS_fadvise64_64 __NR_fadvise64_64
-#endif
-
-#ifdef __NR_fallocate
-#define SYS_fallocate __NR_fallocate
-#endif
-
-#ifdef __NR_fanotify_init
-#define SYS_fanotify_init __NR_fanotify_init
-#endif
-
-#ifdef __NR_fanotify_mark
-#define SYS_fanotify_mark __NR_fanotify_mark
-#endif
-
-#ifdef __NR_fchdir
-#define SYS_fchdir __NR_fchdir
-#endif
-
-#ifdef __NR_fchmod
-#define SYS_fchmod __NR_fchmod
-#endif
-
-#ifdef __NR_fchmodat
-#define SYS_fchmodat __NR_fchmodat
-#endif
-
-#ifdef __NR_fchmodat2
-#define SYS_fchmodat2 __NR_fchmodat2
-#endif
-
-#ifdef __NR_fchown
-#define SYS_fchown __NR_fchown
-#endif
-
-#ifdef __NR_fchown32
-#define SYS_fchown32 __NR_fchown32
-#endif
-
-#ifdef __NR_fchownat
-#define SYS_fchownat __NR_fchownat
-#endif
-
-#ifdef __NR_fcntl
-#define SYS_fcntl __NR_fcntl
-#endif
-
-#ifdef __NR_fcntl64
-#define SYS_fcntl64 __NR_fcntl64
-#endif
-
-#ifdef __NR_fdatasync
-#define SYS_fdatasync __NR_fdatasync
-#endif
-
-#ifdef __NR_fgetxattr
-#define SYS_fgetxattr __NR_fgetxattr
-#endif
-
-#ifdef __NR_finit_module
-#define SYS_finit_module __NR_finit_module
-#endif
-
-#ifdef __NR_flistxattr
-#define SYS_flistxattr __NR_flistxattr
-#endif
-
-#ifdef __NR_flock
-#define SYS_flock __NR_flock
-#endif
-
-#ifdef __NR_fork
-#define SYS_fork __NR_fork
-#endif
-
-#ifdef __NR_free_hugepages
-#define SYS_free_hugepages __NR_free_hugepages
-#endif
-
-#ifdef __NR_fremovexattr
-#define SYS_fremovexattr __NR_fremovexattr
-#endif
-
-#ifdef __NR_fsetxattr
-#define SYS_fsetxattr __NR_fsetxattr
-#endif
-
-#ifdef __NR_fstat
-#define SYS_fstat __NR_fstat
-#endif
-
-#ifdef __NR_fstat64
-#define SYS_fstat64 __NR_fstat64
-#endif
-
-#ifdef __NR_fstatat64
-#define SYS_fstatat64 __NR_fstatat64
-#endif
-
-#ifdef __NR_fstatfs
-#define SYS_fstatfs __NR_fstatfs
-#endif
-
-#ifdef __NR_fstatfs64
-#define SYS_fstatfs64 __NR_fstatfs64
-#endif
-
-#ifdef __NR_fsync
-#define SYS_fsync __NR_fsync
-#endif
-
-#ifdef __NR_ftime
-#define SYS_ftime __NR_ftime
-#endif
-
-#ifdef __NR_ftruncate
-#define SYS_ftruncate __NR_ftruncate
-#endif
-
-#ifdef __NR_ftruncate64
-#define SYS_ftruncate64 __NR_ftruncate64
-#endif
-
-#ifdef __NR_futex
-#define SYS_futex __NR_futex
-#endif
-
-#ifdef __NR_futex_time64
-#define SYS_futex_time64 __NR_futex_time64
-#endif
-
-#ifdef __NR_futimesat
-#define SYS_futimesat __NR_futimesat
-#endif
-
-#ifdef __NR_get_kernel_syms
-#define SYS_get_kernel_syms __NR_get_kernel_syms
-#endif
-
-#ifdef __NR_get_mempolicy
-#define SYS_get_mempolicy __NR_get_mempolicy
-#endif
-
-#ifdef __NR_get_robust_list
-#define SYS_get_robust_list __NR_get_robust_list
-#endif
-
-#ifdef __NR_get_thread_area
-#define SYS_get_thread_area __NR_get_thread_area
-#endif
-
-#ifdef __NR_getcpu
-#define SYS_getcpu __NR_getcpu
-#endif
-
-#ifdef __NR_getcwd
-#define SYS_getcwd __NR_getcwd
-#endif
-
-#ifdef __NR_getdents
-#define SYS_getdents __NR_getdents
-#endif
-
-#ifdef __NR_getdents64
-#define SYS_getdents64 __NR_getdents64
-#endif
-
-#ifdef __NR_getdomainname
-#define SYS_getdomainname __NR_getdomainname
-#endif
-
-#ifdef __NR_getdtablesize
-#define SYS_getdtablesize __NR_getdtablesize
-#endif
-
-#ifdef __NR_getegid
-#define SYS_getegid __NR_getegid
-#endif
-
-#ifdef __NR_getegid32
-#define SYS_getegid32 __NR_getegid32
-#endif
-
-#ifdef __NR_geteuid
-#define SYS_geteuid __NR_geteuid
-#endif
-
-#ifdef __NR_geteuid32
-#define SYS_geteuid32 __NR_geteuid32
-#endif
-
-#ifdef __NR_getgid
-#define SYS_getgid __NR_getgid
-#endif
-
-#ifdef __NR_getgid32
-#define SYS_getgid32 __NR_getgid32
-#endif
-
-#ifdef __NR_getgroups
-#define SYS_getgroups __NR_getgroups
-#endif
-
-#ifdef __NR_getgroups32
-#define SYS_getgroups32 __NR_getgroups32
-#endif
-
-#ifdef __NR_gethostname
-#define SYS_gethostname __NR_gethostname
-#endif
-
-#ifdef __NR_getitimer
-#define SYS_getitimer __NR_getitimer
-#endif
-
-#ifdef __NR_getpagesize
-#define SYS_getpagesize __NR_getpagesize
-#endif
-
-#ifdef __NR_getpeername
-#define SYS_getpeername __NR_getpeername
-#endif
-
-#ifdef __NR_getpgid
-#define SYS_getpgid __NR_getpgid
-#endif
-
-#ifdef __NR_getpgrp
-#define SYS_getpgrp __NR_getpgrp
-#endif
-
-#ifdef __NR_getpid
-#define SYS_getpid __NR_getpid
-#endif
-
-#ifdef __NR_getpmsg
-#define SYS_getpmsg __NR_getpmsg
-#endif
-
-#ifdef __NR_getppid
-#define SYS_getppid __NR_getppid
-#endif
-
-#ifdef __NR_getpriority
-#define SYS_getpriority __NR_getpriority
-#endif
-
-#ifdef __NR_getrandom
-#define SYS_getrandom __NR_getrandom
-#endif
-
-#ifdef __NR_getresgid
-#define SYS_getresgid __NR_getresgid
-#endif
-
-#ifdef __NR_getresgid32
-#define SYS_getresgid32 __NR_getresgid32
-#endif
-
-#ifdef __NR_getresuid
-#define SYS_getresuid __NR_getresuid
-#endif
-
-#ifdef __NR_getresuid32
-#define SYS_getresuid32 __NR_getresuid32
-#endif
-
-#ifdef __NR_getrlimit
-#define SYS_getrlimit __NR_getrlimit
-#endif
-
-#ifdef __NR_getrusage
-#define SYS_getrusage __NR_getrusage
-#endif
-
-#ifdef __NR_getsid
-#define SYS_getsid __NR_getsid
-#endif
-
-#ifdef __NR_getsockname
-#define SYS_getsockname __NR_getsockname
-#endif
-
-#ifdef __NR_getsockopt
-#define SYS_getsockopt __NR_getsockopt
-#endif
-
-#ifdef __NR_gettid
-#define SYS_gettid __NR_gettid
-#endif
-
-#ifdef __NR_gettimeofday
-#define SYS_gettimeofday __NR_gettimeofday
-#endif
-
-#ifdef __NR_getuid
-#define SYS_getuid __NR_getuid
-#endif
-
-#ifdef __NR_getuid32
-#define SYS_getuid32 __NR_getuid32
-#endif
-
-#ifdef __NR_getunwind
-#define SYS_getunwind __NR_getunwind
-#endif
-
-#ifdef __NR_getxattr
-#define SYS_getxattr __NR_getxattr
-#endif
-
-#ifdef __NR_getxgid
-#define SYS_getxgid __NR_getxgid
-#endif
-
-#ifdef __NR_getxpid
-#define SYS_getxpid __NR_getxpid
-#endif
-
-#ifdef __NR_getxuid
-#define SYS_getxuid __NR_getxuid
-#endif
-
-#ifdef __NR_gtty
-#define SYS_gtty __NR_gtty
-#endif
-
-#ifdef __NR_idle
-#define SYS_idle __NR_idle
-#endif
-
-#ifdef __NR_init_module
-#define SYS_init_module __NR_init_module
-#endif
-
-#ifdef __NR_inotify_add_watch
-#define SYS_inotify_add_watch __NR_inotify_add_watch
-#endif
-
-#ifdef __NR_inotify_init
-#define SYS_inotify_init __NR_inotify_init
-#endif
-
-#ifdef __NR_inotify_init1
-#define SYS_inotify_init1 __NR_inotify_init1
-#endif
-
-#ifdef __NR_inotify_rm_watch
-#define SYS_inotify_rm_watch __NR_inotify_rm_watch
-#endif
-
-#ifdef __NR_io_cancel
-#define SYS_io_cancel __NR_io_cancel
-#endif
-
-#ifdef __NR_io_destroy
-#define SYS_io_destroy __NR_io_destroy
-#endif
-
-#ifdef __NR_io_getevents
-#define SYS_io_getevents __NR_io_getevents
-#endif
-
-#ifdef __NR_io_pgetevents
-#define SYS_io_pgetevents __NR_io_pgetevents
-#endif
-
-#ifdef __NR_io_setup
-#define SYS_io_setup __NR_io_setup
-#endif
-
-#ifdef __NR_io_submit
-#define SYS_io_submit __NR_io_submit
-#endif
-
-#ifdef __NR_ioctl
-#define SYS_ioctl __NR_ioctl
-#endif
-
-#ifdef __NR_ioperm
-#define SYS_ioperm __NR_ioperm
-#endif
-
-#ifdef __NR_iopl
-#define SYS_iopl __NR_iopl
-#endif
-
-#ifdef __NR_ioprio_get
-#define SYS_ioprio_get __NR_ioprio_get
-#endif
-
-#ifdef __NR_ioprio_set
-#define SYS_ioprio_set __NR_ioprio_set
-#endif
-
-#ifdef __NR_ipc
-#define SYS_ipc __NR_ipc
-#endif
-
-#ifdef __NR_kcmp
-#define SYS_kcmp __NR_kcmp
-#endif
-
-#ifdef __NR_kern_features
-#define SYS_kern_features __NR_kern_features
-#endif
-
-#ifdef __NR_kexec_file_load
-#define SYS_kexec_file_load __NR_kexec_file_load
-#endif
-
-#ifdef __NR_kexec_load
-#define SYS_kexec_load __NR_kexec_load
-#endif
-
-#ifdef __NR_keyctl
-#define SYS_keyctl __NR_keyctl
-#endif
-
-#ifdef __NR_kill
-#define SYS_kill __NR_kill
-#endif
-
-#ifdef __NR_lchown
-#define SYS_lchown __NR_lchown
-#endif
-
-#ifdef __NR_lchown32
-#define SYS_lchown32 __NR_lchown32
-#endif
-
-#ifdef __NR_lgetxattr
-#define SYS_lgetxattr __NR_lgetxattr
-#endif
-
-#ifdef __NR_link
-#define SYS_link __NR_link
-#endif
-
-#ifdef __NR_linkat
-#define SYS_linkat __NR_linkat
-#endif
-
-#ifdef __NR_listen
-#define SYS_listen __NR_listen
-#endif
-
-#ifdef __NR_listxattr
-#define SYS_listxattr __NR_listxattr
-#endif
-
-#ifdef __NR_llistxattr
-#define SYS_llistxattr __NR_llistxattr
-#endif
-
-#ifdef __NR_llseek
-#define SYS_llseek __NR_llseek
-#endif
-
-#ifdef __NR_lock
-#define SYS_lock __NR_lock
-#endif
-
-#ifdef __NR_lookup_dcookie
-#define SYS_lookup_dcookie __NR_lookup_dcookie
-#endif
-
-#ifdef __NR_lremovexattr
-#define SYS_lremovexattr __NR_lremovexattr
-#endif
-
-#ifdef __NR_lseek
-#define SYS_lseek __NR_lseek
-#endif
-
-#ifdef __NR_lsetxattr
-#define SYS_lsetxattr __NR_lsetxattr
-#endif
-
-#ifdef __NR_lstat
-#define SYS_lstat __NR_lstat
-#endif
-
-#ifdef __NR_lstat64
-#define SYS_lstat64 __NR_lstat64
-#endif
-
-#ifdef __NR_madvise
-#define SYS_madvise __NR_madvise
-#endif
-
-#ifdef __NR_mbind
-#define SYS_mbind __NR_mbind
-#endif
-
-#ifdef __NR_membarrier
-#define SYS_membarrier __NR_membarrier
-#endif
-
-#ifdef __NR_memfd_create
-#define SYS_memfd_create __NR_memfd_create
-#endif
-
-#ifdef __NR_memory_ordering
-#define SYS_memory_ordering __NR_memory_ordering
-#endif
-
-#ifdef __NR_migrate_pages
-#define SYS_migrate_pages __NR_migrate_pages
-#endif
-
-#ifdef __NR_mincore
-#define SYS_mincore __NR_mincore
-#endif
-
-#ifdef __NR_mkdir
-#define SYS_mkdir __NR_mkdir
-#endif
-
-#ifdef __NR_mkdirat
-#define SYS_mkdirat __NR_mkdirat
-#endif
-
-#ifdef __NR_mknod
-#define SYS_mknod __NR_mknod
-#endif
-
-#ifdef __NR_mknodat
-#define SYS_mknodat __NR_mknodat
-#endif
-
-#ifdef __NR_mlock
-#define SYS_mlock __NR_mlock
-#endif
-
-#ifdef __NR_mlock2
-#define SYS_mlock2 __NR_mlock2
-#endif
-
-#ifdef __NR_mlockall
-#define SYS_mlockall __NR_mlockall
-#endif
-
-#ifdef __NR_mmap
-#define SYS_mmap __NR_mmap
-#endif
-
-#ifdef __NR_mmap2
-#define SYS_mmap2 __NR_mmap2
-#endif
-
-#ifdef __NR_modify_ldt
-#define SYS_modify_ldt __NR_modify_ldt
-#endif
-
-#ifdef __NR_mount
-#define SYS_mount __NR_mount
-#endif
-
-#ifdef __NR_move_pages
-#define SYS_move_pages __NR_move_pages
-#endif
-
-#ifdef __NR_mprotect
-#define SYS_mprotect __NR_mprotect
-#endif
-
-#ifdef __NR_mpx
-#define SYS_mpx __NR_mpx
-#endif
-
-#ifdef __NR_mq_getsetattr
-#define SYS_mq_getsetattr __NR_mq_getsetattr
-#endif
-
-#ifdef __NR_mq_notify
-#define SYS_mq_notify __NR_mq_notify
-#endif
-
-#ifdef __NR_mq_open
-#define SYS_mq_open __NR_mq_open
-#endif
-
-#ifdef __NR_mq_timedreceive
-#define SYS_mq_timedreceive __NR_mq_timedreceive
-#endif
-
-#ifdef __NR_mq_timedsend
-#define SYS_mq_timedsend __NR_mq_timedsend
-#endif
-
-#ifdef __NR_mq_unlink
-#define SYS_mq_unlink __NR_mq_unlink
-#endif
-
-#ifdef __NR_mremap
-#define SYS_mremap __NR_mremap
-#endif
-
-#ifdef __NR_msgctl
-#define SYS_msgctl __NR_msgctl
-#endif
-
-#ifdef __NR_msgget
-#define SYS_msgget __NR_msgget
-#endif
-
-#ifdef __NR_msgrcv
-#define SYS_msgrcv __NR_msgrcv
-#endif
-
-#ifdef __NR_msgsnd
-#define SYS_msgsnd __NR_msgsnd
-#endif
-
-#ifdef __NR_msync
-#define SYS_msync __NR_msync
-#endif
-
-#ifdef __NR_multiplexer
-#define SYS_multiplexer __NR_multiplexer
-#endif
-
-#ifdef __NR_munlock
-#define SYS_munlock __NR_munlock
-#endif
-
-#ifdef __NR_munlockall
-#define SYS_munlockall __NR_munlockall
-#endif
-
-#ifdef __NR_munmap
-#define SYS_munmap __NR_munmap
-#endif
-
-#ifdef __NR_name_to_handle_at
-#define SYS_name_to_handle_at __NR_name_to_handle_at
-#endif
-
-#ifdef __NR_nanosleep
-#define SYS_nanosleep __NR_nanosleep
-#endif
-
-#ifdef __NR_newfstatat
-#define SYS_newfstatat __NR_newfstatat
-#endif
-
-#ifdef __NR_nfsservctl
-#define SYS_nfsservctl __NR_nfsservctl
-#endif
-
-#ifdef __NR_ni_syscall
-#define SYS_ni_syscall __NR_ni_syscall
-#endif
-
-#ifdef __NR_nice
-#define SYS_nice __NR_nice
-#endif
-
-#ifdef __NR_old_adjtimex
-#define SYS_old_adjtimex __NR_old_adjtimex
-#endif
-
-#ifdef __NR_oldfstat
-#define SYS_oldfstat __NR_oldfstat
-#endif
-
-#ifdef __NR_oldlstat
-#define SYS_oldlstat __NR_oldlstat
-#endif
-
-#ifdef __NR_oldolduname
-#define SYS_oldolduname __NR_oldolduname
-#endif
-
-#ifdef __NR_oldstat
-#define SYS_oldstat __NR_oldstat
-#endif
-
-#ifdef __NR_oldumount
-#define SYS_oldumount __NR_oldumount
-#endif
-
-#ifdef __NR_olduname
-#define SYS_olduname __NR_olduname
-#endif
-
-#ifdef __NR_open
-#define SYS_open __NR_open
-#endif
-
-#ifdef __NR_open_by_handle_at
-#define SYS_open_by_handle_at __NR_open_by_handle_at
-#endif
-
-#ifdef __NR_openat
-#define SYS_openat __NR_openat
-#endif
-
-#ifdef __NR_osf_adjtime
-#define SYS_osf_adjtime __NR_osf_adjtime
-#endif
-
-#ifdef __NR_osf_afs_syscall
-#define SYS_osf_afs_syscall __NR_osf_afs_syscall
-#endif
-
-#ifdef __NR_osf_alt_plock
-#define SYS_osf_alt_plock __NR_osf_alt_plock
-#endif
-
-#ifdef __NR_osf_alt_setsid
-#define SYS_osf_alt_setsid __NR_osf_alt_setsid
-#endif
-
-#ifdef __NR_osf_alt_sigpending
-#define SYS_osf_alt_sigpending __NR_osf_alt_sigpending
-#endif
-
-#ifdef __NR_osf_asynch_daemon
-#define SYS_osf_asynch_daemon __NR_osf_asynch_daemon
-#endif
-
-#ifdef __NR_osf_audcntl
-#define SYS_osf_audcntl __NR_osf_audcntl
-#endif
-
-#ifdef __NR_osf_audgen
-#define SYS_osf_audgen __NR_osf_audgen
-#endif
-
-#ifdef __NR_osf_chflags
-#define SYS_osf_chflags _...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/96970
More information about the libc-commits
mailing list