/* SPDX-License-Identifier: LGPL-2.1-or-later
- * This file is generated by src/basic/missing_syscalls.py. Do not edit!
+ * This file is generated by src/include/override/sys/generate-syscall.py. Do not edit!
*
* Use 'ninja -C build update-syscall-tables' to download new syscall tables,
* and 'ninja -C build update-syscall-header' to regenerate this file.
*/
#pragma once
+#include_next <sys/syscall.h>
+
+#include <assert.h>
+
/* Note: if this code looks strange, this is because it is derived from the same
* template as the per-syscall blocks below. */
# if defined(__aarch64__)
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_close_range && __NR_close_range >= 0
# if defined systemd_NR_close_range
-_Static_assert(__NR_close_range == systemd_NR_close_range, "");
+static_assert(__NR_close_range == systemd_NR_close_range, "");
# endif
# else
# if defined __NR_close_range
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_fchmodat2 && __NR_fchmodat2 >= 0
# if defined systemd_NR_fchmodat2
-_Static_assert(__NR_fchmodat2 == systemd_NR_fchmodat2, "");
+static_assert(__NR_fchmodat2 == systemd_NR_fchmodat2, "");
# endif
# else
# if defined __NR_fchmodat2
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_mount_setattr && __NR_mount_setattr >= 0
# if defined systemd_NR_mount_setattr
-_Static_assert(__NR_mount_setattr == systemd_NR_mount_setattr, "");
+static_assert(__NR_mount_setattr == systemd_NR_mount_setattr, "");
# endif
# else
# if defined __NR_mount_setattr
# endif
#endif
+#ifndef __IGNORE_open_tree_attr
+# if defined(__aarch64__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__alpha__)
+# define systemd_NR_open_tree_attr 577
+# elif defined(__arc__) || defined(__tilegx__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__arm__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__i386__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__ia64__)
+# define systemd_NR_open_tree_attr -1
+# elif defined(__loongarch_lp64)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__m68k__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(_MIPS_SIM)
+# if _MIPS_SIM == _MIPS_SIM_ABI32
+# define systemd_NR_open_tree_attr 4467
+# elif _MIPS_SIM == _MIPS_SIM_NABI32
+# define systemd_NR_open_tree_attr 6467
+# elif _MIPS_SIM == _MIPS_SIM_ABI64
+# define systemd_NR_open_tree_attr 5467
+# else
+# error "Unknown MIPS ABI"
+# endif
+# elif defined(__hppa__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__powerpc__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__riscv)
+# if __riscv_xlen == 32
+# define systemd_NR_open_tree_attr 467
+# elif __riscv_xlen == 64
+# define systemd_NR_open_tree_attr 467
+# else
+# error "Unknown RISC-V ABI"
+# endif
+# elif defined(__s390__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__sparc__)
+# define systemd_NR_open_tree_attr 467
+# elif defined(__x86_64__)
+# if defined(__ILP32__)
+# define systemd_NR_open_tree_attr (467 | /* __X32_SYSCALL_BIT */ 0x40000000)
+# else
+# define systemd_NR_open_tree_attr 467
+# endif
+# elif !defined(missing_arch_template)
+# warning "open_tree_attr() syscall number is unknown for your architecture"
+# endif
+
+/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
+# if defined __NR_open_tree_attr && __NR_open_tree_attr >= 0
+# if defined systemd_NR_open_tree_attr
+static_assert(__NR_open_tree_attr == systemd_NR_open_tree_attr, "");
+# endif
+# else
+# if defined __NR_open_tree_attr
+# undef __NR_open_tree_attr
+# endif
+# if defined systemd_NR_open_tree_attr && systemd_NR_open_tree_attr >= 0
+# define __NR_open_tree_attr systemd_NR_open_tree_attr
+# endif
+# endif
+#endif
+
#ifndef __IGNORE_openat2
# if defined(__aarch64__)
# define systemd_NR_openat2 437
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_openat2 && __NR_openat2 >= 0
# if defined systemd_NR_openat2
-_Static_assert(__NR_openat2 == systemd_NR_openat2, "");
+static_assert(__NR_openat2 == systemd_NR_openat2, "");
# endif
# else
# if defined __NR_openat2
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_quotactl_fd && __NR_quotactl_fd >= 0
# if defined systemd_NR_quotactl_fd
-_Static_assert(__NR_quotactl_fd == systemd_NR_quotactl_fd, "");
+static_assert(__NR_quotactl_fd == systemd_NR_quotactl_fd, "");
# endif
# else
# if defined __NR_quotactl_fd
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_removexattrat && __NR_removexattrat >= 0
# if defined systemd_NR_removexattrat
-_Static_assert(__NR_removexattrat == systemd_NR_removexattrat, "");
+static_assert(__NR_removexattrat == systemd_NR_removexattrat, "");
# endif
# else
# if defined __NR_removexattrat
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_setxattrat && __NR_setxattrat >= 0
# if defined systemd_NR_setxattrat
-_Static_assert(__NR_setxattrat == systemd_NR_setxattrat, "");
+static_assert(__NR_setxattrat == systemd_NR_setxattrat, "");
# endif
# else
# if defined __NR_setxattrat
# endif
# endif
#endif
-
-#ifndef __IGNORE_open_tree_attr
-# if defined(__aarch64__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__alpha__)
-# define systemd_NR_open_tree_attr 577
-# elif defined(__arc__) || defined(__tilegx__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__arm__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__i386__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__ia64__)
-# define systemd_NR_open_tree_attr -1
-# elif defined(__loongarch_lp64)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__m68k__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(_MIPS_SIM)
-# if _MIPS_SIM == _MIPS_SIM_ABI32
-# define systemd_NR_open_tree_attr 4467
-# elif _MIPS_SIM == _MIPS_SIM_NABI32
-# define systemd_NR_open_tree_attr 6467
-# elif _MIPS_SIM == _MIPS_SIM_ABI64
-# define systemd_NR_open_tree_attr 5467
-# else
-# error "Unknown MIPS ABI"
-# endif
-# elif defined(__hppa__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__powerpc__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__riscv)
-# if __riscv_xlen == 32
-# define systemd_NR_open_tree_attr 467
-# elif __riscv_xlen == 64
-# define systemd_NR_open_tree_attr 467
-# else
-# error "Unknown RISC-V ABI"
-# endif
-# elif defined(__s390__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__sparc__)
-# define systemd_NR_open_tree_attr 467
-# elif defined(__x86_64__)
-# if defined(__ILP32__)
-# define systemd_NR_open_tree_attr (467 | /* __X32_SYSCALL_BIT */ 0x40000000)
-# else
-# define systemd_NR_open_tree_attr 467
-# endif
-# elif !defined(missing_arch_template)
-# warning "open_tree_attr() syscall number is unknown for your architecture"
-# endif
-
-/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
-# if defined __NR_open_tree_attr && __NR_open_tree_attr >= 0
-# if defined systemd_NR_open_tree_attr
-_Static_assert(__NR_open_tree_attr == systemd_NR_open_tree_attr, "");
-# endif
-# else
-# if defined __NR_open_tree_attr
-# undef __NR_open_tree_attr
-# endif
-# if defined systemd_NR_open_tree_attr && systemd_NR_open_tree_attr >= 0
-# define __NR_open_tree_attr systemd_NR_open_tree_attr
-# endif
-# endif
-#endif