Module Name: src
Committed By: christos
Date: Thu Feb 9 22:01:48 UTC 2017
Modified Files:
src/sys/compat/linux/common: linux_socketcall.c linux_socketcall.h
Log Message:
use proper arg functions, remove bogus ones.
To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/compat/linux/common/linux_socketcall.c
cvs rdiff -u -r1.20 -r1.21 src/sys/compat/linux/common/linux_socketcall.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/common/linux_socketcall.c
diff -u src/sys/compat/linux/common/linux_socketcall.c:1.47 src/sys/compat/linux/common/linux_socketcall.c:1.48
--- src/sys/compat/linux/common/linux_socketcall.c:1.47 Fri Feb 3 11:57:39 2017
+++ src/sys/compat/linux/common/linux_socketcall.c Thu Feb 9 17:01:48 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socketcall.c,v 1.47 2017/02/03 16:57:39 christos Exp $ */
+/* $NetBSD: linux_socketcall.c,v 1.48 2017/02/09 22:01:48 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.47 2017/02/03 16:57:39 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.48 2017/02/09 22:01:48 christos Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -93,7 +93,7 @@ static const struct {
{L("socket"), sizeof(struct linux_sys_socket_args)}, /* 1 */
{L("bind"), sizeof(struct linux_sys_bind_args)}, /* 2 */
{L("connect"), sizeof(struct linux_sys_connect_args)}, /* 3 */
- {L("listen"), sizeof(struct linux_sys_listen_args)}, /* 4 */
+ {L("listen"), sizeof(struct sys_listen_args)}, /* 4 */
{L("accept"), sizeof(struct linux_sys_accept_args)}, /* 5 */
{L("getsockname"),sizeof(struct linux_sys_getsockname_args)}, /* 6 */
{L("getpeername"),sizeof(struct linux_sys_getpeername_args)}, /* 7 */
@@ -102,7 +102,7 @@ static const struct {
{L("recv"), sizeof(struct linux_sys_recv_args)}, /* 10 */
{L("sendto"), sizeof(struct linux_sys_sendto_args)}, /* 11 */
{L("recvfrom"), sizeof(struct linux_sys_recvfrom_args)}, /* 12 */
- {L("shutdown"), sizeof(struct linux_sys_shutdown_args)}, /* 13 */
+ {L("shutdown"), sizeof(struct sys_shutdown_args)}, /* 13 */
{L("setsockopt"),sizeof(struct linux_sys_setsockopt_args)}, /* 14 */
{L("getsockopt"),sizeof(struct linux_sys_getsockopt_args)}, /* 15 */
{L("sendmsg"), sizeof(struct linux_sys_sendmsg_args)}, /* 16 */
Index: src/sys/compat/linux/common/linux_socketcall.h
diff -u src/sys/compat/linux/common/linux_socketcall.h:1.20 src/sys/compat/linux/common/linux_socketcall.h:1.21
--- src/sys/compat/linux/common/linux_socketcall.h:1.20 Fri Feb 3 17:29:51 2017
+++ src/sys/compat/linux/common/linux_socketcall.h Thu Feb 9 17:01:48 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socketcall.h,v 1.20 2017/02/03 22:29:51 christos Exp $ */
+/* $NetBSD: linux_socketcall.h,v 1.21 2017/02/09 22:01:48 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -244,22 +244,6 @@ struct linux_sys_recv_args {
};
#endif
-/* These are only used for their size: */
-
-#ifndef LINUX_SYS_listen
-struct linux_sys_listen_args {
- syscallarg(int) s;
- syscallarg(int) backlog;
-};
-#endif
-
-#ifndef LINUX_SYS_shutdown
-struct linux_sys_shutdown_args {
- syscallarg(int) s;
- syscallarg(int) how;
-};
-#endif
-
#ifndef LINUX_SYS_accept4
struct linux_sys_accept4_args {
syscallarg(int) s;