summaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2009-03-14 14:45:51 +0000
committerdsl <dsl@NetBSD.org>2009-03-14 14:45:51 +0000
commit02cdf4d2c869ecfa1ae5484cf77eefe2fbcc6d94 (patch)
tree9a02e625d403e5fcedfdc6be4803e2404356bf31 /sys/fs
parentdfbb3f921a23a1aba4463f31ef9233ac94ce606c (diff)
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/adosfs/adosfs.h24
-rw-r--r--sys/fs/adosfs/adutil.c6
-rw-r--r--sys/fs/adosfs/advfsops.c10
-rw-r--r--sys/fs/adosfs/advnops.c32
-rw-r--r--sys/fs/filecorefs/filecore_extern.h12
-rw-r--r--sys/fs/filecorefs/filecore_node.h50
-rw-r--r--sys/fs/filecorefs/filecore_vfsops.c8
-rw-r--r--sys/fs/filecorefs/filecore_vnops.c6
-rw-r--r--sys/fs/udf/udf_vnops.c6
9 files changed, 77 insertions, 77 deletions
diff --git a/sys/fs/adosfs/adosfs.h b/sys/fs/adosfs/adosfs.h
index 899bb6f26e8..eeb4e0120a4 100644
--- a/sys/fs/adosfs/adosfs.h
+++ b/sys/fs/adosfs/adosfs.h
@@ -1,4 +1,4 @@
-/* $NetBSD: adosfs.h,v 1.9 2008/06/28 01:34:05 rumble Exp $ */
+/* $NetBSD: adosfs.h,v 1.10 2009/03/14 14:46:09 dsl Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -159,24 +159,24 @@ extern struct pool adosfs_node_pool;
* utility protos
*/
#if BYTE_ORDER != BIG_ENDIAN
-u_int32_t adoswordn __P((struct buf *, int));
+u_int32_t adoswordn(struct buf *, int);
#else
#define adoswordn(bp,wn) (*((u_int32_t *)(bp)->b_data + (wn)))
#endif
-u_int32_t adoscksum __P((struct buf *, int));
-int adoscaseequ __P((const u_char *, const u_char *, int, int));
-int adoshash __P((const u_char *, int, int, int));
-int adunixprot __P((int));
-int adosfs_getblktype __P((struct adosfsmount *, struct buf *));
+u_int32_t adoscksum(struct buf *, int);
+int adoscaseequ(const u_char *, const u_char *, int, int);
+int adoshash(const u_char *, int, int, int);
+int adunixprot(int);
+int adosfs_getblktype(struct adosfsmount *, struct buf *);
-struct vnode *adosfs_ahashget __P((struct mount *, ino_t));
-void adosfs_ainshash __P((struct adosfsmount *, struct anode *));
-void adosfs_aremhash __P((struct anode *));
+struct vnode *adosfs_ahashget(struct mount *, ino_t);
+void adosfs_ainshash(struct adosfsmount *, struct anode *);
+void adosfs_aremhash(struct anode *);
-int adosfs_lookup __P((void *));
+int adosfs_lookup(void *);
-extern int (**adosfs_vnodeop_p) __P((void *));
+extern int (**adosfs_vnodeop_p)(void *);
#endif /* _KERNEL */
#endif /* _ADOSFS_ADOSFS_H_ */
diff --git a/sys/fs/adosfs/adutil.c b/sys/fs/adosfs/adutil.c
index 487e37ec905..fd8e4772804 100644
--- a/sys/fs/adosfs/adutil.c
+++ b/sys/fs/adosfs/adutil.c
@@ -1,4 +1,4 @@
-/* $NetBSD: adutil.c,v 1.8 2008/01/30 09:50:19 ad Exp $ */
+/* $NetBSD: adutil.c,v 1.9 2009/03/14 14:46:09 dsl Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adutil.c,v 1.8 2008/01/30 09:50:19 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adutil.c,v 1.9 2009/03/14 14:46:09 dsl Exp $");
#include <sys/param.h>
#include <sys/vnode.h>
@@ -50,7 +50,7 @@ __KERNEL_RCSID(0, "$NetBSD: adutil.c,v 1.8 2008/01/30 09:50:19 ad Exp $");
* look for anode in the mount's hash table, return locked.
*/
#define AHASH(an) ((an) & (ANODEHASHSZ - 1))
-static int CapitalChar __P((int, int));
+static int CapitalChar(int, int);
extern struct simplelock adosfs_hashlock;
diff --git a/sys/fs/adosfs/advfsops.c b/sys/fs/adosfs/advfsops.c
index f0fde2fe0d8..e0400f139ab 100644
--- a/sys/fs/adosfs/advfsops.c
+++ b/sys/fs/adosfs/advfsops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: advfsops.c,v 1.53 2008/06/28 01:34:05 rumble Exp $ */
+/* $NetBSD: advfsops.c,v 1.54 2009/03/14 14:46:09 dsl Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.53 2008/06/28 01:34:05 rumble Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.54 2009/03/14 14:46:09 dsl Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -67,8 +67,8 @@ VFS_PROTOS(adosfs);
static struct sysctllog *adosfs_sysctl_log;
-int adosfs_mountfs __P((struct vnode *, struct mount *, struct lwp *));
-int adosfs_loadbitmap __P((struct adosfsmount *));
+int adosfs_mountfs(struct vnode *, struct mount *, struct lwp *);
+int adosfs_loadbitmap(struct adosfsmount *);
struct simplelock adosfs_hashlock;
@@ -82,7 +82,7 @@ static const struct genfs_ops adosfs_genfsops = {
.gop_size = genfs_size,
};
-int (**adosfs_vnodeop_p) __P((void *));
+int (**adosfs_vnodeop_p)(void *);
int
adosfs_mount(mp, path, data, data_len)
diff --git a/sys/fs/adosfs/advnops.c b/sys/fs/adosfs/advnops.c
index 04db8eec303..cf3d0f6b84c 100644
--- a/sys/fs/adosfs/advnops.c
+++ b/sys/fs/adosfs/advnops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: advnops.c,v 1.31 2008/12/16 16:18:25 pooka Exp $ */
+/* $NetBSD: advnops.c,v 1.32 2009/03/14 14:46:09 dsl Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.31 2008/12/16 16:18:25 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.32 2009/03/14 14:46:09 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -58,24 +58,24 @@ __KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.31 2008/12/16 16:18:25 pooka Exp $");
extern struct vnodeops adosfs_vnodeops;
#define adosfs_open genfs_nullop
-int adosfs_getattr __P((void *));
-int adosfs_read __P((void *));
-int adosfs_write __P((void *));
+int adosfs_getattr(void *);
+int adosfs_read(void *);
+int adosfs_write(void *);
#define adosfs_fcntl genfs_fcntl
#define adosfs_ioctl genfs_enoioctl
#define adosfs_poll genfs_poll
-int adosfs_strategy __P((void *));
-int adosfs_link __P((void *));
-int adosfs_symlink __P((void *));
+int adosfs_strategy(void *);
+int adosfs_link(void *);
+int adosfs_symlink(void *);
#define adosfs_abortop genfs_abortop
-int adosfs_bmap __P((void *));
-int adosfs_print __P((void *));
-int adosfs_readdir __P((void *));
-int adosfs_access __P((void *));
-int adosfs_readlink __P((void *));
-int adosfs_inactive __P((void *));
-int adosfs_reclaim __P((void *));
-int adosfs_pathconf __P((void *));
+int adosfs_bmap(void *);
+int adosfs_print(void *);
+int adosfs_readdir(void *);
+int adosfs_access(void *);
+int adosfs_readlink(void *);
+int adosfs_inactive(void *);
+int adosfs_reclaim(void *);
+int adosfs_pathconf(void *);
#define adosfs_close genfs_nullop
#define adosfs_fsync genfs_nullop
diff --git a/sys/fs/filecorefs/filecore_extern.h b/sys/fs/filecorefs/filecore_extern.h
index 743cfca29a6..f63cdd23fcb 100644
--- a/sys/fs/filecorefs/filecore_extern.h
+++ b/sys/fs/filecorefs/filecore_extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: filecore_extern.h,v 1.18 2008/06/28 01:34:05 rumble Exp $ */
+/* $NetBSD: filecore_extern.h,v 1.19 2009/03/14 14:46:09 dsl Exp $ */
/*-
* Copyright (c) 1994 The Regents of the University of California.
@@ -110,9 +110,9 @@ extern struct pool filecore_node_pool;
VFS_PROTOS(filecore);
-extern int (**filecore_vnodeop_p) __P((void *));
+extern int (**filecore_vnodeop_p)(void *);
-int filecore_bbchecksum __P((void *));
-int filecore_bread __P((struct filecore_mnt *, u_int32_t, int,
- kauth_cred_t, struct buf **));
-int filecore_map __P((struct filecore_mnt *, u_int32_t, daddr_t, daddr_t *));
+int filecore_bbchecksum(void *);
+int filecore_bread(struct filecore_mnt *, u_int32_t, int,
+ kauth_cred_t, struct buf **);
+int filecore_map(struct filecore_mnt *, u_int32_t, daddr_t, daddr_t *);
diff --git a/sys/fs/filecorefs/filecore_node.h b/sys/fs/filecorefs/filecore_node.h
index 24fe2c81860..16371a0d9b9 100644
--- a/sys/fs/filecorefs/filecore_node.h
+++ b/sys/fs/filecorefs/filecore_node.h
@@ -1,4 +1,4 @@
-/* $NetBSD: filecore_node.h,v 1.4 2005/12/03 17:34:43 christos Exp $ */
+/* $NetBSD: filecore_node.h,v 1.5 2009/03/14 14:46:09 dsl Exp $ */
/*-
* Copyright (c) 1994 The Regents of the University of California.
@@ -113,35 +113,35 @@ struct filecore_node {
/*
* Prototypes for Filecore vnode operations
*/
-int filecore_lookup __P((void *));
+int filecore_lookup(void *);
#define filecore_open genfs_nullop
#define filecore_close genfs_nullop
-int filecore_access __P((void *));
-int filecore_getattr __P((void *));
-int filecore_read __P((void *));
+int filecore_access(void *);
+int filecore_getattr(void *);
+int filecore_read(void *);
#define filecore_poll genfs_poll
#define filecore_mmap genfs_mmap
#define filecore_seek genfs_seek
-int filecore_readdir __P((void *));
-int filecore_readlink __P((void *));
+int filecore_readdir(void *);
+int filecore_readlink(void *);
#define filecore_abortop genfs_abortop
-int filecore_inactive __P((void *));
-int filecore_reclaim __P((void *));
-int filecore_link __P((void *));
-int filecore_symlink __P((void *));
-int filecore_bmap __P((void *));
-int filecore_strategy __P((void *));
-int filecore_print __P((void *));
-int filecore_pathconf __P((void *));
-int filecore_blkatoff __P((void *));
+int filecore_inactive(void *);
+int filecore_reclaim(void *);
+int filecore_link(void *);
+int filecore_symlink(void *);
+int filecore_bmap(void *);
+int filecore_strategy(void *);
+int filecore_print(void *);
+int filecore_pathconf(void *);
+int filecore_blkatoff(void *);
-struct vnode *filecore_ihashget __P((dev_t, ino_t));
-void filecore_ihashins __P((struct filecore_node *));
-void filecore_ihashrem __P((struct filecore_node *));
+struct vnode *filecore_ihashget(dev_t, ino_t);
+void filecore_ihashins(struct filecore_node *);
+void filecore_ihashrem(struct filecore_node *);
-mode_t filecore_mode __P((struct filecore_node *));
-struct timespec filecore_time __P((struct filecore_node *));
-ino_t filecore_getparent __P((struct filecore_node *));
-int filecore_fn2unix __P((char *, char *, u_int16_t *));
-int filecore_fncmp __P((const char *, const char *, u_short));
-int filecore_dbread __P((struct filecore_node *, struct buf **));
+mode_t filecore_mode(struct filecore_node *);
+struct timespec filecore_time(struct filecore_node *);
+ino_t filecore_getparent(struct filecore_node *);
+int filecore_fn2unix(char *, char *, u_int16_t *);
+int filecore_fncmp(const char *, const char *, u_short);
+int filecore_dbread(struct filecore_node *, struct buf **);
diff --git a/sys/fs/filecorefs/filecore_vfsops.c b/sys/fs/filecorefs/filecore_vfsops.c
index de89a5de9e9..e05c359b138 100644
--- a/sys/fs/filecorefs/filecore_vfsops.c
+++ b/sys/fs/filecorefs/filecore_vfsops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: filecore_vfsops.c,v 1.55 2008/06/28 01:34:05 rumble Exp $ */
+/* $NetBSD: filecore_vfsops.c,v 1.56 2009/03/14 14:46:09 dsl Exp $ */
/*-
* Copyright (c) 1994 The Regents of the University of California.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filecore_vfsops.c,v 1.55 2008/06/28 01:34:05 rumble Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filecore_vfsops.c,v 1.56 2009/03/14 14:46:09 dsl Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -191,8 +191,8 @@ filecorefs_modcmd(modcmd_t cmd, void *arg)
* Name is updated by mount(8) after booting.
*/
-static int filecore_mountfs __P((struct vnode *devvp, struct mount *mp,
- struct lwp *l, struct filecore_args *argp));
+static int filecore_mountfs(struct vnode *devvp, struct mount *mp,
+ struct lwp *l, struct filecore_args *argp);
#if 0
int
diff --git a/sys/fs/filecorefs/filecore_vnops.c b/sys/fs/filecorefs/filecore_vnops.c
index 6b83d801439..0200ae98536 100644
--- a/sys/fs/filecorefs/filecore_vnops.c
+++ b/sys/fs/filecorefs/filecore_vnops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: filecore_vnops.c,v 1.28 2008/11/26 20:17:33 pooka Exp $ */
+/* $NetBSD: filecore_vnops.c,v 1.29 2009/03/14 14:46:09 dsl Exp $ */
/*-
* Copyright (c) 1994 The Regents of the University of California.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filecore_vnops.c,v 1.28 2008/11/26 20:17:33 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filecore_vnops.c,v 1.29 2009/03/14 14:46:09 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -546,7 +546,7 @@ filecore_pathconf(v)
/*
* Global vfs data structures for filecore
*/
-int (**filecore_vnodeop_p) __P((void *));
+int (**filecore_vnodeop_p)(void *);
const struct vnodeopv_entry_desc filecore_vnodeop_entries[] = {
{ &vop_default_desc, vn_default_error },
{ &vop_lookup_desc, filecore_lookup }, /* lookup */
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index 8434e58fb80..5ddc5507c4a 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_vnops.c,v 1.36 2009/02/11 13:08:08 reinoud Exp $ */
+/* $NetBSD: udf_vnops.c,v 1.37 2009/03/14 14:46:09 dsl Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.36 2009/02/11 13:08:08 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.37 2009/03/14 14:46:09 dsl Exp $");
#endif /* not lint */
@@ -2202,7 +2202,7 @@ udf_advlock(void *v)
/* Global vfs vnode data structures for udfs */
-int (**udf_vnodeop_p) __P((void *));
+int (**udf_vnodeop_p)(void *);
const struct vnodeopv_entry_desc udf_vnodeop_entries[] = {
{ &vop_default_desc, vn_default_error },