summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-01-05 17:04:36 +0000
committerbde <bde@FreeBSD.org>2000-01-05 17:04:36 +0000
commitd39d38eacd4155146bc7930f4a6e96e605f9c340 (patch)
treec5229205ddb975d6d5f03e1ca77553b754db614c /share
parent0a07530306e8a226660cc90c8913706f5f072421 (diff)
downloadFreeBSD-src-d39d38eacd4155146bc7930f4a6e96e605f9c340.zip
FreeBSD-src-d39d38eacd4155146bc7930f4a6e96e605f9c340.tar.gz
Refreshed the silly copy of <sys/dirent.h>. _KERNEL was still spelled
KERNEL, and the changes to remove the <sys/types.h> prerequisite had not reached here. Removed unused/wrong include of <sys/types.h> in synopsis.
Diffstat (limited to 'share')
-rw-r--r--share/man/man5/dir.513
1 files changed, 7 insertions, 6 deletions
diff --git a/share/man/man5/dir.5 b/share/man/man5/dir.5
index 008a7bd..fe3ad28 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 <sys/types.h>
.Fd #include <dirent.h>
.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 <machine/ansi.h>
+
/*
* 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
OpenPOWER on IntegriCloud