diff options
author | Szabolcs Nagy <nsz@port70.net> | 2014-12-16 00:20:36 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-12-23 01:44:19 -0500 |
commit | f90fafea3c5f1acd7b9bc8e720b417e2dba1d92d (patch) | |
tree | 31ee640733cf370e82122737c6aa1cfbcf793012 /arch | |
parent | 91f15e2d0d7621a3ce7b4ff8f3dbc61119b44cc7 (diff) | |
download | musl-f90fafea3c5f1acd7b9bc8e720b417e2dba1d92d.zip musl-f90fafea3c5f1acd7b9bc8e720b417e2dba1d92d.tar.gz musl-f90fafea3c5f1acd7b9bc8e720b417e2dba1d92d.tar.bz2 |
add new syscall numbers for bpf and kexec_file_load
these syscalls are new in linux v3.18, bpf is present on all
supported archs except sh, kexec_file_load is only allocted for
x86_64 and x32 yet.
bpf was added in linux commit 99c55f7d47c0dc6fc64729f37bf435abf43f4c60
kexec_file_load syscall number was allocated in commit
f0895685c7fd8c938c91a9d8a6f7c11f22df58d2
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/bits/syscall.h | 2 | ||||
-rw-r--r-- | arch/i386/bits/syscall.h | 2 | ||||
-rw-r--r-- | arch/microblaze/bits/syscall.h | 2 | ||||
-rw-r--r-- | arch/mips/bits/syscall.h | 2 | ||||
-rw-r--r-- | arch/or1k/bits/syscall.h | 2 | ||||
-rw-r--r-- | arch/powerpc/bits/syscall.h | 2 | ||||
-rw-r--r-- | arch/x32/bits/syscall.h | 4 | ||||
-rw-r--r-- | arch/x86_64/bits/syscall.h | 4 |
8 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/bits/syscall.h b/arch/arm/bits/syscall.h index df23b83..95b9576 100644 --- a/arch/arm/bits/syscall.h +++ b/arch/arm/bits/syscall.h @@ -339,6 +339,7 @@ #define __NR_seccomp 383 #define __NR_getrandom 384 #define __NR_memfd_create 385 +#define __NR_bpf 386 #define __ARM_NR_breakpoint 0x0f0001 #define __ARM_NR_cacheflush 0x0f0002 @@ -689,3 +690,4 @@ #define SYS_seccomp 383 #define SYS_getrandom 384 #define SYS_memfd_create 385 +#define SYS_bpf 386 diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h index 7584f30..2378053 100644 --- a/arch/i386/bits/syscall.h +++ b/arch/i386/bits/syscall.h @@ -355,6 +355,7 @@ #define __NR_seccomp 354 #define __NR_getrandom 355 #define __NR_memfd_create 356 +#define __NR_bpf 357 /* Repeated with SYS_ prefix */ @@ -716,3 +717,4 @@ #define SYS_seccomp 354 #define SYS_getrandom 355 #define SYS_memfd_create 356 +#define SYS_bpf 357 diff --git a/arch/microblaze/bits/syscall.h b/arch/microblaze/bits/syscall.h index f0ed204..ea8e864 100644 --- a/arch/microblaze/bits/syscall.h +++ b/arch/microblaze/bits/syscall.h @@ -381,6 +381,7 @@ #define __NR_seccomp 384 #define __NR_getrandom 385 #define __NR_memfd_create 386 +#define __NR_bpf 387 /* Repeated with SYS_ prefix */ @@ -768,3 +769,4 @@ #define SYS_seccomp 384 #define SYS_getrandom 385 #define SYS_memfd_create 386 +#define SYS_bpf 387 diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h index 03a4926..7cb7e35 100644 --- a/arch/mips/bits/syscall.h +++ b/arch/mips/bits/syscall.h @@ -352,6 +352,7 @@ #define __NR_seccomp 4352 #define __NR_getrandom 4353 #define __NR_memfd_create 4354 +#define __NR_bpf 4355 /* Repeated with SYS_ prefix */ @@ -709,3 +710,4 @@ #define SYS_seccomp 4352 #define SYS_getrandom 4353 #define SYS_memfd_create 4354 +#define SYS_bpf 4355 diff --git a/arch/or1k/bits/syscall.h b/arch/or1k/bits/syscall.h index 4e3b5c9..b854bca 100644 --- a/arch/or1k/bits/syscall.h +++ b/arch/or1k/bits/syscall.h @@ -263,6 +263,7 @@ #define __NR_seccomp 277 #define __NR_getrandom 278 #define __NR_memfd_create 279 +#define __NR_bpf 280 #define SYS_io_setup __NR_io_setup #define SYS_io_destroy __NR_io_destroy @@ -529,3 +530,4 @@ #define SYS_seccomp __NR_seccomp #define SYS_getrandom __NR_getrandom #define SYS_memfd_create __NR_memfd_create +#define SYS_bpf __NR_bpf diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h index 6d96acd..0512eb3 100644 --- a/arch/powerpc/bits/syscall.h +++ b/arch/powerpc/bits/syscall.h @@ -374,6 +374,7 @@ #define __NR_seccomp 358 #define __NR_getrandom 359 #define __NR_memfd_create 360 +#define __NR_bpf 361 /* * repeated with SYS prefix @@ -754,3 +755,4 @@ #define SYS_seccomp 358 #define SYS_getrandom 359 #define SYS_memfd_create 360 +#define SYS_bpf 361 diff --git a/arch/x32/bits/syscall.h b/arch/x32/bits/syscall.h index fc4146e..67330c2 100644 --- a/arch/x32/bits/syscall.h +++ b/arch/x32/bits/syscall.h @@ -277,6 +277,8 @@ #define __NR_seccomp (__X32_SYSCALL_BIT + 317) #define __NR_getrandom (__X32_SYSCALL_BIT + 318) #define __NR_memfd_create (__X32_SYSCALL_BIT + 319) +#define __NR_kexec_file_load (__X32_SYSCALL_BIT + 320) +#define __NR_bpf (__X32_SYSCALL_BIT + 321) #define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512) #define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513) @@ -604,6 +606,8 @@ #define SYS_seccomp __NR_seccomp #define SYS_getrandom __NR_getrandom #define SYS_memfd_create __NR_memfd_create +#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 diff --git a/arch/x86_64/bits/syscall.h b/arch/x86_64/bits/syscall.h index 245d647..0f9168c 100644 --- a/arch/x86_64/bits/syscall.h +++ b/arch/x86_64/bits/syscall.h @@ -318,6 +318,8 @@ #define __NR_seccomp 317 #define __NR_getrandom 318 #define __NR_memfd_create 319 +#define __NR_kexec_file_load 320 +#define __NR_bpf 321 #undef __NR_fstatat @@ -654,6 +656,8 @@ #define SYS_seccomp 317 #define SYS_getrandom 318 #define SYS_memfd_create 319 +#define SYS_kexec_file_load 320 +#define SYS_bpf 321 #undef SYS_fstatat #undef SYS_pread |