]> git.proxmox.com Git - mirror_lxc.git/commitdiff
syscall_numbers: handle ia64 syscall numbers correctly
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 May 2020 09:44:46 +0000 (11:44 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 May 2020 09:44:46 +0000 (11:44 +0200)
They are offset by 1024.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/syscall_numbers.h

index e7a9dd9a4f4ed48f56e7d6da5d257373b041d67a..c4be407a470425e85b3836c42de2b61c44b67554 100644 (file)
@@ -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
        #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
        #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
        #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
        #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
        #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
        #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
        #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
        #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
                #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
        #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
        #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
        #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
                #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
                #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