From ec6721a751cba81a08bb5481aaa51ca7678154b7 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 9 Feb 2017 22:01:48 +0000 Subject: [PATCH] use proper arg functions, remove bogus ones. --- sys/compat/linux/common/linux_socketcall.c | 8 ++++---- sys/compat/linux/common/linux_socketcall.h | 18 +----------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/sys/compat/linux/common/linux_socketcall.c b/sys/compat/linux/common/linux_socketcall.c index d983420628f0..01634e2ed32f 100644 --- a/sys/compat/linux/common/linux_socketcall.c +++ b/sys/compat/linux/common/linux_socketcall.c @@ -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 -__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 #include @@ -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 */ diff --git a/sys/compat/linux/common/linux_socketcall.h b/sys/compat/linux/common/linux_socketcall.h index 3432bbb8f182..cc3b5d558d66 100644 --- a/sys/compat/linux/common/linux_socketcall.h +++ b/sys/compat/linux/common/linux_socketcall.h @@ -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;