i386: wire up direct socket syscalls

Starting with linux commit v4.2-rc1-64-g9dea5dc, x86 has direct
socket syscalls in addition to traditional socketcall syscall.

* linux/i386/syscallent.h (socket, socketpair, bind, connect, listen,
accept4, getsockopt, setsockopt, getsockname, getpeername, sendto,
sendmsg, recvfrom, recvmsg, shutdown): New entries.
This commit is contained in:
Дмитрий Левин 2015-11-15 01:40:26 +00:00
parent 4b499f4190
commit 5f394f5e14

View File

@ -385,7 +385,22 @@
[356] = { 2, TD, SEN(memfd_create), "memfd_create", },
[357] = { 3, TD, SEN(bpf), "bpf", },
[358] = { 5, TD|TF|TP|SE|SI, SEN(execveat), "execveat", },
[359 ... 399] = { },
[359] = { 3, TN, SEN(socket), "socket" },
[360] = { 4, TN, SEN(socketpair), "socketpair" },
[361] = { 3, TN, SEN(bind), "bind" },
[362] = { 3, TN, SEN(connect), "connect" },
[363] = { 2, TN, SEN(listen), "listen" },
[364] = { 4, TN, SEN(accept4), "accept4" },
[365] = { 5, TN, SEN(getsockopt), "getsockopt" },
[366] = { 5, TN, SEN(setsockopt), "setsockopt" },
[367] = { 3, TN, SEN(getsockname), "getsockname" },
[368] = { 3, TN, SEN(getpeername), "getpeername" },
[369] = { 6, TN, SEN(sendto), "sendto" },
[370] = { 3, TN, SEN(sendmsg), "sendmsg" },
[371] = { 6, TN, SEN(recvfrom), "recvfrom" },
[372] = { 3, TN, SEN(recvmsg), "recvmsg" },
[373] = { 2, TN, SEN(shutdown), "shutdown" },
[374 ... 399] = { },
#define SYS_socket_subcall 400
#include "subcall.h"