diff options
author | Szabolcs Nagy <nsz@port70.net> | 2015-11-18 23:27:07 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-01-26 18:28:04 -0500 |
commit | 37bfb68f688772e7ce339ab72b9ddcf86ac1e8a8 (patch) | |
tree | 4369ce6b214a48e22ec1e3e33b109b1af9c95592 /arch | |
parent | a5e133bf29d42101ba90012b3b03b670bbb949b2 (diff) | |
download | musl-37bfb68f688772e7ce339ab72b9ddcf86ac1e8a8.tar.gz musl-37bfb68f688772e7ce339ab72b9ddcf86ac1e8a8.tar.bz2 musl-37bfb68f688772e7ce339ab72b9ddcf86ac1e8a8.tar.xz musl-37bfb68f688772e7ce339ab72b9ddcf86ac1e8a8.zip |
add new i386 socket syscall numbers
new in linux v4.3 commit 9dea5dc921b5f4045a18c63eb92e84dc274d17eb
direct calls instead of socketcall allow better seccomp filtering.
musl continues to use socketcalls internally on i386. (older kernels
would need a fallback mechanism if the direct calls were used.)
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/bits/syscall.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h index 2902f808..64004d8e 100644 --- a/arch/i386/bits/syscall.h +++ b/arch/i386/bits/syscall.h @@ -357,6 +357,21 @@ #define __NR_memfd_create 356 #define __NR_bpf 357 #define __NR_execveat 358 +#define __NR_socket 359 +#define __NR_socketpair 360 +#define __NR_bind 361 +#define __NR_connect 362 +#define __NR_listen 363 +#define __NR_accept4 364 +#define __NR_getsockopt 365 +#define __NR_setsockopt 366 +#define __NR_getsockname 367 +#define __NR_getpeername 368 +#define __NR_sendto 369 +#define __NR_sendmsg 370 +#define __NR_recvfrom 371 +#define __NR_recvmsg 372 +#define __NR_shutdown 373 /* Repeated with SYS_ prefix */ @@ -720,3 +735,18 @@ #define SYS_memfd_create 356 #define SYS_bpf 357 #define SYS_execveat 358 +#define SYS_socket 359 +#define SYS_socketpair 360 +#define SYS_bind 361 +#define SYS_connect 362 +#define SYS_listen 363 +#define SYS_accept4 364 +#define SYS_getsockopt 365 +#define SYS_setsockopt 366 +#define SYS_getsockname 367 +#define SYS_getpeername 368 +#define SYS_sendto 369 +#define SYS_sendmsg 370 +#define SYS_recvfrom 371 +#define SYS_recvmsg 372 +#define SYS_shutdown 373 |