From b6c7fd537e38565d9cf39396082586b37df0eb39 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Wed, 5 Jan 2000 17:04:36 +0000 Subject: [PATCH] Refreshed the silly copy of . _KERNEL was still spelled KERNEL, and the changes to remove the prerequisite had not reached here. Removed unused/wrong include of in synopsis. --- share/man/man5/dir.5 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/share/man/man5/dir.5 b/share/man/man5/dir.5 index 008a7bd3618..fe3ad28ee9e 100644 --- a/share/man/man5/dir.5 +++ b/share/man/man5/dir.5 @@ -40,7 +40,6 @@ .Nm dirent .Nd directory file format .Sh SYNOPSIS -.Fd #include .Fd #include .Sh DESCRIPTION Directories provide a convenient hierarchical method of grouping @@ -87,6 +86,8 @@ The directory entry format is defined in the file #ifndef _SYS_DIRENT_H_ #define _SYS_DIRENT_H_ +#include + /* * The dirent structure defines the format of directory entries returned by * the getdirentries(2) system call. @@ -99,10 +100,10 @@ The directory entry format is defined in the file */ struct dirent { - u_int32_t d_fileno; /* file number of entry */ - u_int16_t d_reclen; /* length of this record */ - u_int8_t d_type; /* file type, see below */ - u_int8_t d_namlen; /* length of string in d_name */ + __uint32_t d_fileno; /* file number of entry */ + __uint16_t d_reclen; /* length of this record */ + __uint8_t d_type; /* file type, see below */ + __uint8_t d_namlen; /* length of string in d_name */ #ifdef _POSIX_SOURCE char d_name[255 + 1]; /* name must be no longer than this */ #else @@ -139,7 +140,7 @@ struct dirent { #define _GENERIC_DIRSIZ(dp) \ ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3)) -#ifdef KERNEL +#ifdef _KERNEL #define GENERIC_DIRSIZ(dp) _GENERIC_DIRSIZ(dp) #endif