Skip to content

Commit

Permalink
syscall_numbers: handle ia64 syscall numbers correctly
Browse files Browse the repository at this point in the history
They are offset by 1024.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed May 15, 2020
1 parent 94f544e commit 78ae61d
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions src/lxc/syscall_numbers.h
Expand Up @@ -40,7 +40,7 @@
#elif defined __sparc__
#define __NR_keyctl 283
#elif defined __ia64__
#define __NR_keyctl 249
#define __NR_keyctl (249 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_keyctl 4282
Expand Down Expand Up @@ -112,7 +112,7 @@
#elif defined __sparc__
#define __NR_pivot_root 146
#elif defined __ia64__
#define __NR_pivot_root 183
#define __NR_pivot_root (183 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_pivot_root 4216
Expand Down Expand Up @@ -147,7 +147,7 @@
#elif defined __sparc__
#define __NR_setns 337
#elif defined __ia64__
#define __NR_setns 306
#define __NR_setns (306 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_setns 4344
Expand Down Expand Up @@ -182,7 +182,7 @@
#elif defined __sparc__
#define __NR_sethostname 88
#elif defined __ia64__
#define __NR_sethostname 59
#define __NR_sethostname (59 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_sethostname 474
Expand Down Expand Up @@ -217,7 +217,7 @@
#elif defined __sparc__
#define __NR_signalfd 311
#elif defined __ia64__
#define __NR_signalfd 283
#define __NR_signalfd (283 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_signalfd 4317
Expand Down Expand Up @@ -252,7 +252,7 @@
#elif defined __sparc__
#define __NR_signalfd4 317
#elif defined __ia64__
#define __NR_signalfd4 289
#define __NR_signalfd4 (289 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_signalfd4 4324
Expand Down Expand Up @@ -287,7 +287,7 @@
#elif defined __sparc__
#define __NR_unshare 299
#elif defined __ia64__
#define __NR_unshare 272
#define __NR_unshare (272 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_unshare 4303
Expand Down Expand Up @@ -322,7 +322,7 @@
#elif defined __sparc__
#define __NR_bpf 349
#elif defined __ia64__
#define __NR_bpf 317
#define __NR_bpf (317 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_bpf 4355
Expand Down Expand Up @@ -357,7 +357,7 @@
#elif defined __sparc__
#define __NR_faccessat 296
#elif defined __ia64__
#define __NR_faccessat 269
#define __NR_faccessat (269 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_faccessat 4300
Expand Down Expand Up @@ -387,6 +387,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_pidfd_send_signal 5424
#endif
#elif defined __ia64__
#define __NR_pidfd_send_signal (424 + 1024)
#else
#define __NR_pidfd_send_signal 424
#endif
Expand All @@ -410,7 +412,7 @@
#elif defined __sparc__
#define __NR_seccomp 346
#elif defined __ia64__
#define __NR_seccomp 329
#define __NR_seccomp (329 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_seccomp 4352
Expand Down Expand Up @@ -445,7 +447,7 @@
#elif defined __sparc__
#define __NR_gettid 143
#elif defined __ia64__
#define __NR_gettid 81
#define __NR_gettid (81 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_gettid 4222
Expand Down Expand Up @@ -484,7 +486,7 @@
#elif defined __sparc__
#define __NR_execveat 350
#elif defined __ia64__
#define __NR_execveat 318
#define __NR_execveat (318 + 1024)
#elif defined _MIPS_SIM
#if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
#define __NR_execveat 4356
Expand Down Expand Up @@ -514,6 +516,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_move_mount 5429
#endif
#elif defined __ia64__
#define __NR_move_mount (428 + 1024)
#else
#define __NR_move_mount 429
#endif
Expand All @@ -532,6 +536,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_open_tree 5428
#endif
#elif defined __ia64__
#define __NR_open_tree (428 + 1024)
#else
#define __NR_open_tree 428
#endif
Expand Down

0 comments on commit 78ae61d

Please sign in to comment.