Skip to contentSkip to conversation

fdmap v2 - wire sys_socket2 to x86-64

PATCH In review Davide Libenzi 1 participant 1 message Jun 6, 2007 ABI/API

lore
Share & tools
lore
#0 lore raw

PATCH 8/8 fdmap v2 - wire sys_socket2 to x86-64

Wire the new sys_socket2 system call to the x86-64 architecture.

- Davide

arch/x86_64/ia32/ia32entry.S +1 -0
Index: linux-2.6.mod/arch/x86_64/ia32/ia32entry.S
===================================================================
@@ -720,4 +720,5 @@
 	.quad compat_sys_timerfd
 	.quad sys_eventfd
 	.quad sys_nonseqfd
+	.quad sys_socket2		/* 325 */
 ia32_syscall_end:
include/asm-x86_64/unistd.h +2 -0
Index: linux-2.6.mod/include/asm-x86_64/unistd.h
===================================================================
@@ -632,6 +632,8 @@
 __SYSCALL(__NR_eventfd, sys_eventfd)
 #define __NR_nonseqfd		284
 __SYSCALL(__NR_nonseqfd, sys_nonseqfd)
+#define __NR_socket2		285
+__SYSCALL(__NR_socket2, sys_socket2)
 
 #ifndef __NO_STUBS
 #define __ARCH_WANT_OLD_READDIR
kernel/sys_ni.c +1 -0
Index: linux-2.6.mod/kernel/sys_ni.c
===================================================================
@@ -34,6 +34,7 @@
 cond_syscall(sys_recvfrom);
 cond_syscall(sys_recv);
 cond_syscall(sys_socket);
+cond_syscall(sys_socket2);
 cond_syscall(sys_setsockopt);
 cond_syscall(sys_getsockopt);
 cond_syscall(sys_shutdown);