summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socketcall.c
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2007-12-20 23:02:38 +0000
committerdsl <dsl@NetBSD.org>2007-12-20 23:02:38 +0000
commit7e2790cf6f02365ee5b4342577d9e49e94e7a7aa (patch)
tree4b135dd40aa9849b57cecda6274fed16ec2184e0 /sys/compat/linux/common/linux_socketcall.c
parente7da798e38b08574611096048247c7959fad1adb (diff)
Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval) to: int foo(struct lwp *l, const struct foo_args *uap, register_t *retval) Fixup compat code to not write into 'uap' and (in some cases) to actually pass a correctly formatted 'uap' structure with the right name to the next routine. A few 'compat' routines that just call standard ones have been deleted. All the 'compat' code compiles (along with the kernels required to test build it). 98% done by automated scripts.
Diffstat (limited to 'sys/compat/linux/common/linux_socketcall.c')
-rw-r--r--sys/compat/linux/common/linux_socketcall.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/linux/common/linux_socketcall.c b/sys/compat/linux/common/linux_socketcall.c
index 59d359df970..b6e38cf7e09 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.36 2007/12/08 18:36:10 dsl Exp $ */
+/* $NetBSD: linux_socketcall.c,v 1.37 2007/12/20 23:02:57 dsl Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.36 2007/12/08 18:36:10 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.37 2007/12/20 23:02:57 dsl Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -119,12 +119,12 @@ static const struct {
* make and take appropriate action.
*/
int
-linux_sys_socketcall(struct lwp *l, void *v, register_t *retval)
+linux_sys_socketcall(struct lwp *l, const struct linux_sys_socketcall_args *uap, register_t *retval)
{
- struct linux_sys_socketcall_args /* {
+ /* {
syscallarg(int) what;
syscallarg(void *) args;
- } */ *uap = v;
+ } */
struct linux_socketcall_dummy_args lda;
int error;