From 84cac4647faac7275d2797963bb6482afebddacb Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 16 Nov 1995 10:58:35 +0000 Subject: [PATCH] Fixed the type of fdesc_sync(). Trailing args were missing. Fixed the type of fdesc_fhtovp(). The args had little resemblance to the correct ones. Added prototypes. --- sys/fs/fdescfs/fdesc_vfsops.c | 33 +++++++++++++++++++++++++++------ sys/miscfs/fdesc/fdesc_vfsops.c | 33 +++++++++++++++++++++++++++------ 2 files changed, 54 insertions(+), 12 deletions(-) diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c index db40cb70ccc0..1efeb7323afe 100644 --- a/sys/fs/fdescfs/fdesc_vfsops.c +++ b/sys/fs/fdescfs/fdesc_vfsops.c @@ -35,7 +35,7 @@ * * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 * - * $Id: fdesc_vfsops.c,v 1.5 1995/09/02 20:17:57 mpp Exp $ + * $Id: fdesc_vfsops.c,v 1.6 1995/11/07 13:39:18 phk Exp $ */ /* @@ -56,8 +56,24 @@ #include #include -static int fdesc_statfs __P((struct mount *, struct statfs *, struct proc *)); - +static int fdesc_fhtovp __P((struct mount *mp, struct fid *fhp, + struct mbuf *nam, struct vnode **vpp, + int *exflagsp, struct ucred **credanonp)); +static int fdesc_mount __P((struct mount *mp, char *path, caddr_t data, + struct nameidata *ndp, struct proc *p)); +static int fdesc_quotactl __P((struct mount *mp, int cmd, uid_t uid, + caddr_t arg, struct proc *p)); +static int fdesc_start __P((struct mount *mp, int flags, struct proc *p)); +static int fdesc_unmount __P((struct mount *mp, int mntflags, + struct proc *p)); +static int fdesc_statfs __P((struct mount *mp, struct statfs *sbp, + struct proc *p)); +static int fdesc_sync __P((struct mount *mp, int waitfor, + struct ucred *cred, struct proc *p)); +static int fdesc_vget __P((struct mount *mp, ino_t ino, + struct vnode **vpp)); +static int fdesc_vptofh __P((struct vnode *vp, struct fid *fhp)); + /* * Mount the per-process file descriptors (/dev/fd) */ @@ -235,9 +251,11 @@ fdesc_statfs(mp, sbp, p) } static int -fdesc_sync(mp, waitfor) +fdesc_sync(mp, waitfor, cred, p) struct mount *mp; int waitfor; + struct ucred *cred; + struct proc *p; { return (0); @@ -258,12 +276,15 @@ fdesc_vget(mp, ino, vpp) } static int -fdesc_fhtovp(mp, fhp, setgen, vpp) +fdesc_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp) struct mount *mp; struct fid *fhp; - int setgen; + struct mbuf *nam; struct vnode **vpp; + int *exflagsp; + struct ucred **credanonp; { + return (EOPNOTSUPP); } diff --git a/sys/miscfs/fdesc/fdesc_vfsops.c b/sys/miscfs/fdesc/fdesc_vfsops.c index db40cb70ccc0..1efeb7323afe 100644 --- a/sys/miscfs/fdesc/fdesc_vfsops.c +++ b/sys/miscfs/fdesc/fdesc_vfsops.c @@ -35,7 +35,7 @@ * * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 * - * $Id: fdesc_vfsops.c,v 1.5 1995/09/02 20:17:57 mpp Exp $ + * $Id: fdesc_vfsops.c,v 1.6 1995/11/07 13:39:18 phk Exp $ */ /* @@ -56,8 +56,24 @@ #include #include -static int fdesc_statfs __P((struct mount *, struct statfs *, struct proc *)); - +static int fdesc_fhtovp __P((struct mount *mp, struct fid *fhp, + struct mbuf *nam, struct vnode **vpp, + int *exflagsp, struct ucred **credanonp)); +static int fdesc_mount __P((struct mount *mp, char *path, caddr_t data, + struct nameidata *ndp, struct proc *p)); +static int fdesc_quotactl __P((struct mount *mp, int cmd, uid_t uid, + caddr_t arg, struct proc *p)); +static int fdesc_start __P((struct mount *mp, int flags, struct proc *p)); +static int fdesc_unmount __P((struct mount *mp, int mntflags, + struct proc *p)); +static int fdesc_statfs __P((struct mount *mp, struct statfs *sbp, + struct proc *p)); +static int fdesc_sync __P((struct mount *mp, int waitfor, + struct ucred *cred, struct proc *p)); +static int fdesc_vget __P((struct mount *mp, ino_t ino, + struct vnode **vpp)); +static int fdesc_vptofh __P((struct vnode *vp, struct fid *fhp)); + /* * Mount the per-process file descriptors (/dev/fd) */ @@ -235,9 +251,11 @@ fdesc_statfs(mp, sbp, p) } static int -fdesc_sync(mp, waitfor) +fdesc_sync(mp, waitfor, cred, p) struct mount *mp; int waitfor; + struct ucred *cred; + struct proc *p; { return (0); @@ -258,12 +276,15 @@ fdesc_vget(mp, ino, vpp) } static int -fdesc_fhtovp(mp, fhp, setgen, vpp) +fdesc_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp) struct mount *mp; struct fid *fhp; - int setgen; + struct mbuf *nam; struct vnode **vpp; + int *exflagsp; + struct ucred **credanonp; { + return (EOPNOTSUPP); }