From owner-svn-src-all@freebsd.org Sat Apr 30 12:44:04 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A607B1CC52; Sat, 30 Apr 2016 12:44:04 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4633B10FC; Sat, 30 Apr 2016 12:44:04 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3UCi3S7014255; Sat, 30 Apr 2016 12:44:03 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3UCi3fg014253; Sat, 30 Apr 2016 12:44:03 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201604301244.u3UCi3fg014253@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Sat, 30 Apr 2016 12:44:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298846 - head/sys/fs/fdescfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2016 12:44:04 -0000 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;