summaryrefslogtreecommitdiff
path: root/sys/compat/linux32
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2007-12-08 18:35:53 +0000
committerdsl <dsl@NetBSD.org>2007-12-08 18:35:53 +0000
commit28bae79b2713013fa5c98bdd7a8bdde85ccc3ffd (patch)
treee96dcadb2e523d907f659aa130436e909e7bfd97 /sys/compat/linux32
parentc26a54ba243a5ba3a847aeba86fe44f2e4a86203 (diff)
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
Diffstat (limited to 'sys/compat/linux32')
-rw-r--r--sys/compat/linux32/arch/amd64/linux32_machdep.c21
-rw-r--r--sys/compat/linux32/common/linux32_dirent.c14
-rw-r--r--sys/compat/linux32/common/linux32_exec.c11
-rw-r--r--sys/compat/linux32/common/linux32_fcntl.c19
-rw-r--r--sys/compat/linux32/common/linux32_ioctl.c9
-rw-r--r--sys/compat/linux32/common/linux32_misc.c9
-rw-r--r--sys/compat/linux32/common/linux32_mman.c19
-rw-r--r--sys/compat/linux32/common/linux32_resource.c19
-rw-r--r--sys/compat/linux32/common/linux32_sched.c29
-rw-r--r--sys/compat/linux32/common/linux32_signal.c51
-rw-r--r--sys/compat/linux32/common/linux32_socket.c79
-rw-r--r--sys/compat/linux32/common/linux32_socketcall.c9
-rw-r--r--sys/compat/linux32/common/linux32_stat.c8
-rw-r--r--sys/compat/linux32/common/linux32_sysctl.c9
-rw-r--r--sys/compat/linux32/common/linux32_sysinfo.c9
-rw-r--r--sys/compat/linux32/common/linux32_time.c34
-rw-r--r--sys/compat/linux32/common/linux32_unistd.c149
-rw-r--r--sys/compat/linux32/common/linux32_utsname.c14
-rw-r--r--sys/compat/linux32/common/linux32_wait.c14
19 files changed, 130 insertions, 396 deletions
diff --git a/sys/compat/linux32/arch/amd64/linux32_machdep.c b/sys/compat/linux32/arch/amd64/linux32_machdep.c
index 3e0378e1ded..38b896416ad 100644
--- a/sys/compat/linux32/arch/amd64/linux32_machdep.c
+++ b/sys/compat/linux32/arch/amd64/linux32_machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_machdep.c,v 1.14 2007/12/04 18:40:18 dsl Exp $ */
+/* $NetBSD: linux32_machdep.c,v 1.15 2007/12/08 18:36:10 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -31,7 +31,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.14 2007/12/04 18:40:18 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.15 2007/12/08 18:36:10 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -344,12 +344,7 @@ linux32_setregs(struct lwp *l, struct exec_package *pack, u_long stack)
}
static void
-linux32_save_ucontext(l, tf, mask, sas, uc)
- struct lwp *l;
- struct trapframe *tf;
- const sigset_t *mask;
- struct sigaltstack *sas;
- struct linux32_ucontext *uc;
+linux32_save_ucontext(struct lwp *l, struct trapframe *tf, const sigset_t *mask, struct sigaltstack *sas, struct linux32_ucontext *uc)
{
uc->uc_flags = 0;
NETBSD32PTR32(uc->uc_link, NULL);
@@ -397,10 +392,7 @@ linux32_save_sigcontext(l, tf, mask, sc)
}
int
-linux32_sys_sigreturn(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_sigreturn(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_sigreturn_args /* {
syscallarg(linux32_sigcontextp_t) scp;
@@ -415,10 +407,7 @@ linux32_sys_sigreturn(l, v, retval)
}
int
-linux32_sys_rt_sigreturn(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_rt_sigreturn(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_rt_sigreturn_args /* {
syscallarg(linux32_ucontextp_t) ucp;
diff --git a/sys/compat/linux32/common/linux32_dirent.c b/sys/compat/linux32/common/linux32_dirent.c
index c37617eba92..52542d68a3d 100644
--- a/sys/compat/linux32/common/linux32_dirent.c
+++ b/sys/compat/linux32/common/linux32_dirent.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_dirent.c,v 1.2 2007/02/09 21:55:21 ad Exp $ */
+/* $NetBSD: linux32_dirent.c,v 1.3 2007/12/08 18:36:10 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_dirent.c,v 1.2 2007/02/09 21:55:21 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_dirent.c,v 1.3 2007/12/08 18:36:10 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_dirent.c,v 1.2 2007/02/09 21:55:21 ad Exp $"
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_getdents(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_getdents(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_getdents_args /* {
syscallcarg(int) fd;
@@ -91,10 +88,7 @@ linux32_sys_getdents(l, v, retval)
int
-linux32_sys_getdents64(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_getdents64(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_getdents64_args /* {
syscallcarg(int) fd;
diff --git a/sys/compat/linux32/common/linux32_exec.c b/sys/compat/linux32/common/linux32_exec.c
index 6fc6a342b78..3e7906d7f8d 100644
--- a/sys/compat/linux32/common/linux32_exec.c
+++ b/sys/compat/linux32/common/linux32_exec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_exec.c,v 1.8 2007/12/04 18:40:18 dsl Exp $ */
+/* $NetBSD: linux32_exec.c,v 1.9 2007/12/08 18:36:11 dsl Exp $ */
/*-
* Copyright (c) 1994-2007 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.8 2007/12/04 18:40:18 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.9 2007/12/08 18:36:11 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -214,9 +214,7 @@ linux32_e_proc_init(p, parent, forkflags)
* the executed process is of same emulation as original forked one.
*/
static void
-linux32_e_proc_exec(p, epp)
- struct proc *p;
- struct exec_package *epp;
+linux32_e_proc_exec(struct proc *p, struct exec_package *epp)
{
/* exec, use our vmspace */
linux32_e_proc_init(p, NULL, 0);
@@ -226,8 +224,7 @@ linux32_e_proc_exec(p, epp)
* Emulation per-process exit hook.
*/
static void
-linux32_e_proc_exit(p)
- struct proc *p;
+linux32_e_proc_exit(struct proc *p)
{
struct linux_emuldata *e = p->p_emuldata;
diff --git a/sys/compat/linux32/common/linux32_fcntl.c b/sys/compat/linux32/common/linux32_fcntl.c
index 7f17c36c2f4..14aa44ed55a 100644
--- a/sys/compat/linux32/common/linux32_fcntl.c
+++ b/sys/compat/linux32/common/linux32_fcntl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_fcntl.c,v 1.2 2007/02/09 21:55:21 ad Exp $ */
+/* $NetBSD: linux32_fcntl.c,v 1.3 2007/12/08 18:36:11 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_fcntl.c,v 1.2 2007/02/09 21:55:21 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_fcntl.c,v 1.3 2007/12/08 18:36:11 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_fcntl.c,v 1.2 2007/02/09 21:55:21 ad Exp $")
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_open(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_open(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_open_args /* {
syscallarg(const netbsd32_charp) path;
@@ -90,10 +87,7 @@ linux32_sys_open(l, v, retval)
}
int
-linux32_sys_fcntl64(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_fcntl64(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_fcntl64_args /* {
syscallcarg(int) fd;
@@ -110,10 +104,7 @@ linux32_sys_fcntl64(l, v, retval)
}
int
-linux32_sys_fcntl(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_fcntl(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_fcntl_args /* {
syscallcarg(int) fd;
diff --git a/sys/compat/linux32/common/linux32_ioctl.c b/sys/compat/linux32/common/linux32_ioctl.c
index 384bba8e6b6..bd1b88382a1 100644
--- a/sys/compat/linux32/common/linux32_ioctl.c
+++ b/sys/compat/linux32/common/linux32_ioctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_ioctl.c,v 1.7 2007/03/18 21:38:32 dsl Exp $ */
+/* $NetBSD: linux32_ioctl.c,v 1.8 2007/12/08 18:36:11 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_ioctl.c,v 1.7 2007/03/18 21:38:32 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_ioctl.c,v 1.8 2007/12/08 18:36:11 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -57,10 +57,7 @@ extern int linux_ioctl_socket(struct lwp *,
struct linux_sys_ioctl_args *, register_t *);
int
-linux32_sys_ioctl(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_ioctl(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_ioctl_args /* {
syscallarg(int) fd;
diff --git a/sys/compat/linux32/common/linux32_misc.c b/sys/compat/linux32/common/linux32_misc.c
index c5e355ef8bb..d416a859242 100644
--- a/sys/compat/linux32/common/linux32_misc.c
+++ b/sys/compat/linux32/common/linux32_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_misc.c,v 1.7 2007/04/30 14:05:47 dsl Exp $ */
+/* $NetBSD: linux32_misc.c,v 1.8 2007/12/08 18:36:11 dsl Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_misc.c,v 1.7 2007/04/30 14:05:47 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_misc.c,v 1.8 2007/12/08 18:36:11 dsl Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -70,10 +70,7 @@ extern const int linux_fstypes_cnt;
* Implement the fs stat functions. Straightforward.
*/
int
-linux32_sys_statfs(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_statfs(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_statfs_args /* {
syscallarg(const netbsd32_charp char) path;
diff --git a/sys/compat/linux32/common/linux32_mman.c b/sys/compat/linux32/common/linux32_mman.c
index 686a2698063..e49a29ad196 100644
--- a/sys/compat/linux32/common/linux32_mman.c
+++ b/sys/compat/linux32/common/linux32_mman.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_mman.c,v 1.4 2007/10/31 09:16:55 njoly Exp $ */
+/* $NetBSD: linux32_mman.c,v 1.5 2007/12/08 18:36:11 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_mman.c,v 1.4 2007/10/31 09:16:55 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_mman.c,v 1.5 2007/12/08 18:36:11 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_mman.c,v 1.4 2007/10/31 09:16:55 njoly Exp $
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_old_mmap(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_old_mmap(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_old_mmap_args /* {
syscallarg(linux32_oldmmapp) lmp;
@@ -104,10 +101,7 @@ linux32_sys_mprotect(l, v, retval)
}
int
-linux32_sys_mremap(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_mremap(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_mremap_args /* {
syscallarg(netbsd32_voidp) old_address;
@@ -126,10 +120,7 @@ linux32_sys_mremap(l, v, retval)
}
int
-linux32_sys_mmap2(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_mmap2(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_mmap2_args /* {
syscallarg(netbsd32_u_long) addr;
diff --git a/sys/compat/linux32/common/linux32_resource.c b/sys/compat/linux32/common/linux32_resource.c
index dfd1ab310f3..689bcce9c64 100644
--- a/sys/compat/linux32/common/linux32_resource.c
+++ b/sys/compat/linux32/common/linux32_resource.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_resource.c,v 1.6 2007/05/12 21:07:02 dsl Exp $ */
+/* $NetBSD: linux32_resource.c,v 1.7 2007/12/08 18:36:11 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_resource.c,v 1.6 2007/05/12 21:07:02 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_resource.c,v 1.7 2007/12/08 18:36:11 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -72,10 +72,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_resource.c,v 1.6 2007/05/12 21:07:02 dsl Exp
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_getrlimit(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_getrlimit(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_getrlimit_args /* {
syscallarg(int) which;
@@ -94,10 +91,7 @@ linux32_sys_getrlimit(l, v, retval)
}
int
-linux32_sys_setrlimit(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setrlimit(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setrlimit_args /* {
syscallarg(int) which;
@@ -121,10 +115,7 @@ linux32_sys_setrlimit(l, v, retval)
}
int
-linux32_sys_ugetrlimit(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_ugetrlimit(struct lwp *l, void *v, register_t *retval)
{
return linux32_sys_getrlimit(l, v, retval);
}
diff --git a/sys/compat/linux32/common/linux32_sched.c b/sys/compat/linux32/common/linux32_sched.c
index fd5f91b1717..46a5b9ab1d0 100644
--- a/sys/compat/linux32/common/linux32_sched.c
+++ b/sys/compat/linux32/common/linux32_sched.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_sched.c,v 1.4 2007/11/07 00:24:31 njoly Exp $ */
+/* $NetBSD: linux32_sched.c,v 1.5 2007/12/08 18:36:11 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sched.c,v 1.4 2007/11/07 00:24:31 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sched.c,v 1.5 2007/12/08 18:36:11 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_sched.c,v 1.4 2007/11/07 00:24:31 njoly Exp
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_clone(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_clone(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_clone_args /* {
syscallarg(int) flags;
@@ -92,10 +89,7 @@ linux32_sys_clone(l, v, retval)
}
int
-linux32_sys_sched_getscheduler(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_sched_getscheduler(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_sched_getscheduler_args /* {
syscallarg(pid_t) pid;
@@ -108,10 +102,7 @@ linux32_sys_sched_getscheduler(l, v, retval)
}
int
-linux32_sys_sched_setscheduler(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_sched_setscheduler(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_sched_setscheduler_args /* {
syscallarg(int) pid;
@@ -128,10 +119,7 @@ linux32_sys_sched_setscheduler(l, v, retval)
}
int
-linux32_sys_sched_getparam(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_sched_getparam(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_sched_getparam_args /* {
syscallarg(pid_t) pid;
@@ -146,10 +134,7 @@ linux32_sys_sched_getparam(l, v, retval)
}
int
-linux32_sys_exit_group(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_exit_group(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_exit_group_args /* {
syscallarg(int) error_code;
diff --git a/sys/compat/linux32/common/linux32_signal.c b/sys/compat/linux32/common/linux32_signal.c
index 3769748ba35..3dbbb2f9440 100644
--- a/sys/compat/linux32/common/linux32_signal.c
+++ b/sys/compat/linux32/common/linux32_signal.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_signal.c,v 1.4 2007/03/18 21:38:32 dsl Exp $ */
+/* $NetBSD: linux32_signal.c,v 1.5 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -53,9 +53,7 @@ extern const int native_to_linux32_signo[];
extern const int linux32_to_native_signo[];
void
-linux32_to_native_sigset(bss, lss)
- sigset_t *bss;
- const linux32_sigset_t *lss;
+linux32_to_native_sigset(sigset_t *bss, const linux32_sigset_t *lss)
{
int i, newsig;
@@ -70,9 +68,7 @@ linux32_to_native_sigset(bss, lss)
}
void
-native_to_linux32_sigset(lss, bss)
- linux32_sigset_t *lss;
- const sigset_t *bss;
+native_to_linux32_sigset(linux32_sigset_t *lss, const sigset_t *bss)
{
int i, newsig;
@@ -87,8 +83,7 @@ native_to_linux32_sigset(lss, bss)
}
unsigned int
-native_to_linux32_sigflags(bsf)
- const int bsf;
+native_to_linux32_sigflags(const int bsf)
{
unsigned int lsf = 0;
if ((bsf & SA_NOCLDSTOP) != 0)
@@ -109,8 +104,7 @@ native_to_linux32_sigflags(bsf)
}
int
-linux32_to_native_sigflags(lsf)
- const unsigned long lsf;
+linux32_to_native_sigflags(const unsigned long lsf)
{
int bsf = 0;
if ((lsf & LINUX32_SA_NOCLDSTOP) != 0)
@@ -137,9 +131,7 @@ linux32_to_native_sigflags(lsf)
}
void
-linux32_to_native_sigaction(bsa, lsa)
- struct sigaction *bsa;
- const struct linux32_sigaction *lsa;
+linux32_to_native_sigaction(struct sigaction *bsa, const struct linux32_sigaction *lsa)
{
bsa->sa_handler = NETBSD32PTR64(lsa->linux_sa_handler);
linux32_to_native_sigset(&bsa->sa_mask, &lsa->linux_sa_mask);
@@ -147,9 +139,7 @@ linux32_to_native_sigaction(bsa, lsa)
}
void
-native_to_linux32_sigaction(lsa, bsa)
- struct linux32_sigaction *lsa;
- const struct sigaction *bsa;
+native_to_linux32_sigaction(struct linux32_sigaction *lsa, const struct sigaction *bsa)
{
NETBSD32PTR32(lsa->linux_sa_handler, bsa->sa_handler);
native_to_linux32_sigset(&lsa->linux_sa_mask, &bsa->sa_mask);
@@ -158,9 +148,7 @@ native_to_linux32_sigaction(lsa, bsa)
}
void
-native_to_linux32_sigaltstack(lss, bss)
- struct linux32_sigaltstack *lss;
- const struct sigaltstack *bss;
+native_to_linux32_sigaltstack(struct linux32_sigaltstack *lss, const struct sigaltstack *bss)
{
NETBSD32PTR32(lss->ss_sp, bss->ss_sp);
lss->ss_size = bss->ss_size;
@@ -174,9 +162,7 @@ native_to_linux32_sigaltstack(lss, bss)
void
-native_to_linux32_old_sigset(lss, bss)
- linux32_old_sigset_t *lss;
- const sigset_t *bss;
+native_to_linux32_old_sigset(linux32_old_sigset_t *lss, const sigset_t *bss)
{
linux32_sigset_t lsnew;
@@ -187,9 +173,7 @@ native_to_linux32_old_sigset(lss, bss)
}
void
-linux32_old_to_native_sigset(bss, lss)
- sigset_t *bss;
- const linux32_old_sigset_t *lss;
+linux32_old_to_native_sigset(sigset_t *bss, const linux32_old_sigset_t *lss)
{
linux32_sigset_t ls;
@@ -200,10 +184,7 @@ linux32_old_to_native_sigset(bss, lss)
}
int
-linux32_sys_rt_sigaction(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_rt_sigaction(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_rt_sigaction_args /* {
syscallarg(int) signum;
@@ -259,10 +240,7 @@ linux32_sys_rt_sigaction(l, v, retval)
}
int
-linux32_sys_rt_sigprocmask(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_rt_sigprocmask(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_rt_sigprocmask_args /* {
syscallarg(int) how;
@@ -369,10 +347,7 @@ linux32_sys_rt_sigsuspend(l, v, retval)
}
int
-linux32_sys_signal(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_signal(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_signal_args /* {
syscallarg(int) signum;
diff --git a/sys/compat/linux32/common/linux32_socket.c b/sys/compat/linux32/common/linux32_socket.c
index fafd18761d3..54bec8fc725 100644
--- a/sys/compat/linux32/common/linux32_socket.c
+++ b/sys/compat/linux32/common/linux32_socket.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_socket.c,v 1.3 2007/02/09 21:55:21 ad Exp $ */
+/* $NetBSD: linux32_socket.c,v 1.4 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.3 2007/02/09 21:55:21 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.4 2007/12/08 18:36:12 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.3 2007/02/09 21:55:21 ad Exp $"
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_socketpair(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_socketpair(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_socketpair_args /* {
syscallarg(int) domain;
@@ -92,10 +89,7 @@ linux32_sys_socketpair(l, v, retval)
}
int
-linux32_sys_sendto(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_sendto(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_sendto_args /* {
syscallarg(int) s;
@@ -119,10 +113,7 @@ linux32_sys_sendto(l, v, retval)
int
-linux32_sys_recvfrom(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_recvfrom(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_recvfrom_args /* {
syscallarg(int) s;
@@ -145,10 +136,7 @@ linux32_sys_recvfrom(l, v, retval)
}
int
-linux32_sys_setsockopt(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setsockopt(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setsockopt_args /* {
syscallarg(int) s;
@@ -170,10 +158,7 @@ linux32_sys_setsockopt(l, v, retval)
int
-linux32_sys_getsockopt(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_getsockopt(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_getsockopt_args /* {
syscallarg(int) s;
@@ -194,10 +179,7 @@ linux32_sys_getsockopt(l, v, retval)
}
int
-linux32_sys_socket(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_socket(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_socket_args /* {
syscallarg(int) domain;
@@ -214,10 +196,7 @@ linux32_sys_socket(l, v, retval)
}
int
-linux32_sys_bind(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_bind(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_bind_args /* {
syscallarg(int) s;
@@ -234,10 +213,7 @@ linux32_sys_bind(l, v, retval)
}
int
-linux32_sys_connect(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_connect(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_connect_args /* {
syscallarg(int) s;
@@ -259,10 +235,7 @@ linux32_sys_connect(l, v, retval)
}
int
-linux32_sys_accept(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_accept(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_accept_args /* {
syscallarg(int) s;
@@ -279,10 +252,7 @@ linux32_sys_accept(l, v, retval)
}
int
-linux32_sys_getpeername(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_getpeername(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_getpeername_args /* {
syscallarg(int) fdes;
@@ -299,10 +269,7 @@ linux32_sys_getpeername(l, v, retval)
}
int
-linux32_sys_getsockname(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_getsockname(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_getsockname_args /* {
syscallarg(int) fdec;
@@ -319,10 +286,7 @@ linux32_sys_getsockname(l, v, retval)
}
int
-linux32_sys_sendmsg(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_sendmsg(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_sendmsg_args /* {
syscallarg(int) s;
@@ -339,10 +303,7 @@ linux32_sys_sendmsg(l, v, retval)
}
int
-linux32_sys_recvmsg(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_recvmsg(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_recvmsg_args /* {
syscallarg(int) s;
@@ -359,10 +320,7 @@ linux32_sys_recvmsg(l, v, retval)
}
int
-linux32_sys_send(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_send(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_send_args /* {
syscallarg(int) s;
@@ -383,10 +341,7 @@ linux32_sys_send(l, v, retval)
}
int
-linux32_sys_recv(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_recv(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_recv_args /* {
syscallarg(int) s;
diff --git a/sys/compat/linux32/common/linux32_socketcall.c b/sys/compat/linux32/common/linux32_socketcall.c
index 44edbf1fe7b..0f76048fd0f 100644
--- a/sys/compat/linux32/common/linux32_socketcall.c
+++ b/sys/compat/linux32/common/linux32_socketcall.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_socketcall.c,v 1.4 2007/08/15 12:07:30 ad Exp $ */
+/* $NetBSD: linux32_socketcall.c,v 1.5 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -31,7 +31,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_socketcall.c,v 1.4 2007/08/15 12:07:30 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_socketcall.c,v 1.5 2007/12/08 18:36:12 dsl Exp $");
#include "opt_ktrace.h"
#include <sys/types.h>
@@ -85,10 +85,7 @@ static const struct {
#undef s
int
-linux32_sys_socketcall(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_socketcall(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_socketcall_args /* {
syscallarg(int) what;
diff --git a/sys/compat/linux32/common/linux32_stat.c b/sys/compat/linux32/common/linux32_stat.c
index db7307f31d6..6912c23e9ae 100644
--- a/sys/compat/linux32/common/linux32_stat.c
+++ b/sys/compat/linux32/common/linux32_stat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_stat.c,v 1.8 2007/04/22 08:29:57 dsl Exp $ */
+/* $NetBSD: linux32_stat.c,v 1.9 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_stat.c,v 1.8 2007/04/22 08:29:57 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_stat.c,v 1.9 2007/12/08 18:36:12 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -76,9 +76,7 @@ static inline void linux32_from_stat(struct stat *, struct linux32_stat64 *);
#define linux_fakedev(x,y) (x)
static inline void
-linux32_from_stat(st, st32)
- struct stat *st;
- struct linux32_stat64 *st32;
+linux32_from_stat(struct stat *st, struct linux32_stat64 *st32)
{
bzero(st32, sizeof(*st32));
st32->lst_dev = linux_fakedev(st->st_dev, 0);
diff --git a/sys/compat/linux32/common/linux32_sysctl.c b/sys/compat/linux32/common/linux32_sysctl.c
index adf789ebc9c..d1aba2582b5 100644
--- a/sys/compat/linux32/common/linux32_sysctl.c
+++ b/sys/compat/linux32/common/linux32_sysctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_sysctl.c,v 1.6 2007/08/15 12:07:30 ad Exp $ */
+/* $NetBSD: linux32_sysctl.c,v 1.7 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -31,7 +31,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sysctl.c,v 1.6 2007/08/15 12:07:30 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sysctl.c,v 1.7 2007/12/08 18:36:12 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -146,10 +146,7 @@ SYSCTL_SETUP(linux32_sysctl_setup, "linux32 emulated sysctl subtree setup")
}
int
-linux32_sys___sysctl(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys___sysctl(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys___sysctl_args /* {
syscallarg(linux32___sysctlp_t) lsp;
diff --git a/sys/compat/linux32/common/linux32_sysinfo.c b/sys/compat/linux32/common/linux32_sysinfo.c
index 82d27357f48..6221fe9e366 100644
--- a/sys/compat/linux32/common/linux32_sysinfo.c
+++ b/sys/compat/linux32/common/linux32_sysinfo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_sysinfo.c,v 1.4 2007/07/21 23:39:46 xtraeme Exp $ */
+/* $NetBSD: linux32_sysinfo.c,v 1.5 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sysinfo.c,v 1.4 2007/07/21 23:39:46 xtraeme Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sysinfo.c,v 1.5 2007/12/08 18:36:12 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -60,10 +60,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_sysinfo.c,v 1.4 2007/07/21 23:39:46 xtraeme
/* ARGSUSED */
int
-linux32_sys_sysinfo(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_sysinfo(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_sysinfo_args /* {
syscallarg(struct linux32_sysinfo *) arg;
diff --git a/sys/compat/linux32/common/linux32_time.c b/sys/compat/linux32/common/linux32_time.c
index 05860c5c829..bd0ef9115f2 100644
--- a/sys/compat/linux32/common/linux32_time.c
+++ b/sys/compat/linux32/common/linux32_time.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_time.c,v 1.14 2007/11/25 00:35:27 elad Exp $ */
+/* $NetBSD: linux32_time.c,v 1.15 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_time.c,v 1.14 2007/11/25 00:35:27 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_time.c,v 1.15 2007/12/08 18:36:12 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -75,10 +75,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_time.c,v 1.14 2007/11/25 00:35:27 elad Exp $
extern struct timezone linux_sys_tz;
int
-linux32_sys_gettimeofday(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_gettimeofday(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_gettimeofday_args /* {
syscallarg(netbsd32_timevalp_t) tp;
@@ -107,10 +104,7 @@ linux32_sys_gettimeofday(l, v, retval)
}
int
-linux32_sys_settimeofday(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_settimeofday(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_settimeofday_args /* {
syscallarg(netbsd32_timevalp_t) tp;
@@ -125,10 +119,7 @@ linux32_sys_settimeofday(l, v, retval)
}
int
-linux32_sys_time(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_time(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_time_args /* {
syscallcarg(linux32_timep_t) t;
@@ -158,10 +149,7 @@ timeval_to_clock_t(struct timeval *tv)
}
int
-linux32_sys_times(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_times(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_times_args /* {
syscallarg(linux32_tmsp_t) tms;
@@ -191,10 +179,7 @@ linux32_sys_times(l, v, retval)
}
int
-linux32_sys_stime(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_stime(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_stime_args /* {
syscallarg(linux32_timep_t) t;
@@ -213,10 +198,7 @@ linux32_sys_stime(l, v, retval)
}
int
-linux32_sys_utime(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_utime(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_utime_args /* {
syscallarg(const netbsd32_charp) path;
diff --git a/sys/compat/linux32/common/linux32_unistd.c b/sys/compat/linux32/common/linux32_unistd.c
index f9f4de9509c..805f800468f 100644
--- a/sys/compat/linux32/common/linux32_unistd.c
+++ b/sys/compat/linux32/common/linux32_unistd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_unistd.c,v 1.14 2007/11/16 12:56:50 njoly Exp $ */
+/* $NetBSD: linux32_unistd.c,v 1.15 2007/12/08 18:36:12 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_unistd.c,v 1.14 2007/11/16 12:56:50 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_unistd.c,v 1.15 2007/12/08 18:36:12 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -73,10 +73,7 @@ static int linux32_select1(struct lwp *, register_t *,
int, fd_set *, fd_set *, fd_set *, struct timeval *);
int
-linux32_sys_brk(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_brk(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_brk_args /* {
syscallarg(netbsd32_charp) nsize;
@@ -88,10 +85,7 @@ linux32_sys_brk(l, v, retval)
}
int
-linux32_sys_llseek(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_llseek(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_llseek_args /* {
syscallcarg(int) fd;
@@ -112,10 +106,7 @@ linux32_sys_llseek(l, v, retval)
}
int
-linux32_sys_select(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_select(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_select_args /* {
syscallarg(int) nfds;
@@ -133,10 +124,7 @@ linux32_sys_select(l, v, retval)
}
int
-linux32_sys_oldselect(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_oldselect(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_oldselect_args /* {
syscallarg(linux32_oldselectp_t) lsp;
@@ -234,10 +222,7 @@ linux32_select1(l, retval, nfds, readfds, writefds, exceptfds, timeout)
}
int
-linux32_sys_pipe(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_pipe(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_pipe_args /* {
syscallarg(netbsd32_intp) fd;
@@ -262,10 +247,7 @@ linux32_sys_pipe(l, v, retval)
int
-linux32_sys_unlink(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_unlink(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_unlink_args /* {
syscallarg(const netbsd32_charp) path;
@@ -278,10 +260,7 @@ linux32_sys_unlink(l, v, retval)
}
int
-linux32_sys_creat(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_creat(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_creat_args /* {
syscallarg(const netbsd32_charp) path;
@@ -297,10 +276,7 @@ linux32_sys_creat(l, v, retval)
}
int
-linux32_sys_mknod(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_mknod(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_mknod_args /* {
syscallarg(const netbsd32_charp) path;
@@ -317,10 +293,7 @@ linux32_sys_mknod(l, v, retval)
}
int
-linux32_sys_chown16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_chown16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_chown16_args /* {
syscallarg(const netbsd32_charp) path;
@@ -345,10 +318,7 @@ linux32_sys_chown16(l, v, retval)
}
int
-linux32_sys_lchown16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_lchown16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_lchown16_args /* {
syscallarg(const netbsd32_charp) path;
@@ -373,10 +343,7 @@ linux32_sys_lchown16(l, v, retval)
}
int
-linux32_sys_break(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_break(struct lwp *l, void *v, register_t *retval)
{
#if 0
struct linux32_sys_break_args /* {
@@ -388,10 +355,7 @@ linux32_sys_break(l, v, retval)
}
int
-linux32_sys_rename(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_rename(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_rename_args /* {
syscallarg(const netbsd32_charp) from;
@@ -406,10 +370,7 @@ linux32_sys_rename(l, v, retval)
}
int
-linux32_sys_getgroups16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_getgroups16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_getgroups16_args /* {
syscallarg(int) gidsetsize;
@@ -424,10 +385,7 @@ linux32_sys_getgroups16(l, v, retval)
}
int
-linux32_sys_setgroups16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setgroups16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setgroups16_args /* {
syscallarg(int) gidsetsize;
@@ -442,10 +400,7 @@ linux32_sys_setgroups16(l, v, retval)
}
int
-linux32_sys_swapon(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_swapon(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_swapon_args /* {
syscallarg(const netbsd32_charp) name;
@@ -459,10 +414,7 @@ linux32_sys_swapon(l, v, retval)
}
int
-linux32_sys_swapoff(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_swapoff(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_swapoff_args /* {
syscallarg(const netbsd32_charp) path;
@@ -477,10 +429,7 @@ linux32_sys_swapoff(l, v, retval)
int
-linux32_sys_reboot(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_reboot(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_reboot_args /* {
syscallarg(int) magic1;
@@ -499,10 +448,7 @@ linux32_sys_reboot(l, v, retval)
}
int
-linux32_sys_truncate(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_truncate(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_truncate_args /* {
syscallarg(const netbsd32_charp) path;
@@ -518,10 +464,7 @@ linux32_sys_truncate(l, v, retval)
}
int
-linux32_sys_fchown16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_fchown16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_fchown16_args /* {
syscallarg(int) fd;
@@ -546,10 +489,7 @@ linux32_sys_fchown16(l, v, retval)
}
int
-linux32_sys_setresuid(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setresuid(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setresuid_args /* {
syscallarg(uid_t) ruid;
@@ -566,10 +506,7 @@ linux32_sys_setresuid(l, v, retval)
}
int
-linux32_sys_setresgid(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setresgid(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setresgid_args /* {
syscallarg(gid_t) rgid;
@@ -586,10 +523,7 @@ linux32_sys_setresgid(l, v, retval)
}
int
-linux32_sys_nice(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_nice(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_nice_args /* {
syscallarg(int) incr;
@@ -604,10 +538,7 @@ linux32_sys_nice(l, v, retval)
}
int
-linux32_sys_alarm(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_alarm(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_alarm_args /* {
syscallarg(unsigned int) secs;
@@ -620,10 +551,7 @@ linux32_sys_alarm(l, v, retval)
}
int
-linux32_sys_fdatasync(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_fdatasync(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_fdatasync_args /* {
syscallarg(int) fd;
@@ -636,10 +564,7 @@ linux32_sys_fdatasync(l, v, retval)
}
int
-linux32_sys_setfsuid(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setfsuid(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setfsuid_args /* {
syscallarg(uid_t) uid;
@@ -652,10 +577,7 @@ linux32_sys_setfsuid(l, v, retval)
}
int
-linux32_sys_setreuid16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setreuid16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setreuid16_args /* {
syscallarg(int) ruid;
@@ -676,10 +598,7 @@ linux32_sys_setreuid16(l, v, retval)
}
int
-linux32_sys_setregid16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setregid16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setregid16_args /* {
syscallarg(int) rgid;
@@ -700,10 +619,7 @@ linux32_sys_setregid16(l, v, retval)
}
int
-linux32_sys_setresuid16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setresuid16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setresuid16_args /* {
syscallarg(uid_t) ruid;
@@ -729,10 +645,7 @@ linux32_sys_setresuid16(l, v, retval)
}
int
-linux32_sys_setresgid16(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_setresgid16(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_setresgid16_args /* {
syscallarg(gid_t) rgid;
diff --git a/sys/compat/linux32/common/linux32_utsname.c b/sys/compat/linux32/common/linux32_utsname.c
index 2a17a84a973..9aa2ce97469 100644
--- a/sys/compat/linux32/common/linux32_utsname.c
+++ b/sys/compat/linux32/common/linux32_utsname.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_utsname.c,v 1.5 2007/11/09 17:43:17 njoly Exp $ */
+/* $NetBSD: linux32_utsname.c,v 1.6 2007/12/08 18:36:13 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_utsname.c,v 1.5 2007/11/09 17:43:17 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_utsname.c,v 1.6 2007/12/08 18:36:13 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_utsname.c,v 1.5 2007/11/09 17:43:17 njoly Ex
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_uname(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_uname(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_uname_args /* {
syscallarg(linux32_utsnamep) up;
@@ -94,10 +91,7 @@ linux32_sys_uname(l, v, retval)
}
int
-linux32_sys_oldolduname(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_oldolduname(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_uname_args /* {
syscallarg(linux32_oldoldutsnamep_t) up;
diff --git a/sys/compat/linux32/common/linux32_wait.c b/sys/compat/linux32/common/linux32_wait.c
index 764818f7880..399f376423d 100644
--- a/sys/compat/linux32/common/linux32_wait.c
+++ b/sys/compat/linux32/common/linux32_wait.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_wait.c,v 1.3 2007/03/18 21:38:33 dsl Exp $ */
+/* $NetBSD: linux32_wait.c,v 1.4 2007/12/08 18:36:13 dsl Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_wait.c,v 1.3 2007/03/18 21:38:33 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_wait.c,v 1.4 2007/12/08 18:36:13 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_wait.c,v 1.3 2007/03/18 21:38:33 dsl Exp $")
#include <compat/linux32/linux32_syscallargs.h>
int
-linux32_sys_waitpid(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_waitpid(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_waitpid_args /* {
syscallarg(int) pid;
@@ -91,10 +88,7 @@ linux32_sys_waitpid(l, v, retval)
}
int
-linux32_sys_wait4(l, v, retval)
- struct lwp *l;
- void *v;
- register_t *retval;
+linux32_sys_wait4(struct lwp *l, void *v, register_t *retval)
{
struct linux32_sys_wait4_args /* {
syscallarg(int) pid;