aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/devfs
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-04-10 15:05:38 +0000
committerBruce Evans <bde@FreeBSD.org>1997-04-10 15:05:38 +0000
commitc90607ba7f384ab84421116b9ddca25507b0d5bd (patch)
treefdb01056f7ae6463dd795950e81750f7a037d8d1 /sys/miscfs/devfs
parent3bea22184e478841231e3205ea372a80bed0cd42 (diff)
Notes
Diffstat (limited to 'sys/miscfs/devfs')
-rw-r--r--sys/miscfs/devfs/devfs_vnops.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c
index af6e24d77c5b..e4962a65c6b7 100644
--- a/sys/miscfs/devfs/devfs_vnops.c
+++ b/sys/miscfs/devfs/devfs_vnops.c
@@ -1,7 +1,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
- * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.34 1997/02/12 16:19:11 mpp Exp $
+ * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.35 1997/02/24 17:08:49 bde Exp $
*
* symlinks can wait 'til later.
*/
@@ -9,17 +9,14 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/namei.h>
-#include <sys/resourcevar.h> /* defines plimit structure in proc struct */
#include <sys/kernel.h>
#include <sys/stat.h>
-#include <sys/buf.h>
#include <sys/proc.h>
-#include <sys/mount.h>
+#include <sys/time.h>
#include <sys/unistd.h>
#include <sys/vnode.h>
#include <miscfs/specfs/specdev.h>/* definitions of spec functions we use */
-#include <sys/malloc.h>
-#include <sys/dir.h> /* defines dirent structure */
+#include <sys/dirent.h>
#include <miscfs/devfs/devfsdefs.h>
/*
@@ -1447,7 +1444,7 @@ DBPRINT(("readdir\n"));
}
}
- reclen = dirent.d_reclen = DIRSIZ (&dirent);
+ reclen = dirent.d_reclen = GENERIC_DIRSIZ(&dirent);
if(pos >= startpos) /* made it to the offset yet? */
{