mirror of
git://git.musl-libc.org/musl
synced 2024-12-14 10:45:54 +00:00
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.
This commit is contained in:
parent
70572dce07
commit
f54c28cba2
@ -340,6 +340,7 @@
|
||||
#define __NR_getrandom 384
|
||||
#define __NR_memfd_create 385
|
||||
#define __NR_bpf 386
|
||||
#define __NR_execveat 387
|
||||
|
||||
#define __ARM_NR_breakpoint 0x0f0001
|
||||
#define __ARM_NR_cacheflush 0x0f0002
|
||||
@ -691,3 +692,4 @@
|
||||
#define SYS_getrandom 384
|
||||
#define SYS_memfd_create 385
|
||||
#define SYS_bpf 386
|
||||
#define SYS_execveat 387
|
||||
|
@ -356,6 +356,7 @@
|
||||
#define __NR_getrandom 355
|
||||
#define __NR_memfd_create 356
|
||||
#define __NR_bpf 357
|
||||
#define __NR_execveat 358
|
||||
|
||||
|
||||
/* Repeated with SYS_ prefix */
|
||||
@ -718,3 +719,4 @@
|
||||
#define SYS_getrandom 355
|
||||
#define SYS_memfd_create 356
|
||||
#define SYS_bpf 357
|
||||
#define SYS_execveat 358
|
||||
|
@ -353,6 +353,7 @@
|
||||
#define __NR_getrandom 4353
|
||||
#define __NR_memfd_create 4354
|
||||
#define __NR_bpf 4355
|
||||
#define __NR_execveat 4356
|
||||
|
||||
|
||||
/* Repeated with SYS_ prefix */
|
||||
@ -711,3 +712,4 @@
|
||||
#define SYS_getrandom 4353
|
||||
#define SYS_memfd_create 4354
|
||||
#define SYS_bpf 4355
|
||||
#define SYS_execveat 4356
|
||||
|
@ -264,6 +264,7 @@
|
||||
#define __NR_getrandom 278
|
||||
#define __NR_memfd_create 279
|
||||
#define __NR_bpf 280
|
||||
#define __NR_execveat 281
|
||||
|
||||
#define SYS_io_setup __NR_io_setup
|
||||
#define SYS_io_destroy __NR_io_destroy
|
||||
@ -531,3 +532,4 @@
|
||||
#define SYS_getrandom __NR_getrandom
|
||||
#define SYS_memfd_create __NR_memfd_create
|
||||
#define SYS_bpf __NR_bpf
|
||||
#define SYS_execveat __NR_execveat
|
||||
|
@ -375,6 +375,7 @@
|
||||
#define __NR_getrandom 359
|
||||
#define __NR_memfd_create 360
|
||||
#define __NR_bpf 361
|
||||
#define __NR_execveat 362
|
||||
|
||||
/*
|
||||
* repeated with SYS prefix
|
||||
@ -756,3 +757,4 @@
|
||||
#define SYS_getrandom 359
|
||||
#define SYS_memfd_create 360
|
||||
#define SYS_bpf 361
|
||||
#define SYS_execveat 362
|
||||
|
@ -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
|
||||
|
@ -320,6 +320,7 @@
|
||||
#define __NR_memfd_create 319
|
||||
#define __NR_kexec_file_load 320
|
||||
#define __NR_bpf 321
|
||||
#define __NR_execveat 322
|
||||
|
||||
|
||||
|
||||
@ -647,3 +648,4 @@
|
||||
#define SYS_memfd_create 319
|
||||
#define SYS_kexec_file_load 320
|
||||
#define SYS_bpf 321
|
||||
#define SYS_execveat 322
|
||||
|
Loading…
Reference in New Issue
Block a user