diff options
author | Bruce Evans <bde@FreeBSD.org> | 1995-11-16 11:34:51 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1995-11-16 11:34:51 +0000 |
commit | d77206b33be8d1c5ba08263e3358033716a294fd (patch) | |
tree | 130f62e39f6bcf05172057ce7f272784f2ac24b1 | |
parent | 10639ce2c0e6caae51c1cac8956aa6473cbafd9d (diff) | |
download | src-d77206b33be8d1c5ba08263e3358033716a294fd.tar.gz src-d77206b33be8d1c5ba08263e3358033716a294fd.zip |
Fixed the type of procfs_sync(). Trailing args were missing.
Fixed the type of procfs_fhtovp(). The args had little resemblance to
the correct ones.
Added prototypes.
Notes
Notes:
svn path=/head/; revision=12336
-rw-r--r-- | sys/fs/procfs/procfs_vfsops.c | 30 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_vfsops.c | 30 |
2 files changed, 52 insertions, 8 deletions
diff --git a/sys/fs/procfs/procfs_vfsops.c b/sys/fs/procfs/procfs_vfsops.c index 50be77cb3598..83aec27bf493 100644 --- a/sys/fs/procfs/procfs_vfsops.c +++ b/sys/fs/procfs/procfs_vfsops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vfsops.c 8.4 (Berkeley) 1/21/94 * - * $Id: procfs_vfsops.c,v 1.10 1995/05/25 01:35:23 davidg Exp $ + * $Id: procfs_vfsops.c,v 1.11 1995/11/07 13:39:30 phk Exp $ */ /* @@ -56,7 +56,24 @@ #include <miscfs/procfs/procfs.h> #include <vm/vm.h> /* for PAGE_SIZE */ -static int procfs_statfs __P((struct mount *, struct statfs *, struct proc *)); +static int procfs_fhtovp __P((struct mount *mp, struct fid *fhp, + struct mbuf *nam, struct vnode **vpp, + int *exflagsp, struct ucred **credanonp)); +static int procfs_init __P((void)); +static int procfs_mount __P((struct mount *mp, char *path, caddr_t data, + struct nameidata *ndp, struct proc *p)); +static int procfs_quotactl __P((struct mount *mp, int cmds, uid_t uid, + caddr_t arg, struct proc *p)); +static int procfs_start __P((struct mount *mp, int flags, struct proc *p)); +static int procfs_statfs __P((struct mount *mp, struct statfs *sbp, + struct proc *p)); +static int procfs_sync __P((struct mount *mp, int waitfor, + struct ucred *cred, struct proc *p)); +static int procfs_unmount __P((struct mount *mp, int mntflags, + struct proc *p)); +static int procfs_vget __P((struct mount *mp, ino_t ino, + struct vnode **vpp)); +static int procfs_vptofh __P((struct vnode *vp, struct fid *fhp)); /* * VFS Operations. @@ -197,9 +214,11 @@ procfs_quotactl(mp, cmds, uid, arg, p) } static int -procfs_sync(mp, waitfor) +procfs_sync(mp, waitfor, cred, p) struct mount *mp; int waitfor; + struct ucred *cred; + struct proc *p; { return (0); @@ -216,10 +235,13 @@ procfs_vget(mp, ino, vpp) } static int -procfs_fhtovp(mp, fhp, vpp) +procfs_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp) struct mount *mp; struct fid *fhp; + struct mbuf *nam; struct vnode **vpp; + int *exflagsp; + struct ucred **credanonp; { return (EINVAL); diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index 50be77cb3598..83aec27bf493 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/procfs/procfs_vfsops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vfsops.c 8.4 (Berkeley) 1/21/94 * - * $Id: procfs_vfsops.c,v 1.10 1995/05/25 01:35:23 davidg Exp $ + * $Id: procfs_vfsops.c,v 1.11 1995/11/07 13:39:30 phk Exp $ */ /* @@ -56,7 +56,24 @@ #include <miscfs/procfs/procfs.h> #include <vm/vm.h> /* for PAGE_SIZE */ -static int procfs_statfs __P((struct mount *, struct statfs *, struct proc *)); +static int procfs_fhtovp __P((struct mount *mp, struct fid *fhp, + struct mbuf *nam, struct vnode **vpp, + int *exflagsp, struct ucred **credanonp)); +static int procfs_init __P((void)); +static int procfs_mount __P((struct mount *mp, char *path, caddr_t data, + struct nameidata *ndp, struct proc *p)); +static int procfs_quotactl __P((struct mount *mp, int cmds, uid_t uid, + caddr_t arg, struct proc *p)); +static int procfs_start __P((struct mount *mp, int flags, struct proc *p)); +static int procfs_statfs __P((struct mount *mp, struct statfs *sbp, + struct proc *p)); +static int procfs_sync __P((struct mount *mp, int waitfor, + struct ucred *cred, struct proc *p)); +static int procfs_unmount __P((struct mount *mp, int mntflags, + struct proc *p)); +static int procfs_vget __P((struct mount *mp, ino_t ino, + struct vnode **vpp)); +static int procfs_vptofh __P((struct vnode *vp, struct fid *fhp)); /* * VFS Operations. @@ -197,9 +214,11 @@ procfs_quotactl(mp, cmds, uid, arg, p) } static int -procfs_sync(mp, waitfor) +procfs_sync(mp, waitfor, cred, p) struct mount *mp; int waitfor; + struct ucred *cred; + struct proc *p; { return (0); @@ -216,10 +235,13 @@ procfs_vget(mp, ino, vpp) } static int -procfs_fhtovp(mp, fhp, vpp) +procfs_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp) struct mount *mp; struct fid *fhp; + struct mbuf *nam; struct vnode **vpp; + int *exflagsp; + struct ucred **credanonp; { return (EINVAL); |