]>
git.proxmox.com Git - mirror_lxcfs.git/blob - src/syscall_numbers.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #ifndef __LXCFS_SYSCALL_NUMBERS_H
3 #define __LXCFS_SYSCALL_NUMBERS_H
7 #include <asm/unistd.h>
11 #include <sys/syscall.h>
12 #include <sys/types.h>
15 #ifndef __NR_pivot_root
17 #define __NR_pivot_root 217
18 #elif defined __x86_64__
19 #define __NR_pivot_root 155
21 #define __NR_pivot_root 218
22 #elif defined __aarch64__
23 #define __NR_pivot_root 218
24 #elif defined __s390__
25 #define __NR_pivot_root 217
26 #elif defined __powerpc__
27 #define __NR_pivot_root 203
28 #elif defined __sparc__
29 #define __NR_pivot_root 146
30 #elif defined __ia64__
31 #define __NR_pivot_root 183
32 #elif defined _MIPS_SIM
33 #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
34 #define __NR_pivot_root 4216
36 #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */
37 #define __NR_pivot_root 6151
39 #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
40 #define __NR_pivot_root 5151
44 #warning "__NR_pivot_root not defined for your architecture"
51 #elif defined __x86_64__
55 #elif defined __aarch64__
57 #elif defined __s390__
59 #elif defined __powerpc__
61 #elif defined __sparc__
63 #elif defined __ia64__
65 #elif defined _MIPS_SIM
66 #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
69 #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */
72 #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
77 #warning "__NR_bpf not defined for your architecture"
81 #ifndef __NR_pidfd_send_signal
83 #define __NR_pidfd_send_signal 534
84 #elif defined _MIPS_SIM
85 #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
86 #define __NR_pidfd_send_signal 4424
88 #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */
89 #define __NR_pidfd_send_signal 6424
91 #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
92 #define __NR_pidfd_send_signal 5424
95 #define __NR_pidfd_send_signal 424
99 #ifndef __NR_pidfd_open
100 #if defined __alpha__
101 #define __NR_pidfd_open 544
102 #elif defined _MIPS_SIM
103 #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
104 #define __NR_pidfd_open 4434
106 #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */
107 #define __NR_pidfd_open 6434
109 #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
110 #define __NR_pidfd_open 5434
113 #define __NR_pidfd_open 434
117 #endif /* __LXCFS_SYSCALL_NUMBERS_H */