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/common | |
| 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/common')
| -rw-r--r-- | sys/compat/common/compat_exec.c | 16 | ||||
| -rw-r--r-- | sys/compat/common/compat_file.c | 229 | ||||
| -rw-r--r-- | sys/compat/common/compat_util.c | 17 | ||||
| -rw-r--r-- | sys/compat/common/kern_ipc_10.c | 19 | ||||
| -rw-r--r-- | sys/compat/common/kern_sig_13.c | 20 | ||||
| -rw-r--r-- | sys/compat/common/kern_sig_43.c | 28 | ||||
| -rw-r--r-- | sys/compat/common/sysv_ipc_14.c | 12 | ||||
| -rw-r--r-- | sys/compat/common/sysv_msg_14.c | 12 | ||||
| -rw-r--r-- | sys/compat/common/sysv_shm_14.c | 12 | ||||
| -rw-r--r-- | sys/compat/common/tty_43.c | 22 | ||||
| -rw-r--r-- | sys/compat/common/uipc_syscalls_43.c | 7 | ||||
| -rw-r--r-- | sys/compat/common/vfs_syscalls_20.c | 9 | ||||
| -rw-r--r-- | sys/compat/common/vfs_syscalls_43.c | 8 |
13 files changed, 103 insertions, 308 deletions
diff --git a/sys/compat/common/compat_exec.c b/sys/compat/common/compat_exec.c index d4a3446db59..cb7dd082179 100644 --- a/sys/compat/common/compat_exec.c +++ b/sys/compat/common/compat_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_exec.c,v 1.14 2005/12/11 12:19:56 christos Exp $ */ +/* $NetBSD: compat_exec.c,v 1.15 2007/12/08 18:35:53 dsl Exp $ */ /* * Copyright (c) 1993, 1994 Christopher G. Demetriou @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: compat_exec.c,v 1.14 2005/12/11 12:19:56 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: compat_exec.c,v 1.15 2007/12/08 18:35:53 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -50,9 +50,7 @@ __KERNEL_RCSID(0, "$NetBSD: compat_exec.c,v 1.14 2005/12/11 12:19:56 christos Ex * There were copies of this in the mac68k, hp300, and i386 ports. */ int -exec_aout_prep_oldzmagic(l, epp) - struct lwp *l; - struct exec_package *epp; +exec_aout_prep_oldzmagic(struct lwp *l, struct exec_package *epp) { struct exec *execp = epp->ep_hdr; int error; @@ -98,9 +96,7 @@ exec_aout_prep_oldzmagic(l, epp) * XXX: There must be a better way to share this code. */ int -exec_aout_prep_oldnmagic(l, epp) - struct lwp *l; - struct exec_package *epp; +exec_aout_prep_oldnmagic(struct lwp *l, struct exec_package *epp) { struct exec *execp = epp->ep_hdr; long bsize, baddr; @@ -142,9 +138,7 @@ exec_aout_prep_oldnmagic(l, epp) * XXX: There must be a better way to share this code. */ int -exec_aout_prep_oldomagic(l, epp) - struct lwp *l; - struct exec_package *epp; +exec_aout_prep_oldomagic(struct lwp *l, struct exec_package *epp) { struct exec *execp = epp->ep_hdr; long dsize, bsize, baddr; diff --git a/sys/compat/common/compat_file.c b/sys/compat/common/compat_file.c index 72c413425a0..ccd3d822cb3 100644 --- a/sys/compat/common/compat_file.c +++ b/sys/compat/common/compat_file.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_file.c,v 1.23 2007/07/14 15:47:27 dsl Exp $ */ +/* $NetBSD: compat_file.c,v 1.24 2007/12/08 18:35:53 dsl Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: compat_file.c,v 1.23 2007/07/14 15:47:27 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: compat_file.c,v 1.24 2007/12/08 18:35:53 dsl Exp $"); #include "opt_compat_darwin.h" #include "opt_nfsserver.h" @@ -72,10 +72,7 @@ __KERNEL_RCSID(0, "$NetBSD: compat_file.c,v 1.23 2007/07/14 15:47:27 dsl Exp $") #include <compat/common/compat_util.h> int -bsd_sys_open(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_open(struct lwp *l, void *v, register_t *retval) { struct sys_open_args /* { syscallarg(char *) path; @@ -87,10 +84,7 @@ bsd_sys_open(l, v, retval) } int -bsd_compat_43_sys_creat(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_compat_43_sys_creat(struct lwp *l, void *v, register_t *retval) { struct compat_43_sys_creat_args /* { syscallarg(char *) path; @@ -101,10 +95,7 @@ bsd_compat_43_sys_creat(l, v, retval) } int -bsd_sys_link(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_link(struct lwp *l, void *v, register_t *retval) { struct sys_link_args /* { syscallarg(char *) path; @@ -115,10 +106,7 @@ bsd_sys_link(l, v, retval) } int -bsd_sys_unlink(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_unlink(struct lwp *l, void *v, register_t *retval) { struct sys_unlink_args /* { syscallarg(char *) path; @@ -128,10 +116,7 @@ bsd_sys_unlink(l, v, retval) } int -bsd_sys_chdir(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_chdir(struct lwp *l, void *v, register_t *retval) { struct sys_chdir_args /* { syscallarg(char *) path; @@ -141,10 +126,7 @@ bsd_sys_chdir(l, v, retval) } int -bsd_sys_mknod(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_mknod(struct lwp *l, void *v, register_t *retval) { struct sys_mknod_args /* { syscallarg(char *) path; @@ -156,10 +138,7 @@ bsd_sys_mknod(l, v, retval) } int -bsd_sys_chmod(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_chmod(struct lwp *l, void *v, register_t *retval) { struct sys_chmod_args /* { syscallarg(char *) path; @@ -170,10 +149,7 @@ bsd_sys_chmod(l, v, retval) } int -bsd_sys_chown(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_chown(struct lwp *l, void *v, register_t *retval) { struct sys_chown_args /* { syscallarg(char *) path; @@ -185,10 +161,7 @@ bsd_sys_chown(l, v, retval) } int -bsd_sys_mount(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_mount(struct lwp *l, void *v, register_t *retval) { struct compat_40_sys_mount_args /* { syscallarg(char *) type; @@ -201,10 +174,7 @@ bsd_sys_mount(l, v, retval) } int -bsd_sys_unmount(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_unmount(struct lwp *l, void *v, register_t *retval) { struct sys_unmount_args /* { syscallarg(char *) path; @@ -215,10 +185,7 @@ bsd_sys_unmount(l, v, retval) } int -bsd_sys_access(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_access(struct lwp *l, void *v, register_t *retval) { struct sys_access_args /* { syscallarg(char *) path; @@ -229,10 +196,7 @@ bsd_sys_access(l, v, retval) } int -bsd_sys_chflags(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_chflags(struct lwp *l, void *v, register_t *retval) { struct sys_chflags_args /* { syscallarg(char *) path; @@ -243,10 +207,7 @@ bsd_sys_chflags(l, v, retval) } int -bsd_compat_43_sys_stat(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_compat_43_sys_stat(struct lwp *l, void *v, register_t *retval) { struct compat_43_sys_stat_args /* { syscallarg(char *) path; @@ -257,10 +218,7 @@ bsd_compat_43_sys_stat(l, v, retval) } int -bsd_compat_43_sys_lstat(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_compat_43_sys_lstat(struct lwp *l, void *v, register_t *retval) { struct compat_43_sys_lstat_args /* { syscallarg(char *) path; @@ -271,10 +229,7 @@ bsd_compat_43_sys_lstat(l, v, retval) } int -bsd_sys_acct(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_acct(struct lwp *l, void *v, register_t *retval) { struct sys_acct_args /* { syscallarg(char *) path; @@ -284,10 +239,7 @@ bsd_sys_acct(l, v, retval) } int -bsd_sys_revoke(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_revoke(struct lwp *l, void *v, register_t *retval) { struct sys_revoke_args /* { syscallarg(char *) path; @@ -297,10 +249,7 @@ bsd_sys_revoke(l, v, retval) } int -bsd_sys_symlink(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_symlink(struct lwp *l, void *v, register_t *retval) { struct sys_symlink_args /* { syscallarg(char *) path; @@ -311,10 +260,7 @@ bsd_sys_symlink(l, v, retval) } int -bsd_sys_readlink(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_readlink(struct lwp *l, void *v, register_t *retval) { struct sys_readlink_args /* { syscallarg(char *) path; @@ -326,10 +272,7 @@ bsd_sys_readlink(l, v, retval) } int -bsd_sys_execve(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_execve(struct lwp *l, void *v, register_t *retval) { struct sys_execve_args /* { syscallarg(char *) path; @@ -346,10 +289,7 @@ bsd_sys_execve(l, v, retval) } int -bsd_sys_chroot(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_chroot(struct lwp *l, void *v, register_t *retval) { struct sys_chroot_args /* { syscallarg(char *) path; @@ -359,10 +299,7 @@ bsd_sys_chroot(l, v, retval) } int -bsd_compat_12_sys_swapon(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_compat_12_sys_swapon(struct lwp *l, void *v, register_t *retval) { struct compat_12_sys_swapon_args /* { syscallarg(char *) name; @@ -372,10 +309,7 @@ bsd_compat_12_sys_swapon(l, v, retval) } int -bsd_sys_bind(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_bind(struct lwp *l, void *v, register_t *retval) { struct sys_bind_args /* { syscallarg(int) s; @@ -387,10 +321,7 @@ bsd_sys_bind(l, v, retval) } int -bsd_sys_connect(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_connect(struct lwp *l, void *v, register_t *retval) { struct sys_connect_args /* { syscallarg(int) s; @@ -402,10 +333,7 @@ bsd_sys_connect(l, v, retval) } int -bsd_sys_rename(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_rename(struct lwp *l, void *v, register_t *retval) { struct sys_rename_args /* { syscallarg(char *) from; @@ -416,10 +344,7 @@ bsd_sys_rename(l, v, retval) } int -bsd_compat_43_sys_truncate(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_compat_43_sys_truncate(struct lwp *l, void *v, register_t *retval) { struct compat_43_sys_truncate_args /* { syscallarg(char *) path; @@ -430,10 +355,7 @@ bsd_compat_43_sys_truncate(l, v, retval) } int -bsd_sys_mkfifo(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_mkfifo(struct lwp *l, void *v, register_t *retval) { struct sys_mkfifo_args /* { syscallarg(char *) path; @@ -444,10 +366,7 @@ bsd_sys_mkfifo(l, v, retval) } int -bsd_sys_mkdir(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_mkdir(struct lwp *l, void *v, register_t *retval) { struct sys_mkdir_args /* { syscallarg(char *) path; @@ -458,10 +377,7 @@ bsd_sys_mkdir(l, v, retval) } int -bsd_sys_rmdir(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_rmdir(struct lwp *l, void *v, register_t *retval) { struct sys_rmdir_args /* { syscallarg(char *) path; @@ -471,10 +387,7 @@ bsd_sys_rmdir(l, v, retval) } int -bsd_sys_utimes(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_utimes(struct lwp *l, void *v, register_t *retval) { struct sys_utimes_args /* { syscallarg(char *) path; @@ -485,10 +398,7 @@ bsd_sys_utimes(l, v, retval) } int -bsd_sys_quotactl(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_quotactl(struct lwp *l, void *v, register_t *retval) { struct sys_quotactl_args /* { syscallarg(char *) path; @@ -501,10 +411,7 @@ bsd_sys_quotactl(l, v, retval) } int -bsd_sys_statfs(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_statfs(struct lwp *l, void *v, register_t *retval) { struct compat_20_sys_statfs_args /* { syscallarg(char *) path; @@ -516,10 +423,7 @@ bsd_sys_statfs(l, v, retval) #if defined(NFS) || defined(NFSSERVER) int -bsd_sys_getfh(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_getfh(struct lwp *l, void *v, register_t *retval) { struct compat_30_sys_getfh_args /* { syscallarg(char *) fname; @@ -531,10 +435,7 @@ bsd_sys_getfh(l, v, retval) #endif /* NFS || NFSSERVER */ int -bsd_compat_12_sys_stat(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_compat_12_sys_stat(struct lwp *l, void *v, register_t *retval) { struct compat_12_sys_stat_args /* { syscallarg(char *) path; @@ -545,10 +446,7 @@ bsd_compat_12_sys_stat(l, v, retval) } int -bsd_compat_12_sys_lstat(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_compat_12_sys_lstat(struct lwp *l, void *v, register_t *retval) { struct compat_12_sys_lstat_args /* { syscallarg(char *) path; @@ -559,10 +457,7 @@ bsd_compat_12_sys_lstat(l, v, retval) } int -bsd_sys_pathconf(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_pathconf(struct lwp *l, void *v, register_t *retval) { struct sys_pathconf_args /* { syscallarg(char *) path; @@ -573,10 +468,7 @@ bsd_sys_pathconf(l, v, retval) } int -bsd_sys_truncate(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_truncate(struct lwp *l, void *v, register_t *retval) { struct sys_truncate_args /* { syscallarg(char *) path; @@ -588,10 +480,7 @@ bsd_sys_truncate(l, v, retval) } int -bsd_sys_undelete(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_undelete(struct lwp *l, void *v, register_t *retval) { struct sys_undelete_args /* { syscallarg(char *) path; @@ -601,10 +490,7 @@ bsd_sys_undelete(l, v, retval) } int -bsd_sys_lchmod(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_lchmod(struct lwp *l, void *v, register_t *retval) { struct sys_lchmod_args /* { syscallarg(char *) path; @@ -615,10 +501,7 @@ bsd_sys_lchmod(l, v, retval) } int -bsd_sys_lchown(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_lchown(struct lwp *l, void *v, register_t *retval) { struct sys_lchown_args /* { syscallarg(char *) path; @@ -630,10 +513,7 @@ bsd_sys_lchown(l, v, retval) } int -bsd_sys_lutimes(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_lutimes(struct lwp *l, void *v, register_t *retval) { struct sys_lutimes_args /* { syscallarg(char *) path; @@ -644,10 +524,7 @@ bsd_sys_lutimes(l, v, retval) } int -bsd_sys___stat30(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys___stat30(struct lwp *l, void *v, register_t *retval) { struct sys___stat30_args /* { syscallarg(char *) path; @@ -658,10 +535,7 @@ bsd_sys___stat30(l, v, retval) } int -bsd_sys___lstat30(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys___lstat30(struct lwp *l, void *v, register_t *retval) { struct sys___lstat30_args /* { syscallarg(char *) path; @@ -672,10 +546,7 @@ bsd_sys___lstat30(l, v, retval) } int -bsd_sys___posix_chown(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys___posix_chown(struct lwp *l, void *v, register_t *retval) { struct sys___posix_chown_args /* { syscallarg(char *) path; @@ -687,10 +558,7 @@ bsd_sys___posix_chown(l, v, retval) } int -bsd_sys___posix_lchown(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys___posix_lchown(struct lwp *l, void *v, register_t *retval) { struct sys___posix_lchown_args /* { syscallarg(char *) path; @@ -702,10 +570,7 @@ bsd_sys___posix_lchown(l, v, retval) } int -bsd_sys_lchflags(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +bsd_sys_lchflags(struct lwp *l, void *v, register_t *retval) { struct sys_lchflags_args /* { syscallarg(char *) path; diff --git a/sys/compat/common/compat_util.c b/sys/compat/common/compat_util.c index 94c1c6694ad..872009826eb 100644 --- a/sys/compat/common/compat_util.c +++ b/sys/compat/common/compat_util.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_util.c,v 1.37 2007/07/13 21:04:29 dsl Exp $ */ +/* $NetBSD: compat_util.c,v 1.38 2007/12/08 18:35:54 dsl Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: compat_util.c,v 1.37 2007/07/13 21:04:29 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: compat_util.c,v 1.38 2007/12/08 18:35:54 dsl Exp $"); #include "opt_systrace.h" @@ -150,9 +150,7 @@ emul_flags_translate(const struct emul_flags_xtab *tab, /* The only user left of the stackgap is the systrace code. */ #if SYSTRACE void * -stackgap_init(p, sz) - const struct proc *p; - size_t sz; +stackgap_init(const struct proc *p, size_t sz) { if (sz == 0) sz = STACKGAPLEN; @@ -166,10 +164,7 @@ stackgap_init(p, sz) void * -stackgap_alloc(p, sgp, sz) - const struct proc *p; - void **sgp; - size_t sz; +stackgap_alloc(const struct proc *p, void **sgp, size_t sz) { void *n = *sgp; void *nsgp; @@ -186,9 +181,7 @@ stackgap_alloc(p, sgp, sz) #endif void -compat_offseterr(vp, msg) - struct vnode *vp; - const char *msg; +compat_offseterr(struct vnode *vp, const char *msg) { struct mount *mp; diff --git a/sys/compat/common/kern_ipc_10.c b/sys/compat/common/kern_ipc_10.c index a355ff820fb..37914991778 100644 --- a/sys/compat/common/kern_ipc_10.c +++ b/sys/compat/common/kern_ipc_10.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_ipc_10.c,v 1.21 2007/06/17 10:24:21 dsl Exp $ */ +/* $NetBSD: kern_ipc_10.c,v 1.22 2007/12/08 18:35:54 dsl Exp $ */ /* * Copyright (c) 1994 Adam Glass and Charles M. Hannum. All rights reserved. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_ipc_10.c,v 1.21 2007/06/17 10:24:21 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_ipc_10.c,v 1.22 2007/12/08 18:35:54 dsl Exp $"); #include "opt_sysv.h" @@ -50,10 +50,7 @@ __KERNEL_RCSID(0, "$NetBSD: kern_ipc_10.c,v 1.21 2007/06/17 10:24:21 dsl Exp $") #if defined(SYSVSEM) && !defined(_LP64) int -compat_10_sys_semsys(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +compat_10_sys_semsys(struct lwp *l, void *v, register_t *retval) { struct compat_10_sys_semsys_args /* { syscallarg(int) which; @@ -130,10 +127,7 @@ compat_10_sys_semsys(l, v, retval) #if defined(SYSVSHM) && !defined(_LP64) int -compat_10_sys_shmsys(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +compat_10_sys_shmsys(struct lwp *l, void *v, register_t *retval) { struct compat_10_sys_shmsys_args /* { syscallarg(int) which; @@ -194,10 +188,7 @@ compat_10_sys_shmsys(l, v, retval) #if defined(SYSVMSG) && !defined(_LP64) int -compat_10_sys_msgsys(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +compat_10_sys_msgsys(struct lwp *l, void *v, register_t *retval) { struct compat_10_sys_msgsys_args /* { syscallarg(int) which; diff --git a/sys/compat/common/kern_sig_13.c b/sys/compat/common/kern_sig_13.c index a8ee9bacc6a..ff3885c6111 100644 --- a/sys/compat/common/kern_sig_13.c +++ b/sys/compat/common/kern_sig_13.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_sig_13.c,v 1.15 2007/06/16 20:04:28 dsl Exp $ */ +/* $NetBSD: kern_sig_13.c,v 1.16 2007/12/08 18:35:54 dsl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_sig_13.c,v 1.15 2007/06/16 20:04:28 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_sig_13.c,v 1.16 2007/12/08 18:35:54 dsl Exp $"); #include <sys/param.h> #include <sys/proc.h> @@ -56,9 +56,7 @@ __KERNEL_RCSID(0, "$NetBSD: kern_sig_13.c,v 1.15 2007/06/16 20:04:28 dsl Exp $") #include <compat/common/compat_sigaltstack.h> void -native_sigset13_to_sigset(oss, ss) - const sigset13_t *oss; - sigset_t *ss; +native_sigset13_to_sigset(const sigset13_t *oss, sigset_t *ss) { ss->__bits[0] = *oss; @@ -68,18 +66,14 @@ native_sigset13_to_sigset(oss, ss) } void -native_sigset_to_sigset13(ss, oss) - const sigset_t *ss; - sigset13_t *oss; +native_sigset_to_sigset13(const sigset_t *ss, sigset13_t *oss) { *oss = ss->__bits[0]; } void -native_sigaction13_to_sigaction(osa, sa) - const struct sigaction13 *osa; - struct sigaction *sa; +native_sigaction13_to_sigaction(const struct sigaction13 *osa, struct sigaction *sa) { sa->sa_handler = osa->osa_handler; @@ -88,9 +82,7 @@ native_sigaction13_to_sigaction(osa, sa) } void -native_sigaction_to_sigaction13(sa, osa) - const struct sigaction *sa; - struct sigaction13 *osa; +native_sigaction_to_sigaction13(const struct sigaction *sa, struct sigaction13 *osa) { osa->osa_handler = sa->sa_handler; diff --git a/sys/compat/common/kern_sig_43.c b/sys/compat/common/kern_sig_43.c index 9950a61e006..3b8e966bdd4 100644 --- a/sys/compat/common/kern_sig_43.c +++ b/sys/compat/common/kern_sig_43.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_sig_43.c,v 1.28 2007/12/04 18:40:07 dsl Exp $ */ +/* $NetBSD: kern_sig_43.c,v 1.29 2007/12/08 18:35:54 dsl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_sig_43.c,v 1.28 2007/12/04 18:40:07 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_sig_43.c,v 1.29 2007/12/08 18:35:54 dsl Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -80,9 +80,7 @@ void compat_43_sigstack_to_sigaltstack(const struct sigstack *, struct sigaltsta void compat_43_sigaltstack_to_sigstack(const struct sigaltstack *, struct sigstack *); void -compat_43_sigmask_to_sigset(sm, ss) - const int *sm; - sigset_t *ss; +compat_43_sigmask_to_sigset(const int *sm, sigset_t *ss) { ss->__bits[0] = *sm; @@ -92,18 +90,14 @@ compat_43_sigmask_to_sigset(sm, ss) } void -compat_43_sigset_to_sigmask(ss, sm) - const sigset_t *ss; - int *sm; +compat_43_sigset_to_sigmask(const sigset_t *ss, int *sm) { *sm = ss->__bits[0]; } void -compat_43_sigvec_to_sigaction(sv, sa) - const struct sigvec *sv; - struct sigaction *sa; +compat_43_sigvec_to_sigaction(const struct sigvec *sv, struct sigaction *sa) { sa->sa_handler = sv->sv_handler; compat_43_sigmask_to_sigset(&sv->sv_mask, &sa->sa_mask); @@ -111,9 +105,7 @@ compat_43_sigvec_to_sigaction(sv, sa) } void -compat_43_sigaction_to_sigvec(sa, sv) - const struct sigaction *sa; - struct sigvec *sv; +compat_43_sigaction_to_sigvec(const struct sigaction *sa, struct sigvec *sv) { sv->sv_handler = sa->sa_handler; compat_43_sigset_to_sigmask(&sa->sa_mask, &sv->sv_mask); @@ -121,9 +113,7 @@ compat_43_sigaction_to_sigvec(sa, sv) } void -compat_43_sigstack_to_sigaltstack(ss, sa) - const struct sigstack *ss; - struct sigaltstack *sa; +compat_43_sigstack_to_sigaltstack(const struct sigstack *ss, struct sigaltstack *sa) { sa->ss_sp = ss->ss_sp; sa->ss_size = SIGSTKSZ; /* Use the recommended size */ @@ -133,9 +123,7 @@ compat_43_sigstack_to_sigaltstack(ss, sa) } void -compat_43_sigaltstack_to_sigstack(sa, ss) - const struct sigaltstack *sa; - struct sigstack *ss; +compat_43_sigaltstack_to_sigstack(const struct sigaltstack *sa, struct sigstack *ss) { ss->ss_sp = sa->ss_sp; if (sa->ss_flags & SS_ONSTACK) diff --git a/sys/compat/common/sysv_ipc_14.c b/sys/compat/common/sysv_ipc_14.c index edcac81483b..394ea7ac3e2 100644 --- a/sys/compat/common/sysv_ipc_14.c +++ b/sys/compat/common/sysv_ipc_14.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysv_ipc_14.c,v 1.3 2005/11/11 17:10:42 christos Exp $ */ +/* $NetBSD: sysv_ipc_14.c,v 1.4 2007/12/08 18:35:54 dsl Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -38,16 +38,14 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sysv_ipc_14.c,v 1.3 2005/11/11 17:10:42 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysv_ipc_14.c,v 1.4 2007/12/08 18:35:54 dsl Exp $"); #include <sys/types.h> #include <sys/ipc.h> #include <compat/sys/ipc.h> void -ipc_perm14_to_native(operm, perm) - struct ipc_perm14 *operm; - struct ipc_perm *perm; +ipc_perm14_to_native(struct ipc_perm14 *operm, struct ipc_perm *perm) { #define CVT(x) perm->x = operm->x @@ -60,9 +58,7 @@ ipc_perm14_to_native(operm, perm) } void -native_to_ipc_perm14(perm, operm) - struct ipc_perm *perm; - struct ipc_perm14 *operm; +native_to_ipc_perm14(struct ipc_perm *perm, struct ipc_perm14 *operm) { #define CVT(x) operm->x = perm->x diff --git a/sys/compat/common/sysv_msg_14.c b/sys/compat/common/sysv_msg_14.c index a214e530d2b..158dffa5dd2 100644 --- a/sys/compat/common/sysv_msg_14.c +++ b/sys/compat/common/sysv_msg_14.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysv_msg_14.c,v 1.14 2007/12/04 18:40:07 dsl Exp $ */ +/* $NetBSD: sysv_msg_14.c,v 1.15 2007/12/08 18:35:54 dsl Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sysv_msg_14.c,v 1.14 2007/12/04 18:40:07 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysv_msg_14.c,v 1.15 2007/12/08 18:35:54 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -59,9 +59,7 @@ static void msqid_ds14_to_native(struct msqid_ds14 *, struct msqid_ds *); static void native_to_msqid_ds14(struct msqid_ds *, struct msqid_ds14 *); static void -msqid_ds14_to_native(omsqbuf, msqbuf) - struct msqid_ds14 *omsqbuf; - struct msqid_ds *msqbuf; +msqid_ds14_to_native(struct msqid_ds14 *omsqbuf, struct msqid_ds *msqbuf) { ipc_perm14_to_native(&omsqbuf->msg_perm, &msqbuf->msg_perm); @@ -78,9 +76,7 @@ msqid_ds14_to_native(omsqbuf, msqbuf) } static void -native_to_msqid_ds14(msqbuf, omsqbuf) - struct msqid_ds *msqbuf; - struct msqid_ds14 *omsqbuf; +native_to_msqid_ds14(struct msqid_ds *msqbuf, struct msqid_ds14 *omsqbuf) { native_to_ipc_perm14(&msqbuf->msg_perm, &omsqbuf->msg_perm); diff --git a/sys/compat/common/sysv_shm_14.c b/sys/compat/common/sysv_shm_14.c index 7acca9e65b2..83f720ddb70 100644 --- a/sys/compat/common/sysv_shm_14.c +++ b/sys/compat/common/sysv_shm_14.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysv_shm_14.c,v 1.12 2007/12/04 18:40:07 dsl Exp $ */ +/* $NetBSD: sysv_shm_14.c,v 1.13 2007/12/08 18:35:55 dsl Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sysv_shm_14.c,v 1.12 2007/12/04 18:40:07 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysv_shm_14.c,v 1.13 2007/12/08 18:35:55 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -59,9 +59,7 @@ static void shmid_ds14_to_native(struct shmid_ds14 *, struct shmid_ds *); static void native_to_shmid_ds14(struct shmid_ds *, struct shmid_ds14 *); static void -shmid_ds14_to_native(oshmbuf, shmbuf) - struct shmid_ds14 *oshmbuf; - struct shmid_ds *shmbuf; +shmid_ds14_to_native(struct shmid_ds14 *oshmbuf, struct shmid_ds *shmbuf) { ipc_perm14_to_native(&oshmbuf->shm_perm, &shmbuf->shm_perm); @@ -78,9 +76,7 @@ shmid_ds14_to_native(oshmbuf, shmbuf) } static void -native_to_shmid_ds14(shmbuf, oshmbuf) - struct shmid_ds *shmbuf; - struct shmid_ds14 *oshmbuf; +native_to_shmid_ds14(struct shmid_ds *shmbuf, struct shmid_ds14 *oshmbuf) { native_to_ipc_perm14(&shmbuf->shm_perm, &oshmbuf->shm_perm); diff --git a/sys/compat/common/tty_43.c b/sys/compat/common/tty_43.c index 55dc58f48d8..daca84bd4b9 100644 --- a/sys/compat/common/tty_43.c +++ b/sys/compat/common/tty_43.c @@ -1,4 +1,4 @@ -/* $NetBSD: tty_43.c,v 1.23 2007/12/04 18:40:07 dsl Exp $ */ +/* $NetBSD: tty_43.c,v 1.24 2007/12/08 18:35:55 dsl Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.23 2007/12/04 18:40:07 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.24 2007/12/08 18:35:55 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -90,12 +90,7 @@ void ttcompatsetlflags(struct tty *, struct termios *); /*ARGSUSED*/ int -ttcompat(tp, com, data, flag, l) - struct tty *tp; - u_long com; - void *data; - int flag; - struct lwp *l; +ttcompat(struct tty *tp, u_long com, void *data, int flag, struct lwp *l) { switch (com) { @@ -257,8 +252,7 @@ ttcompat(tp, com, data, flag, l) } int -ttcompatgetflags(tp) - struct tty *tp; +ttcompatgetflags(struct tty *tp) { tcflag_t iflag = tp->t_iflag; tcflag_t lflag = tp->t_lflag; @@ -321,9 +315,7 @@ ttcompatgetflags(tp) } void -ttcompatsetflags(tp, t) - struct tty *tp; - struct termios *t; +ttcompatsetflags(struct tty *tp, struct termios *t) { int flags = tp->t_flags; tcflag_t iflag = t->c_iflag; @@ -409,9 +401,7 @@ ttcompatsetflags(tp, t) } void -ttcompatsetlflags(tp, t) - struct tty *tp; - struct termios *t; +ttcompatsetlflags(struct tty *tp, struct termios *t) { int flags = tp->t_flags; tcflag_t iflag = t->c_iflag; diff --git a/sys/compat/common/uipc_syscalls_43.c b/sys/compat/common/uipc_syscalls_43.c index 470a9e7f4ac..fb8f497b02f 100644 --- a/sys/compat/common/uipc_syscalls_43.c +++ b/sys/compat/common/uipc_syscalls_43.c @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_syscalls_43.c,v 1.37 2007/09/11 19:59:18 gdt Exp $ */ +/* $NetBSD: uipc_syscalls_43.c,v 1.38 2007/12/08 18:35:55 dsl Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1990, 1993 @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_43.c,v 1.37 2007/09/11 19:59:18 gdt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_43.c,v 1.38 2007/12/08 18:35:55 dsl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -371,8 +371,7 @@ compat_43_sys_sendmsg(struct lwp *l, void *v, register_t *retval) } static int -compat_43_sa_put(from) - void *from; +compat_43_sa_put(void *from) { struct osockaddr *osa = (struct osockaddr *) from; struct sockaddr sa; diff --git a/sys/compat/common/vfs_syscalls_20.c b/sys/compat/common/vfs_syscalls_20.c index fcb82184492..0c17f962b39 100644 --- a/sys/compat/common/vfs_syscalls_20.c +++ b/sys/compat/common/vfs_syscalls_20.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls_20.c,v 1.20 2007/11/26 19:01:29 pooka Exp $ */ +/* $NetBSD: vfs_syscalls_20.c,v 1.21 2007/12/08 18:35:55 dsl Exp $ */ /* * Copyright (c) 1989, 1993 @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_20.c,v 1.20 2007/11/26 19:01:29 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_20.c,v 1.21 2007/12/08 18:35:55 dsl Exp $"); #include "opt_compat_netbsd.h" #include "opt_compat_43.h" @@ -201,10 +201,7 @@ compat_20_sys_fstatfs(struct lwp *l, void *v, register_t *retval) * Get statistics on all filesystems. */ int -compat_20_sys_getfsstat(l, v, retval) - struct lwp *l; - void *v; - register_t *retval; +compat_20_sys_getfsstat(struct lwp *l, void *v, register_t *retval) { struct compat_20_sys_getfsstat_args /* { syscallarg(struct statfs12 *) buf; diff --git a/sys/compat/common/vfs_syscalls_43.c b/sys/compat/common/vfs_syscalls_43.c index 14274f5cbfc..852792ee62d 100644 --- a/sys/compat/common/vfs_syscalls_43.c +++ b/sys/compat/common/vfs_syscalls_43.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls_43.c,v 1.42 2007/12/04 18:40:08 dsl Exp $ */ +/* $NetBSD: vfs_syscalls_43.c,v 1.43 2007/12/08 18:35:55 dsl Exp $ */ /* * Copyright (c) 1989, 1993 @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_43.c,v 1.42 2007/12/04 18:40:08 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_43.c,v 1.43 2007/12/08 18:35:55 dsl Exp $"); #if defined(_KERNEL_OPT) #include "fs_union.h" @@ -76,9 +76,7 @@ static void cvtstat(struct stat *, struct stat43 *); * Convert from an old to a new stat structure. */ static void -cvtstat(st, ost) - struct stat *st; - struct stat43 *ost; +cvtstat(struct stat *st, struct stat43 *ost) { ost->st_dev = st->st_dev; |
