svn commit: r298846 - head/sys/fs/fdescfs
Ed Maste
emaste at FreeBSD.org
Sat Apr 30 12:44:04 UTC 2016
Author: emaste
Date: Sat Apr 30 12:44:03 2016
New Revision: 298846
URL: https://svnweb.freebsd.org/changeset/base/298846
Log:
ANSIfy fdescfs(5)
Modified:
head/sys/fs/fdescfs/fdesc_vfsops.c
head/sys/fs/fdescfs/fdesc_vnops.c
Modified: head/sys/fs/fdescfs/fdesc_vfsops.c
==============================================================================
--- head/sys/fs/fdescfs/fdesc_vfsops.c Sat Apr 30 10:35:42 2016 (r298845)
+++ head/sys/fs/fdescfs/fdesc_vfsops.c Sat Apr 30 12:44:03 2016 (r298846)
@@ -119,9 +119,7 @@ fdesc_mount(struct mount *mp)
}
static int
-fdesc_unmount(mp, mntflags)
- struct mount *mp;
- int mntflags;
+fdesc_unmount(struct mount *mp, int mntflags)
{
struct fdescmount *fmp;
caddr_t data;
@@ -162,10 +160,7 @@ fdesc_unmount(mp, mntflags)
}
static int
-fdesc_root(mp, flags, vpp)
- struct mount *mp;
- int flags;
- struct vnode **vpp;
+fdesc_root(struct mount *mp, int flags, struct vnode **vpp)
{
struct vnode *vp;
@@ -179,9 +174,7 @@ fdesc_root(mp, flags, vpp)
}
static int
-fdesc_statfs(mp, sbp)
- struct mount *mp;
- struct statfs *sbp;
+fdesc_statfs(struct mount *mp, struct statfs *sbp)
{
struct thread *td;
struct filedesc *fdp;
Modified: head/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- head/sys/fs/fdescfs/fdesc_vnops.c Sat Apr 30 10:35:42 2016 (r298845)
+++ head/sys/fs/fdescfs/fdesc_vnops.c Sat Apr 30 12:44:03 2016 (r298846)
@@ -92,8 +92,7 @@ static void fdesc_remove_entry(struct fd
* Initialise cache headers
*/
int
-fdesc_init(vfsp)
- struct vfsconf *vfsp;
+fdesc_init(struct vfsconf *vfsp)
{
mtx_init(&fdesc_hashmtx, "fdescfs_hash", NULL, MTX_DEF);
@@ -105,8 +104,7 @@ fdesc_init(vfsp)
* Uninit ready for unload.
*/
int
-fdesc_uninit(vfsp)
- struct vfsconf *vfsp;
+fdesc_uninit(struct vfsconf *vfsp)
{
hashdestroy(fdhashtbl, M_CACHE, fdhash);
@@ -146,12 +144,8 @@ fdesc_remove_entry(struct fdescnode *fd)
}
int
-fdesc_allocvp(ftype, fd_fd, ix, mp, vpp)
- fdntype ftype;
- unsigned fd_fd;
- int ix;
- struct mount *mp;
- struct vnode **vpp;
+fdesc_allocvp(fdntype ftype, unsigned fd_fd, int ix, struct mount *mp,
+ struct vnode **vpp)
{
struct fdescmount *fmp;
struct fdhashhead *fc;
@@ -274,12 +268,7 @@ fdesc_get_ino_alloc(struct mount *mp, vo
* ndp is the name to locate in that directory...
*/
static int
-fdesc_lookup(ap)
- struct vop_lookup_args /* {
- struct vnode * a_dvp;
- struct vnode ** a_vpp;
- struct componentname * a_cnp;
- } */ *ap;
+fdesc_lookup(struct vop_lookup_args *ap)
{
struct vnode **vpp = ap->a_vpp;
struct vnode *dvp = ap->a_dvp;
@@ -381,13 +370,7 @@ bad:
}
static int
-fdesc_open(ap)
- struct vop_open_args /* {
- struct vnode *a_vp;
- int a_mode;
- struct ucred *a_cred;
- struct thread *a_td;
- } */ *ap;
+fdesc_open(struct vop_open_args *ap)
{
struct vnode *vp = ap->a_vp;
@@ -407,12 +390,7 @@ fdesc_open(ap)
}
static int
-fdesc_getattr(ap)
- struct vop_getattr_args /* {
- struct vnode *a_vp;
- struct vattr *a_vap;
- struct ucred *a_cred;
- } */ *ap;
+fdesc_getattr(struct vop_getattr_args *ap)
{
struct vnode *vp = ap->a_vp;
struct vattr *vap = ap->a_vap;
@@ -456,12 +434,7 @@ fdesc_getattr(ap)
}
static int
-fdesc_setattr(ap)
- struct vop_setattr_args /* {
- struct vnode *a_vp;
- struct vattr *a_vap;
- struct ucred *a_cred;
- } */ *ap;
+fdesc_setattr(struct vop_setattr_args *ap)
{
struct vattr *vap = ap->a_vap;
struct vnode *vp;
@@ -513,15 +486,7 @@ fdesc_setattr(ap)
#define UIO_MX 16
static int
-fdesc_readdir(ap)
- struct vop_readdir_args /* {
- struct vnode *a_vp;
- struct uio *a_uio;
- struct ucred *a_cred;
- int *a_eofflag;
- u_long *a_cookies;
- int a_ncookies;
- } */ *ap;
+fdesc_readdir(struct vop_readdir_args *ap)
{
struct uio *uio = ap->a_uio;
struct filedesc *fdp;
@@ -588,10 +553,7 @@ done:
}
static int
-fdesc_reclaim(ap)
- struct vop_reclaim_args /* {
- struct vnode *a_vp;
- } */ *ap;
+fdesc_reclaim(struct vop_reclaim_args *ap)
{
struct vnode *vp;
struct fdescnode *fd;
More information about the svn-src-head
mailing list