diff options
| author | dsl <dsl@NetBSD.org> | 2007-12-08 18:35:53 +0000 |
|---|---|---|
| committer | dsl <dsl@NetBSD.org> | 2007-12-08 18:35:53 +0000 |
| commit | 28bae79b2713013fa5c98bdd7a8bdde85ccc3ffd (patch) | |
| tree | e96dcadb2e523d907f659aa130436e909e7bfd97 /sys/compat/linux/arch | |
| parent | c26a54ba243a5ba3a847aeba86fe44f2e4a86203 (diff) | |
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
Diffstat (limited to 'sys/compat/linux/arch')
| -rw-r--r-- | sys/compat/linux/arch/alpha/linux_machdep.c | 28 | ||||
| -rw-r--r-- | sys/compat/linux/arch/alpha/linux_pipe.c | 9 | ||||
| -rw-r--r-- | sys/compat/linux/arch/amd64/linux_machdep.c | 24 | ||||
| -rw-r--r-- | sys/compat/linux/arch/arm/linux_machdep.c | 28 | ||||
| -rw-r--r-- | sys/compat/linux/arch/arm/linux_ptrace.c | 9 | ||||
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_machdep.c | 53 | ||||
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_ptrace.c | 9 | ||||
| -rw-r--r-- | sys/compat/linux/arch/m68k/linux_machdep.c | 46 | ||||
| -rw-r--r-- | sys/compat/linux/arch/mips/linux_machdep.c | 57 | ||||
| -rw-r--r-- | sys/compat/linux/arch/powerpc/linux_machdep.c | 53 |
10 files changed, 77 insertions, 239 deletions
diff --git a/sys/compat/linux/arch/alpha/linux_machdep.c b/sys/compat/linux/arch/alpha/linux_machdep.c index 14489a12c6c..2cb1dbd4dd1 100644 --- a/sys/compat/linux/arch/alpha/linux_machdep.c +++ b/sys/compat/linux/arch/alpha/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.39 2007/07/08 09:41:00 pooka Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.40 2007/12/08 18:36:05 dsl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.39 2007/07/08 09:41:00 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.40 2007/12/08 18:36:05 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -99,10 +99,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.39 2007/07/08 09:41:00 pooka Exp */ void -linux_setregs(l, epp, stack) - struct lwp *l; - struct exec_package *epp; - u_long stack; +linux_setregs(struct lwp *l, struct exec_package *epp, u_long stack) { #ifdef DEBUG struct trapframe *tfp = l->l_md.md_tf; @@ -430,10 +427,7 @@ linux_restore_sigcontext(struct lwp *l, struct linux_sigcontext context, } int -linux_sys_rt_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_rt_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sys_rt_sigreturn_args /* { syscallarg(struct linux_rt_sigframe *) sfp; @@ -467,10 +461,7 @@ linux_sys_rt_sigreturn(l, v, retval) int -linux_sys_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sys_sigreturn_args /* { syscallarg(struct linux_sigframe *) sfp; @@ -506,10 +497,7 @@ linux_sys_sigreturn(l, v, retval) */ /* XXX XAX update this, add maps, etc... */ int -linux_machdepioctl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_machdepioctl(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ioctl_args /* { syscallarg(int) fd; @@ -534,9 +522,7 @@ linux_machdepioctl(l, v, retval) /* XXX XAX fix this */ dev_t -linux_fakedev(dev, raw) - dev_t dev; - int raw; +linux_fakedev(dev_t dev, int raw) { return dev; } diff --git a/sys/compat/linux/arch/alpha/linux_pipe.c b/sys/compat/linux/arch/alpha/linux_pipe.c index b0664a6b673..c603a01312a 100644 --- a/sys/compat/linux/arch/alpha/linux_pipe.c +++ b/sys/compat/linux/arch/alpha/linux_pipe.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_pipe.c,v 1.10 2007/02/09 21:55:18 ad Exp $ */ +/* $NetBSD: linux_pipe.c,v 1.11 2007/12/08 18:36:05 dsl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_pipe.c,v 1.10 2007/02/09 21:55:18 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_pipe.c,v 1.11 2007/12/08 18:36:05 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -65,10 +65,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_pipe.c,v 1.10 2007/02/09 21:55:18 ad Exp $"); int -linux_sys_pipe(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_pipe(struct lwp *l, void *v, register_t *retval) { int error; diff --git a/sys/compat/linux/arch/amd64/linux_machdep.c b/sys/compat/linux/arch/amd64/linux_machdep.c index 6eff484f479..994ec7a56e1 100644 --- a/sys/compat/linux/arch/amd64/linux_machdep.c +++ b/sys/compat/linux/arch/amd64/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.25 2007/10/19 18:52:10 njoly Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.26 2007/12/08 18:36:05 dsl Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.25 2007/10/19 18:52:10 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.26 2007/12/08 18:36:05 dsl Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -132,9 +132,7 @@ linux_setregs(l, epp, stack) } void -linux_sendsig(ksi, mask) - const ksiginfo_t *ksi; - const sigset_t *mask; +linux_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) { struct lwp *l = curlwp; struct proc *p = l->l_proc; @@ -357,9 +355,7 @@ linux_sys_ioperm(l, v, retval) } dev_t -linux_fakedev(dev, raw) - dev_t dev; - int raw; +linux_fakedev(dev_t dev, int raw) { extern const struct cdevsw ptc_cdevsw, pts_cdevsw; @@ -516,10 +512,7 @@ linux_sys_rt_sigreturn(l, v, retval) } int -linux_sys_arch_prctl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_arch_prctl(struct lwp *l, void *v, register_t *retval) { struct linux_sys_arch_prctl_args /* { syscallarg(int) code; @@ -659,8 +652,7 @@ linux_buildcontext(struct lwp *l, void *catcher, void *f) } void * -linux_get_newtls(l) - struct lwp *l; +linux_get_newtls(struct lwp *l) { struct trapframe *tf = l->l_md.md_regs; @@ -668,9 +660,7 @@ linux_get_newtls(l) } int -linux_set_newtls(l, tls) - struct lwp *l; - void *tls; +linux_set_newtls(struct lwp *l, void *tls) { struct linux_sys_arch_prctl_args cup; register_t retval; diff --git a/sys/compat/linux/arch/arm/linux_machdep.c b/sys/compat/linux/arch/arm/linux_machdep.c index 0ad586e6c29..a2b9d3521dd 100644 --- a/sys/compat/linux/arch/arm/linux_machdep.c +++ b/sys/compat/linux/arch/arm/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.22 2007/03/26 22:44:40 hubertf Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.23 2007/12/08 18:36:05 dsl Exp $ */ /*- * Copyright (c) 1995, 2000 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.22 2007/03/26 22:44:40 hubertf Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.23 2007/12/08 18:36:05 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -75,10 +75,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.22 2007/03/26 22:44:40 hubertf E #include <compat/linux/linux_syscallargs.h> void -linux_setregs(l, epp, stack) - struct lwp *l; - struct exec_package *epp; - u_long stack; +linux_setregs(struct lwp *l, struct exec_package *epp, u_long stack) { setregs(l, epp, stack); @@ -195,10 +192,7 @@ linux_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) * a machine fault. */ int -linux_sys_rt_sigreturn(p, v, retval) - struct proc *p; - void *v; - register_t *retval; +linux_sys_rt_sigreturn(struct proc *p, void *v, register_t *retval) { /* XXX XAX write me */ return(ENOSYS); @@ -206,10 +200,7 @@ linux_sys_rt_sigreturn(p, v, retval) #endif int -linux_sys_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sigframe *sfp, frame; struct proc *p = l->l_proc; @@ -273,9 +264,7 @@ linux_sys_sigreturn(l, v, retval) * major device numbers remapping */ dev_t -linux_fakedev(dev, raw) - dev_t dev; - int raw; +linux_fakedev(dev_t dev, int raw) { /* XXX write me */ return dev; @@ -285,10 +274,7 @@ linux_fakedev(dev, raw) * We come here in a last attempt to satisfy a Linux ioctl() call */ int -linux_machdepioctl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_machdepioctl(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ioctl_args /* { syscallarg(int) fd; diff --git a/sys/compat/linux/arch/arm/linux_ptrace.c b/sys/compat/linux/arch/arm/linux_ptrace.c index 08456d7ab17..cb060cb8610 100644 --- a/sys/compat/linux/arch/arm/linux_ptrace.c +++ b/sys/compat/linux/arch/arm/linux_ptrace.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.9 2007/03/04 06:01:19 christos Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.10 2007/12/08 18:36:05 dsl Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.9 2007/03/04 06:01:19 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.10 2007/12/08 18:36:05 dsl Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -95,10 +95,7 @@ struct linux_reg { #define LINUX_REG_ORIG_R0 17 int -linux_sys_ptrace_arch(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_ptrace_arch(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ptrace_args /* { syscallarg(int) request; diff --git a/sys/compat/linux/arch/i386/linux_machdep.c b/sys/compat/linux/arch/i386/linux_machdep.c index 74a76b270dd..9901aebf2d0 100644 --- a/sys/compat/linux/arch/i386/linux_machdep.c +++ b/sys/compat/linux/arch/i386/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.131 2007/12/04 18:40:13 dsl Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.132 2007/12/08 18:36:05 dsl Exp $ */ /*- * Copyright (c) 1995, 2000 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.131 2007/12/04 18:40:13 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.132 2007/12/08 18:36:05 dsl Exp $"); #if defined(_KERNEL_OPT) #include "opt_vm86.h" @@ -130,10 +130,7 @@ extern char linux_sigcode[], linux_rt_sigcode[]; */ void -linux_setregs(l, epp, stack) - struct lwp *l; - struct exec_package *epp; - u_long stack; +linux_setregs(struct lwp *l, struct exec_package *epp, u_long stack) { struct pcb *pcb = &l->l_addr->u_pcb; struct trapframe *tf; @@ -197,12 +194,7 @@ linux_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) static void -linux_save_ucontext(l, tf, mask, sas, uc) - struct lwp *l; - struct trapframe *tf; - const sigset_t *mask; - struct sigaltstack *sas; - struct linux_ucontext *uc; +linux_save_ucontext(struct lwp *l, struct trapframe *tf, const sigset_t *mask, struct sigaltstack *sas, struct linux_ucontext *uc) { uc->uc_flags = 0; uc->uc_link = NULL; @@ -213,11 +205,7 @@ linux_save_ucontext(l, tf, mask, sas, uc) } static void -linux_save_sigcontext(l, tf, mask, sc) - struct lwp *l; - struct trapframe *tf; - const sigset_t *mask; - struct linux_sigcontext *sc; +linux_save_sigcontext(struct lwp *l, struct trapframe *tf, const sigset_t *mask, struct linux_sigcontext *sc) { /* Save register context. */ #ifdef VM86 @@ -449,10 +437,7 @@ linux_old_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) * a machine fault. */ int -linux_sys_rt_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_rt_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sys_rt_sigreturn_args /* { syscallarg(struct linux_ucontext *) ucp; @@ -473,10 +458,7 @@ linux_sys_rt_sigreturn(l, v, retval) } int -linux_sys_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sys_sigreturn_args /* { syscallarg(struct linux_sigcontext *) scp; @@ -725,9 +707,7 @@ linux_sys_modify_ldt(struct lwp *l, void *v, * array for all major device numbers, and map linux_mknod too. */ dev_t -linux_fakedev(dev, raw) - dev_t dev; - int raw; +linux_fakedev(dev_t dev, int raw) { extern const struct cdevsw ptc_cdevsw, pts_cdevsw; const struct cdevsw *cd = cdevsw_lookup(dev); @@ -865,10 +845,7 @@ fd2biosinfo(struct proc *p, struct file *fp) * We come here in a last attempt to satisfy a Linux ioctl() call */ int -linux_machdepioctl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_machdepioctl(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ioctl_args /* { syscallarg(int) fd; @@ -1120,10 +1097,7 @@ linux_sys_iopl(struct lwp *l, void *v, register_t *retval) * just let it have the whole range. */ int -linux_sys_ioperm(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_ioperm(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ioperm_args /* { syscallarg(unsigned int) lo; @@ -1161,8 +1135,7 @@ linux_get_uname_arch(void) #ifdef LINUX_NPTL void * -linux_get_newtls(l) - struct lwp *l; +linux_get_newtls(struct lwp *l) { struct trapframe *tf = l->l_md.md_regs; @@ -1171,9 +1144,7 @@ linux_get_newtls(l) } int -linux_set_newtls(l, tls) - struct lwp *l; - void *tls; +linux_set_newtls(struct lwp *l, void *tls) { /* XXX: Implement me */ return 0; diff --git a/sys/compat/linux/arch/i386/linux_ptrace.c b/sys/compat/linux/arch/i386/linux_ptrace.c index 471b61cc518..954699958cb 100644 --- a/sys/compat/linux/arch/i386/linux_ptrace.c +++ b/sys/compat/linux/arch/i386/linux_ptrace.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.18 2007/07/09 21:10:46 ad Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.19 2007/12/08 18:36:06 dsl Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.18 2007/07/09 21:10:46 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.19 2007/12/08 18:36:06 dsl Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -125,10 +125,7 @@ struct linux_user { #define ISSET(t, f) ((t) & (f)) int -linux_sys_ptrace_arch(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_ptrace_arch(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ptrace_args /* { syscallarg(int) request; diff --git a/sys/compat/linux/arch/m68k/linux_machdep.c b/sys/compat/linux/arch/m68k/linux_machdep.c index 2caf4a206d2..4aa38f67946 100644 --- a/sys/compat/linux/arch/m68k/linux_machdep.c +++ b/sys/compat/linux/arch/m68k/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.34 2007/12/04 18:40:14 dsl Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.35 2007/12/08 18:36:06 dsl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.34 2007/12/04 18:40:14 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.35 2007/12/08 18:36:06 dsl Exp $"); #define COMPAT_LINUX 1 @@ -95,10 +95,7 @@ void setup_linux_rt_sigframe(struct frame *frame, int sig, * Setup registers on program execution. */ void -linux_setregs(l, epp, stack) - struct lwp *l; - struct exec_package *epp; - u_long stack; +linux_setregs(struct lwp *l, struct exec_package *epp, u_long stack) { setregs(l, epp, stack); @@ -108,11 +105,7 @@ linux_setregs(l, epp, stack) * Setup signal frame for old signal interface. */ void -setup_linux_sigframe(frame, sig, mask, usp) - struct frame *frame; - int sig; - const sigset_t *mask; - void *usp; +setup_linux_sigframe(struct frame *frame, int sig, const sigset_t *mask, void *usp) { struct lwp *l = curlwp; struct proc *p = l->l_proc; @@ -275,12 +268,7 @@ setup_linux_sigframe(frame, sig, mask, usp) * Setup signal frame for new RT signal interface. */ void -setup_linux_rt_sigframe(frame, sig, mask, usp, l) - struct frame *frame; - int sig; - const sigset_t *mask; - void *usp; - struct lwp *l; +setup_linux_rt_sigframe(struct frame *frame, int sig, const sigset_t *mask, void *usp, struct lwp *l) { struct proc *p = l->l_proc; struct linux_rt_sigframe *fp, kf; @@ -512,10 +500,7 @@ linux_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) */ /* ARGSUSED */ int -linux_sys_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_sigreturn(struct lwp *l, void *v, register_t *retval) { struct proc *p = l->l_proc; struct frame *frame; @@ -671,10 +656,7 @@ bad: /* ARGSUSED */ int -linux_sys_rt_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_rt_sigreturn(struct lwp *l, void *v, register_t *retval) { struct proc *p = l->l_proc; struct frame *frame; @@ -834,10 +816,7 @@ bad: /* ARGSUSED */ int -linux_sys_cacheflush(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_cacheflush(struct lwp *l, void *v, register_t *retval) { struct linux_sys_cacheflush_args /* { syscallarg(unsigned long) addr; @@ -897,9 +876,7 @@ linux_sys_cacheflush(l, v, retval) * Convert NetBSD's devices to Linux's. */ dev_t -linux_fakedev(dev, raw) - dev_t dev; - int raw; +linux_fakedev(dev_t dev, int raw) { /* do nothing for now */ @@ -910,10 +887,7 @@ linux_fakedev(dev, raw) * We come here in a last attempt to satisfy a Linux ioctl() call. */ int -linux_machdepioctl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_machdepioctl(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ioctl_args /* { syscallarg(int) fd; diff --git a/sys/compat/linux/arch/mips/linux_machdep.c b/sys/compat/linux/arch/mips/linux_machdep.c index edbd8ee57a0..53a0804006a 100644 --- a/sys/compat/linux/arch/mips/linux_machdep.c +++ b/sys/compat/linux/arch/mips/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.33 2007/11/08 21:07:23 njoly Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.34 2007/12/08 18:36:06 dsl Exp $ */ /*- * Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.33 2007/11/08 21:07:23 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.34 2007/12/08 18:36:06 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -102,10 +102,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.33 2007/11/08 21:07:23 njoly Exp * entry uses NetBSD's native setregs instead of linux_setregs */ void -linux_setregs(l, pack, stack) - struct lwp *l; - struct exec_package *pack; - u_long stack; +linux_setregs(struct lwp *l, struct exec_package *pack, u_long stack) { setregs(l, pack, stack); return; @@ -121,9 +118,7 @@ linux_setregs(l, pack, stack) */ void -linux_sendsig(ksi, mask) - const ksiginfo_t *ksi; - const sigset_t *mask; +linux_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) { const int sig = ksi->ksi_signo; struct lwp *l = curlwp; @@ -240,10 +235,7 @@ linux_sendsig(ksi, mask) * stack state from context left by sendsig (above). */ int -linux_sys_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sys_sigreturn_args /* { syscallarg(struct linux_sigframe *) sf; @@ -294,10 +286,7 @@ linux_sys_sigreturn(l, v, retval) int -linux_sys_rt_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_rt_sigreturn(struct lwp *l, void *v, register_t *retval) { return (ENOSYS); } @@ -305,10 +294,7 @@ linux_sys_rt_sigreturn(l, v, retval) #if 0 int -linux_sys_modify_ldt(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_modify_ldt(struct lwp *l, void *v, register_t *retval) { /* * This syscall is not implemented in Linux/Mips: we should not @@ -325,9 +311,7 @@ linux_sys_modify_ldt(l, v, retval) * major device numbers remapping */ dev_t -linux_fakedev(dev, raw) - dev_t dev; - int raw; +linux_fakedev(dev_t dev, int raw) { /* XXX write me */ return dev; @@ -337,10 +321,7 @@ linux_fakedev(dev, raw) * We come here in a last attempt to satisfy a Linux ioctl() call */ int -linux_machdepioctl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_machdepioctl(struct lwp *l, void *v, register_t *retval) { return 0; } @@ -350,10 +331,7 @@ linux_machdepioctl(l, v, retval) * just let it have the whole range. */ int -linux_sys_ioperm(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_ioperm(struct lwp *l, void *v, register_t *retval) { /* * This syscall is not implemented in Linux/Mips: we should not be here @@ -368,10 +346,7 @@ linux_sys_ioperm(l, v, retval) * wrapper linux_sys_new_uname() -> linux_sys_uname() */ int -linux_sys_new_uname(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_new_uname(struct lwp *l, void *v, register_t *retval) { /* * Use this if you want to try Linux emulation with a glibc-2.2 @@ -402,10 +377,7 @@ linux_sys_new_uname(l, v, retval) * we emulate this broken beahior. */ int -linux_sys_cacheflush(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_cacheflush(struct lwp *l, void *v, register_t *retval) { mips_icache_sync_all(); mips_dcache_wbinv_all(); @@ -417,10 +389,7 @@ linux_sys_cacheflush(l, v, retval) * some binaries and some libraries use it. */ int -linux_sys_sysmips(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_sysmips(struct lwp *l, void *v, register_t *retval) { struct linux_sys_sysmips_args { syscallarg(int) cmd; diff --git a/sys/compat/linux/arch/powerpc/linux_machdep.c b/sys/compat/linux/arch/powerpc/linux_machdep.c index 4930197bd57..db8fe5119f1 100644 --- a/sys/compat/linux/arch/powerpc/linux_machdep.c +++ b/sys/compat/linux/arch/powerpc/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.35 2007/10/19 12:16:38 ad Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.36 2007/12/08 18:36:06 dsl Exp $ */ /*- * Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.35 2007/10/19 12:16:38 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.36 2007/12/08 18:36:06 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -97,10 +97,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.35 2007/10/19 12:16:38 ad Exp $" * entry uses NetBSD's native setregs instead of linux_setregs */ void -linux_setregs(l, pack, stack) - struct lwp *l; - struct exec_package *pack; - u_long stack; +linux_setregs(struct lwp *l, struct exec_package *pack, u_long stack) { setregs(l, pack, stack); } @@ -277,10 +274,7 @@ linux_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) * XXX not tested */ int -linux_sys_rt_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_rt_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sys_rt_sigreturn_args /* { syscallarg(struct linux_rt_sigframe *) sfp; @@ -370,10 +364,7 @@ linux_sys_rt_sigreturn(l, v, retval) * The following needs code review for potential security issues */ int -linux_sys_sigreturn(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_sigreturn(struct lwp *l, void *v, register_t *retval) { struct linux_sys_sigreturn_args /* { syscallarg(struct linux_sigcontext *) scp; @@ -460,10 +451,7 @@ linux_sys_sigreturn(l, v, retval) #if 0 int -linux_sys_modify_ldt(p, v, retval) - struct proc *p; - void *v; - register_t *retval; +linux_sys_modify_ldt(struct proc *p, void *v, register_t *retval) { /* * This syscall is not implemented in Linux/PowerPC: we should not @@ -480,9 +468,7 @@ linux_sys_modify_ldt(p, v, retval) * major device numbers remapping */ dev_t -linux_fakedev(dev, raw) - dev_t dev; - int raw; +linux_fakedev(dev_t dev, int raw) { /* XXX write me */ return dev; @@ -492,10 +478,7 @@ linux_fakedev(dev, raw) * We come here in a last attempt to satisfy a Linux ioctl() call */ int -linux_machdepioctl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_machdepioctl(struct lwp *l, void *v, register_t *retval) { struct linux_sys_ioctl_args /* { syscallarg(int) fd; @@ -525,10 +508,7 @@ linux_machdepioctl(l, v, retval) * to rely on I/O permission maps, which are not implemented. */ int -linux_sys_iopl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_iopl(struct lwp *l, void *v, register_t *retval) { /* * This syscall is not implemented in Linux/PowerPC: we should not be here @@ -545,10 +525,7 @@ linux_sys_iopl(l, v, retval) * just let it have the whole range. */ int -linux_sys_ioperm(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_ioperm(struct lwp *l, void *v, register_t *retval) { /* * This syscall is not implemented in Linux/PowerPC: we should not be here @@ -563,10 +540,7 @@ linux_sys_ioperm(l, v, retval) * wrapper linux_sys_new_uname() -> linux_sys_uname() */ int -linux_sys_new_uname(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_new_uname(struct lwp *l, void *v, register_t *retval) { return linux_sys_uname(l, v, retval); } @@ -575,10 +549,7 @@ linux_sys_new_uname(l, v, retval) * wrapper linux_sys_new_select() -> linux_sys_select() */ int -linux_sys_new_select(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +linux_sys_new_select(struct lwp *l, void *v, register_t *retval) { return linux_sys_select(l, v, retval); } |
