[LV] [PATCH] Wire modern socket calls
Maciej W. Rozycki
macro at linux-mips.org
Tue Mar 24 11:55:56 CET 2009
Socket calls are available directly these days and the user- and
kernel-side overhead of using the arcane interface of socketcall(2) can be
avoided. Wire the calls to a block of syscall numbers for the VAX
platform.
Signed-off-by: Maciej W. Rozycki <macro at linux-mips.org>
---
Built successfully, checked to apply against the current tree, please
apply.
Maciej
patch-mips-2.6.25-20080422-vax-socket-0
diff -up --recursive --new-file linux-mips-2.6.25-20080422.macro/arch/vax/kernel/syscall.c linux-mips-2.6.25-20080422/arch/vax/kernel/syscall.c
--- linux-mips-2.6.25-20080422.macro/arch/vax/kernel/syscall.c 2008-05-01 00:00:00.000000000 +0000
+++ linux-mips-2.6.25-20080422/arch/vax/kernel/syscall.c 2009-03-24 10:22:47.000000000 +0000
@@ -264,6 +264,23 @@ static struct {
SC (__NR_statfs64, sys_statfs64, 2),
SC (__NR_fstatfs64, sys_fstatfs64, 2),
SC (__NR_sendfile64, sys_sendfile64, 4),
+ SC (__NR_accept, sys_accept, 3),
+ SC (__NR_bind, sys_bind, 3),
+ SC (__NR_connect, sys_connect, 3),
+ SC (__NR_getpeername, sys_getpeername, 3),
+ SC (__NR_getsockname, sys_getsockname, 3),
+ SC (__NR_getsockopt, sys_getsockopt, 5),
+ SC (__NR_listen, sys_listen, 2),
+ SC (__NR_recv, sys_recv, 4),
+ SC (__NR_recvfrom, sys_recvfrom, 6),
+ SC (__NR_recvmsg, sys_recvmsg, 3),
+ SC (__NR_send, sys_send, 4),
+ SC (__NR_sendmsg, sys_sendmsg, 3),
+ SC (__NR_sendto, sys_sendto, 6),
+ SC (__NR_setsockopt, sys_setsockopt, 5),
+ SC (__NR_shutdown, sys_shutdown, 2),
+ SC (__NR_socket, sys_socket, 3),
+ SC (__NR_socketpair, sys_socketpair, 4),
#undef SC
};
diff -up --recursive --new-file linux-mips-2.6.25-20080422.macro/include/asm-vax/unistd.h linux-mips-2.6.25-20080422/include/asm-vax/unistd.h
--- linux-mips-2.6.25-20080422.macro/include/asm-vax/unistd.h 2008-05-01 00:00:00.000000000 +0000
+++ linux-mips-2.6.25-20080422/include/asm-vax/unistd.h 2009-03-24 10:15:14.000000000 +0000
@@ -248,8 +248,25 @@
#define __NR_fstatfs64 224
#define __NR_vserver 225
#define __NR_sendfile64 226
+#define __NR_accept 227
+#define __NR_bind 228
+#define __NR_connect 229
+#define __NR_getpeername 230
+#define __NR_getsockname 231
+#define __NR_getsockopt 232
+#define __NR_listen 233
+#define __NR_recv 234
+#define __NR_recvfrom 235
+#define __NR_recvmsg 236
+#define __NR_send 237
+#define __NR_sendmsg 238
+#define __NR_sendto 239
+#define __NR_setsockopt 240
+#define __NR_shutdown 241
+#define __NR_socket 242
+#define __NR_socketpair 243
-#define __NR_last_syscall 226 /* Number of last syscall */
+#define __NR_last_syscall 243 /* Number of last syscall */
#if 0
_______________________________________________
Linux-Vax mailing list
Linux-Vax at mail.pergamentum.com
http://mail.pergamentum.com/mailman/listinfo/linux-vax
More information about the Vax-linux
mailing list