summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/fdesc/fdesc_vnops.c
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-05-25 09:21:21 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-05-25 09:21:21 +0000
commit2469c867a164210ce96143517059f21db7f1fd17 (patch)
tree9179427ac860211c445df663fd2b86267366bfba /sys/miscfs/fdesc/fdesc_vnops.c
parentcb0aba89af15a48e2655e898a503946ac4cb42ae (diff)
downloadFreeBSD-src-2469c867a164210ce96143517059f21db7f1fd17.zip
FreeBSD-src-2469c867a164210ce96143517059f21db7f1fd17.tar.gz
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
Diffstat (limited to 'sys/miscfs/fdesc/fdesc_vnops.c')
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index 00d8675..83e6657 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/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;
OpenPOWER on IntegriCloud