summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-10 15:05:38 +0000
committerbde <bde@FreeBSD.org>1997-04-10 15:05:38 +0000
commit5b0d745f8b3e7b469fbdea89b0ef0a4f4c1f204b (patch)
treee0576db03c2032d1ca24cfcf3f54cbd953976300
parentbdb8ad15bdbe97ead929ed5a2b8469cde38101e3 (diff)
downloadFreeBSD-src-5b0d745f8b3e7b469fbdea89b0ef0a4f4c1f204b.zip
FreeBSD-src-5b0d745f8b3e7b469fbdea89b0ef0a4f4c1f204b.tar.gz
Get the declaration of `struct dirent' from <sys/dirent.h>, not from
<sys/dir.h>, and use the new macro GENERIC_DIRSIZ() instead of DIRSIZ(). Removed unused #includes.
-rw-r--r--sys/fs/cd9660/cd9660_vnops.c12
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c12
-rw-r--r--sys/miscfs/devfs/devfs_vnops.c11
3 files changed, 12 insertions, 23 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
index de9d2be..8afa906 100644
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/cd9660/cd9660_vnops.c
@@ -36,25 +36,21 @@
* SUCH DAMAGE.
*
* @(#)cd9660_vnops.c 8.19 (Berkeley) 5/27/95
- * $Id$
+ * $Id: cd9660_vnops.c,v 1.32 1997/02/22 09:38:51 peter Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/namei.h>
-#include <sys/resourcevar.h>
#include <sys/kernel.h>
-#include <sys/file.h>
#include <sys/stat.h>
#include <sys/buf.h>
-#include <sys/proc.h>
-#include <sys/conf.h>
#include <sys/mount.h>
#include <sys/vnode.h>
#include <miscfs/specfs/specdev.h>
#include <miscfs/fifofs/fifo.h>
#include <sys/malloc.h>
-#include <sys/dir.h>
+#include <sys/dirent.h>
#include <sys/unistd.h>
#include <isofs/cd9660/iso.h>
@@ -531,7 +527,7 @@ iso_uiodir(idp,dp,off)
int error;
dp->d_name[dp->d_namlen] = 0;
- dp->d_reclen = DIRSIZ(dp);
+ dp->d_reclen = GENERIC_DIRSIZ(dp);
if (idp->uio->uio_resid < dp->d_reclen) {
idp->eofflag = 0;
@@ -593,7 +589,7 @@ assoc = (cl > 1) && (*cname == ASSOCCHAR);
}
}
}
- idp->current.d_reclen = DIRSIZ(&idp->current);
+ idp->current.d_reclen = GENERIC_DIRSIZ(&idp->current);
if (assoc) {
idp->assocoff = idp->curroff;
bcopy(&idp->current,&idp->assocent,idp->current.d_reclen);
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c
index de9d2be..8afa906 100644
--- a/sys/isofs/cd9660/cd9660_vnops.c
+++ b/sys/isofs/cd9660/cd9660_vnops.c
@@ -36,25 +36,21 @@
* SUCH DAMAGE.
*
* @(#)cd9660_vnops.c 8.19 (Berkeley) 5/27/95
- * $Id$
+ * $Id: cd9660_vnops.c,v 1.32 1997/02/22 09:38:51 peter Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/namei.h>
-#include <sys/resourcevar.h>
#include <sys/kernel.h>
-#include <sys/file.h>
#include <sys/stat.h>
#include <sys/buf.h>
-#include <sys/proc.h>
-#include <sys/conf.h>
#include <sys/mount.h>
#include <sys/vnode.h>
#include <miscfs/specfs/specdev.h>
#include <miscfs/fifofs/fifo.h>
#include <sys/malloc.h>
-#include <sys/dir.h>
+#include <sys/dirent.h>
#include <sys/unistd.h>
#include <isofs/cd9660/iso.h>
@@ -531,7 +527,7 @@ iso_uiodir(idp,dp,off)
int error;
dp->d_name[dp->d_namlen] = 0;
- dp->d_reclen = DIRSIZ(dp);
+ dp->d_reclen = GENERIC_DIRSIZ(dp);
if (idp->uio->uio_resid < dp->d_reclen) {
idp->eofflag = 0;
@@ -593,7 +589,7 @@ assoc = (cl > 1) && (*cname == ASSOCCHAR);
}
}
}
- idp->current.d_reclen = DIRSIZ(&idp->current);
+ idp->current.d_reclen = GENERIC_DIRSIZ(&idp->current);
if (assoc) {
idp->assocoff = idp->curroff;
bcopy(&idp->current,&idp->assocent,idp->current.d_reclen);
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c
index af6e24d..e4962a6 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? */
{
OpenPOWER on IntegriCloud