sys/dirent.h: comment update, 'd_off' is offset of next entry

This is the historical (and still current) behavior, as well as that of
NetBSD, OpenBSD, illumos and Linux (getdents()/getdents64()).

Reviewed by:	kib
MFC after:	3 days
This commit is contained in:
Olivier Certner 2023-04-23 10:05:06 +02:00 committed by Konstantin Belousov
parent a718431c30
commit faec42a3ef

View File

@ -65,7 +65,7 @@ typedef __off_t off_t;
struct dirent {
ino_t d_fileno; /* file number of entry */
off_t d_off; /* directory offset of entry */
off_t d_off; /* directory offset of next entry */
__uint16_t d_reclen; /* length of this record */
__uint8_t d_type; /* file type, see below */
__uint8_t d_pad0;