summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-28 12:27:42 +0000
committerbde <bde@FreeBSD.org>1997-03-28 12:27:42 +0000
commit4003214ed86b3ab71d144c5278b8cd8cc8bd6d79 (patch)
treec3119fef8c33b5b366e866134195d7beade8ec98 /lib
parent63119c4a9f079b0d319581a1b0f69d6c130c43b7 (diff)
downloadFreeBSD-src-4003214ed86b3ab71d144c5278b8cd8cc8bd6d79.zip
FreeBSD-src-4003214ed86b3ab71d144c5278b8cd8cc8bd6d79.tar.gz
Fixed #includes in synopsis to compile.
Fixed #includes in synopsis to declare the prototype in the synopsis. Fixed stale types in description of struct dirent.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getdirentries.213
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2
index 0400bc7..be85934 100644
--- a/lib/libc/sys/getdirentries.2
+++ b/lib/libc/sys/getdirentries.2
@@ -38,7 +38,8 @@
.Nm getdirentries
.Nd "get directory entries in a filesystem independent format"
.Sh SYNOPSIS
-.Fd #include <sys/dirent.h>
+.Fd #include <sys/types.h>
+.Fd #include <dirent.h>
.Ft int
.Fn getdirentries "int fd" "char *buf" "int nbytes" "long *basep"
.Sh DESCRIPTION
@@ -65,11 +66,11 @@ The data in the buffer is a series of
.Em dirent
structures each containing the following entries:
.Bd -literal -offset indent
-unsigned long d_fileno;
-unsigned short d_reclen;
-unsigned char d_type;
-unsigned char d_namlen;
-char d_name[MAXNAMELEN + 1]; /* see below */
+u_int32_t d_fileno;
+u_int16_t d_reclen;
+u_int8_t d_type;
+u_int8_t d_namelen;
+char d_name[MAXNAMELEN + 1]; /* see below */
.Ed
.Pp
The
OpenPOWER on IntegriCloud