Remove __P()

This commit is contained in:
xtraeme 2005-08-29 23:57:35 +00:00
parent 529eaccb6b
commit 47216f8470
7 changed files with 109 additions and 107 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: denode.h,v 1.6 2005/08/29 23:22:05 xtraeme Exp $ */
/* $NetBSD: denode.h,v 1.7 2005/08/29 23:57:35 xtraeme Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@ -257,16 +257,16 @@ struct defid {
/*
* Prototypes for MSDOSFS vnode operations
*/
int msdosfs_lookup __P((void *));
int msdosfs_create __P((void *));
int msdosfs_mknod __P((void *));
int msdosfs_open __P((void *));
int msdosfs_close __P((void *));
int msdosfs_access __P((void *));
int msdosfs_getattr __P((void *));
int msdosfs_setattr __P((void *));
int msdosfs_read __P((void *));
int msdosfs_write __P((void *));
int msdosfs_lookup (void *);
int msdosfs_create (void *);
int msdosfs_mknod (void *);
int msdosfs_open (void *);
int msdosfs_close (void *);
int msdosfs_access (void *);
int msdosfs_getattr (void *);
int msdosfs_setattr (void *);
int msdosfs_read (void *);
int msdosfs_write (void *);
#define msdosfs_lease_check genfs_lease_check
#define msdosfs_ioctl genfs_enoioctl
#define msdosfs_poll genfs_poll
@ -274,41 +274,43 @@ int msdosfs_write __P((void *));
#define msdosfs_mmap genfs_mmap
#define msdosfs_fsync genfs_fsync
#define msdosfs_seek genfs_seek
int msdosfs_remove __P((void *));
int msdosfs_link __P((void *));
int msdosfs_rename __P((void *));
int msdosfs_mkdir __P((void *));
int msdosfs_rmdir __P((void *));
int msdosfs_symlink __P((void *));
int msdosfs_readdir __P((void *));
int msdosfs_readlink __P((void *));
int msdosfs_remove (void *);
int msdosfs_link (void *);
int msdosfs_rename (void *);
int msdosfs_mkdir (void *);
int msdosfs_rmdir (void *);
int msdosfs_symlink (void *);
int msdosfs_readdir (void *);
int msdosfs_readlink (void *);
#define msdosfs_abortop genfs_abortop
int msdosfs_inactive __P((void *));
int msdosfs_reclaim __P((void *));
int msdosfs_bmap __P((void *));
int msdosfs_strategy __P((void *));
int msdosfs_print __P((void *));
int msdosfs_advlock __P((void *));
int msdosfs_reallocblks __P((void *));
int msdosfs_pathconf __P((void *));
int msdosfs_update __P((void *));
int msdosfs_inactive (void *);
int msdosfs_reclaim (void *);
int msdosfs_bmap (void *);
int msdosfs_strategy (void *);
int msdosfs_print (void *);
int msdosfs_advlock (void *);
int msdosfs_reallocblks (void *);
int msdosfs_pathconf (void *);
int msdosfs_update (void *);
/*
* Internal service routine prototypes.
*/
int createde __P((struct denode *, struct denode *, struct denode **, struct componentname *));
int deextend __P((struct denode *, u_long, struct ucred *));
int deget __P((struct msdosfsmount *, u_long, u_long, struct denode **));
int detrunc __P((struct denode *, u_long, int, struct ucred *, struct proc *));
int deupdat __P((struct denode *, int));
int doscheckpath __P((struct denode *, struct denode *));
int dosdirempty __P((struct denode *));
int readde __P((struct denode *, struct buf **, struct direntry **));
int readep __P((struct msdosfsmount *, u_long, u_long, struct buf **, struct direntry **));
void reinsert __P((struct denode *));
int removede __P((struct denode *, struct denode *));
int uniqdosname __P((struct denode *, struct componentname *, u_char *));
int findwin95 __P((struct denode *));
int msdosfs_gop_alloc __P((struct vnode *, off_t, off_t, int, struct ucred *));
void msdosfs_gop_markupdate __P((struct vnode *, int));
int createde(struct denode *, struct denode *,
struct denode **, struct componentname *);
int deextend(struct denode *, u_long, struct ucred *);
int deget(struct msdosfsmount *, u_long, u_long, struct denode **);
int detrunc(struct denode *, u_long, int, struct ucred *, struct proc *);
int deupdat(struct denode *, int);
int doscheckpath(struct denode *, struct denode *);
int dosdirempty(struct denode *);
int readde(struct denode *, struct buf **, struct direntry **);
int readep(struct msdosfsmount *, u_long, u_long,
struct buf **, struct direntry **);
void reinsert(struct denode *);
int removede(struct denode *, struct denode *);
int uniqdosname(struct denode *, struct componentname *, u_char *);
int findwin95(struct denode *);
int msdosfs_gop_alloc(struct vnode *, off_t, off_t, int, struct ucred *);
void msdosfs_gop_markupdate(struct vnode *, int);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: direntry.h,v 1.2 2003/09/07 22:09:11 itojun Exp $ */
/* $NetBSD: direntry.h,v 1.3 2005/08/29 23:57:35 xtraeme Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@ -119,18 +119,18 @@ struct winentry {
#define DD_YEAR_SHIFT 9
#ifdef _KERNEL
void unix2dostime __P((struct timespec *tsp, int gmtoff, u_int16_t *ddp,
u_int16_t *dtp, u_int8_t *dhp));
void dos2unixtime __P((u_int dd, u_int dt, u_int dh, int gmtoff,
struct timespec *tsp));
int dos2unixfn __P((u_char dn[11], u_char *un, int lower));
int unix2dosfn __P((const u_char *un, u_char dn[12], int unlen,
u_int gen));
int unix2winfn __P((const u_char *un, int unlen, struct winentry *wep,
int cnt, int chksum));
int winChkName __P((const u_char *un, int unlen, struct winentry *wep,
int chksum));
int win2unixfn __P((struct winentry *wep, struct dirent *dp, int chksum));
u_int8_t winChksum __P((u_int8_t *name));
int winSlotCnt __P((const u_char *un, int unlen));
void unix2dostime(struct timespec *tsp, int gmtoff, u_int16_t *ddp,
u_int16_t *dtp, u_int8_t *dhp);
void dos2unixtime(u_int dd, u_int dt, u_int dh, int gmtoff,
struct timespec *tsp);
int dos2unixfn(u_char dn[11], u_char *un, int lower);
int unix2dosfn(const u_char *un, u_char dn[12], int unlen,
u_int gen);
int unix2winfn(const u_char *un, int unlen, struct winentry *wep,
int cnt, int chksum);
int winChkName(const u_char *un, int unlen, struct winentry *wep,
int chksum);
int win2unixfn(struct winentry *wep, struct dirent *dp, int chksum);
u_int8_t winChksum(u_int8_t *name);
int winSlotCnt(const u_char *un, int unlen);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: fat.h,v 1.2 2005/02/26 22:58:55 perry Exp $ */
/* $NetBSD: fat.h,v 1.3 2005/08/29 23:57:35 xtraeme Exp $ */
/*-
* Copyright (C) 1994, 1997 Wolfgang Solfrank.
@ -104,13 +104,13 @@
*/
#define DE_CLEAR 1 /* Zero out the blocks allocated */
int pcbmap __P((struct denode *, u_long, daddr_t *, u_long *, int *));
int clusterfree __P((struct msdosfsmount *, u_long, u_long *));
int clusteralloc __P((struct msdosfsmount *, u_long, u_long,u_long *,u_long *));
int extendfile __P((struct denode *, u_long, struct buf **, u_long *, int));
int fatentry __P((int, struct msdosfsmount *, u_long, u_long *, u_long));
void fc_purge __P((struct denode *, u_int));
void fc_lookup __P((struct denode *, u_long, u_long *, u_long *));
int fillinusemap __P((struct msdosfsmount *));
int freeclusterchain __P((struct msdosfsmount *, u_long));
int pcbmap(struct denode *, u_long, daddr_t *, u_long *, int *);
int clusterfree(struct msdosfsmount *, u_long, u_long *);
int clusteralloc(struct msdosfsmount *, u_long, u_long,u_long *,u_long *);
int extendfile(struct denode *, u_long, struct buf **, u_long *, int);
int fatentry(int, struct msdosfsmount *, u_long, u_long *, u_long);
void fc_purge(struct denode *, u_int);
void fc_lookup(struct denode *, u_long, u_long *, u_long *);
int fillinusemap(struct msdosfsmount *);
int freeclusterchain(struct msdosfsmount *, u_long);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: msdosfs_denode.c,v 1.9 2005/07/23 12:18:41 yamt Exp $ */
/* $NetBSD: msdosfs_denode.c,v 1.10 2005/08/29 23:57:35 xtraeme Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.9 2005/07/23 12:18:41 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.10 2005/08/29 23:57:35 xtraeme Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -89,9 +89,9 @@ static const struct genfs_ops msdosfs_genfsops = {
.gop_markupdate = msdosfs_gop_markupdate,
};
static struct denode *msdosfs_hashget __P((dev_t, u_long, u_long));
static void msdosfs_hashins __P((struct denode *));
static void msdosfs_hashrem __P((struct denode *));
static struct denode *msdosfs_hashget(dev_t, u_long, u_long);
static void msdosfs_hashins(struct denode *);
static void msdosfs_hashrem(struct denode *);
#ifdef _LKM
MALLOC_DECLARE(M_MSDOSFSFAT);
@ -225,7 +225,7 @@ deget(pmp, dirclust, diroffset, depp)
struct denode **depp; /* returns the addr of the gotten denode */
{
int error;
extern int (**msdosfs_vnodeop_p) __P((void *));
extern int (**msdosfs_vnodeop_p)(void *);
struct direntry *direntptr;
struct denode *ldep;
struct vnode *nvp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: msdosfs_fat.c,v 1.4 2005/02/26 22:58:55 perry Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.5 2005/08/29 23:57:35 xtraeme Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.4 2005/02/26 22:58:55 perry Exp $");
__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.5 2005/08/29 23:57:35 xtraeme Exp $");
/*
* kernel include files.
@ -85,15 +85,15 @@ int fc_lmdistance[LMMAX]; /* counters for how far off the last
* cluster mapped entry was. */
int fc_largedistance; /* off by more than LMMAX */
static void fatblock __P((struct msdosfsmount *, u_long, u_long *, u_long *,
u_long *));
void updatefats __P((struct msdosfsmount *, struct buf *, u_long));
static __inline void usemap_free __P((struct msdosfsmount *, u_long));
static __inline void usemap_alloc __P((struct msdosfsmount *, u_long));
static int fatchain __P((struct msdosfsmount *, u_long, u_long, u_long));
int chainlength __P((struct msdosfsmount *, u_long, u_long));
int chainalloc __P((struct msdosfsmount *, u_long, u_long, u_long, u_long *,
u_long *));
static void fatblock(struct msdosfsmount *, u_long, u_long *, u_long *,
u_long *);
void updatefats(struct msdosfsmount *, struct buf *, u_long);
static __inline void usemap_free(struct msdosfsmount *, u_long);
static __inline void usemap_alloc(struct msdosfsmount *, u_long);
static int fatchain(struct msdosfsmount *, u_long, u_long, u_long);
int chainlength(struct msdosfsmount *, u_long, u_long);
int chainalloc(struct msdosfsmount *, u_long, u_long, u_long, u_long *,
u_long *);
static void
fatblock(pmp, ofs, bnp, sizep, bop)

View File

@ -1,4 +1,4 @@
/* $NetBSD: msdosfs_vfsops.c,v 1.25 2005/08/05 11:00:31 jmmv Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.26 2005/08/29 23:57:35 xtraeme Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.25 2005/08/05 11:00:31 jmmv Exp $");
__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.26 2005/08/29 23:57:35 xtraeme Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@ -84,25 +84,25 @@ __KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.25 2005/08/05 11:00:31 jmmv Exp
#define MSDOSFS_NAMEMAX(pmp) \
(pmp)->pm_flags & MSDOSFSMNT_LONGNAME ? WIN_MAXLEN : 12
int msdosfs_mountroot __P((void));
int msdosfs_mount __P((struct mount *, const char *, void *,
struct nameidata *, struct proc *));
int msdosfs_start __P((struct mount *, int, struct proc *));
int msdosfs_unmount __P((struct mount *, int, struct proc *));
int msdosfs_root __P((struct mount *, struct vnode **));
int msdosfs_quotactl __P((struct mount *, int, uid_t, void *, struct proc *));
int msdosfs_statvfs __P((struct mount *, struct statvfs *, struct proc *));
int msdosfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
int msdosfs_vget __P((struct mount *, ino_t, struct vnode **));
int msdosfs_fhtovp __P((struct mount *, struct fid *, struct vnode **));
int msdosfs_checkexp __P((struct mount *, struct mbuf *, int *,
struct ucred **));
int msdosfs_vptofh __P((struct vnode *, struct fid *));
int msdosfs_mountroot(void);
int msdosfs_mount(struct mount *, const char *, void *,
struct nameidata *, struct proc *);
int msdosfs_start(struct mount *, int, struct proc *);
int msdosfs_unmount(struct mount *, int, struct proc *);
int msdosfs_root(struct mount *, struct vnode **);
int msdosfs_quotactl(struct mount *, int, uid_t, void *, struct proc *);
int msdosfs_statvfs(struct mount *, struct statvfs *, struct proc *);
int msdosfs_sync(struct mount *, int, struct ucred *, struct proc *);
int msdosfs_vget(struct mount *, ino_t, struct vnode **);
int msdosfs_fhtovp(struct mount *, struct fid *, struct vnode **);
int msdosfs_checkexp(struct mount *, struct mbuf *, int *,
struct ucred **);
int msdosfs_vptofh(struct vnode *, struct fid *);
int msdosfs_mountfs __P((struct vnode *, struct mount *, struct proc *,
struct msdosfs_args *));
int msdosfs_mountfs(struct vnode *, struct mount *, struct proc *,
struct msdosfs_args *);
static int update_mp __P((struct mount *, struct msdosfs_args *));
static int update_mp(struct mount *, struct msdosfs_args *);
MALLOC_DEFINE(M_MSDOSFSMNT, "MSDOSFS mount", "MSDOS FS mount structure");
MALLOC_DEFINE(M_MSDOSFSFAT, "MSDOSFS fat", "MSDOS FS fat table");

View File

@ -1,4 +1,4 @@
/* $NetBSD: msdosfs_vnops.c,v 1.17 2005/08/29 23:22:05 xtraeme Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.18 2005/08/29 23:57:35 xtraeme Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: msdosfs_vnops.c,v 1.17 2005/08/29 23:22:05 xtraeme Exp $");
__KERNEL_RCSID(0, "$NetBSD: msdosfs_vnops.c,v 1.18 2005/08/29 23:57:35 xtraeme Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1853,7 +1853,7 @@ msdosfs_pathconf(v)
}
/* Global vfs data structures for msdosfs */
int (**msdosfs_vnodeop_p) __P((void *));
int (**msdosfs_vnodeop_p)(void *);
const struct vnodeopv_entry_desc msdosfs_vnodeop_entries[] = {
{ &vop_default_desc, vn_default_error },
{ &vop_lookup_desc, msdosfs_lookup }, /* lookup */