diff options
author | Szabolcs Nagy <nsz@port70.net> | 2015-02-09 22:53:20 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2015-02-09 23:00:56 +0100 |
commit | f54c28cba2707c280f8285c247550358c44b5984 (patch) | |
tree | fc71372b059065e92ce8e7e40c3839f88e9f6c95 /arch/x32/bits | |
parent | 70572dce07a631e2f818b34f5679c57eeebc9779 (diff) | |
download | musl-f54c28cba2707c280f8285c247550358c44b5984.tar.gz musl-f54c28cba2707c280f8285c247550358c44b5984.tar.xz musl-f54c28cba2707c280f8285c247550358c44b5984.zip |
add syscall numbers for the new execveat syscall
this syscall allows fexecve to be implemented without /proc, it is new in linux v3.19, added in commit 51f39a1f0cea1cacf8c787f652f26dfee9611874 (sh and microblaze do not have allocated syscall numbers yet) added a x32 fix as well: the io_setup and io_submit syscalls are no longer common with x86_64, so use the x32 specific numbers.
Diffstat (limited to 'arch/x32/bits')
-rw-r--r-- | arch/x32/bits/syscall.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/x32/bits/syscall.h b/arch/x32/bits/syscall.h index 67330c27..5a6d4d10 100644 --- a/arch/x32/bits/syscall.h +++ b/arch/x32/bits/syscall.h @@ -182,10 +182,8 @@ #define __NR_futex (__X32_SYSCALL_BIT + 202) #define __NR_sched_setaffinity (__X32_SYSCALL_BIT + 203) #define __NR_sched_getaffinity (__X32_SYSCALL_BIT + 204) -#define __NR_io_setup (__X32_SYSCALL_BIT + 206) #define __NR_io_destroy (__X32_SYSCALL_BIT + 207) #define __NR_io_getevents (__X32_SYSCALL_BIT + 208) -#define __NR_io_submit (__X32_SYSCALL_BIT + 209) #define __NR_io_cancel (__X32_SYSCALL_BIT + 210) #define __NR_lookup_dcookie (__X32_SYSCALL_BIT + 212) #define __NR_epoll_create (__X32_SYSCALL_BIT + 213) @@ -311,6 +309,9 @@ #define __NR_process_vm_writev (__X32_SYSCALL_BIT + 540) #define __NR_setsockopt (__X32_SYSCALL_BIT + 541) #define __NR_getsockopt (__X32_SYSCALL_BIT + 542) +#define __NR_io_setup (__X32_SYSCALL_BIT + 543) +#define __NR_io_submit (__X32_SYSCALL_BIT + 544) +#define __NR_execveat (__X32_SYSCALL_BIT + 545) #undef __NR_fstatat #undef __NR_pread @@ -511,10 +512,8 @@ #define SYS_futex __NR_futex #define SYS_sched_setaffinity __NR_sched_setaffinity #define SYS_sched_getaffinity __NR_sched_getaffinity -#define SYS_io_setup __NR_io_setup #define SYS_io_destroy __NR_io_destroy #define SYS_io_getevents __NR_io_getevents -#define SYS_io_submit __NR_io_submit #define SYS_io_cancel __NR_io_cancel #define SYS_lookup_dcookie __NR_lookup_dcookie #define SYS_epoll_create __NR_epoll_create @@ -609,6 +608,7 @@ #define SYS_kexec_file_load __NR_kexec_file_load #define SYS_bpf __NR_bpf + #define SYS_rt_sigaction __NR_rt_sigaction #define SYS_rt_sigreturn __NR_rt_sigreturn #define SYS_ioctl __NR_ioctl @@ -640,6 +640,9 @@ #define SYS_process_vm_writev __NR_process_vm_writev #define SYS_setsockopt __NR_setsockopt #define SYS_getsockopt __NR_getsockopt +#define SYS_io_setup __NR_io_setup +#define SYS_io_submit __NR_io_submit +#define SYS_execveat __NR_execveat #undef SYS_fstatat #undef SYS_pread |