summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-01-28 07:03:33 +0000
committermpp <mpp@FreeBSD.org>1997-01-28 07:03:33 +0000
commit41a5f912455b02d7ae4161e239e85ed3a987a56c (patch)
treed42f0c46cd22201d47d36a6644bacb49cb898a2f /share
parent430352cbbc8f00d30e1feae21073f45dbf0de0e5 (diff)
downloadFreeBSD-src-41a5f912455b02d7ae4161e239e85ed3a987a56c.zip
FreeBSD-src-41a5f912455b02d7ae4161e239e85ed3a987a56c.tar.gz
Update to match current include files.
Diffstat (limited to 'share')
-rw-r--r--share/man/man5/dir.519
1 files changed, 17 insertions, 2 deletions
diff --git a/share/man/man5/dir.5 b/share/man/man5/dir.5
index edbcd45..73bebc6 100644
--- a/share/man/man5/dir.5
+++ b/share/man/man5/dir.5
@@ -97,9 +97,10 @@ The directory entry format is defined in the file
struct dirent {
u_long d_fileno; /* file number of entry */
u_short d_reclen; /* length of this record */
- u_short d_namlen; /* length of string in d_name */
+ u_char d_type; /* file type, see below */
+ u_char d_namlen; /* length of string in d_name */
#ifdef _POSIX_SOURCE
- char d_name[MAXNAMLEN + 1]; /* maximum name length */
+ char d_name[255 + 1]; /* maximum name length */
#else
#define MAXNAMLEN 255
char d_name[MAXNAMLEN + 1]; /* maximum name length */
@@ -107,6 +108,19 @@ struct dirent {
};
+/*
+ * File types
+ */
+#define DT_UNKNOWN 0
+#define DT_FIFO 1
+#define DT_CHR 2
+#define DT_DIR 4
+#define DT_BLK 6
+#define DT_REG 8
+#define DT_LKN 10
+#define DT_SOCK 12
+#define DT_WHT 14
+
#ifdef _POSIX_SOURCE
typedef void * DIR;
#else
@@ -124,6 +138,7 @@ typedef struct _dirdesc {
char *dd_buf; /* data buffer */
int dd_len; /* size of data buffer */
long dd_seek; /* magic cookie returned by getdirentries */
+ long dd_rewind;/* magic cookie for rewinding */
} DIR;
#define dirfd(dirp) ((dirp)->dd_fd)
OpenPOWER on IntegriCloud