From 2469c867a164210ce96143517059f21db7f1fd17 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Wed, 25 May 1994 09:21:21 +0000 Subject: The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch. Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman --- sys/fs/fdescfs/fdesc_vnops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/fs/fdescfs') diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c index 00d8675..83e6657 100644 --- a/sys/fs/fdescfs/fdesc_vnops.c +++ b/sys/fs/fdescfs/fdesc_vnops.c @@ -88,6 +88,7 @@ static struct fdcache fdcache[NFDCACHE]; /* * Initialise cache headers */ +int fdesc_init() { struct fdcache *fc; @@ -96,6 +97,7 @@ fdesc_init() for (fc = fdcache; fc < fdcache + NFDCACHE; fc++) fc->fc_forw = fc->fc_back = (struct fdescnode *) fc; + return (0); } /* @@ -183,7 +185,7 @@ fdesc_lookup(ap) char *pname; struct proc *p; int nfiles; - unsigned fd; + unsigned fd = 0; int error; struct vnode *fvp; char *ln; @@ -800,6 +802,7 @@ fdesc_reclaim(ap) /* * Return POSIX pathconf information applicable to special devices. */ +int fdesc_pathconf(ap) struct vop_pathconf_args /* { struct vnode *a_vp; -- cgit v1.1