#include <sys/dirent.h>

sys/dirent.h Kernel.framework

includes: sys/_types.h, sys/cdefs.h, Kernel/sys/_types/_ino_t.h
2 structs

structdirent

size 264, align 4
ino_td_inofile number of entry
__uint16_td_reclenlength of this record
__uint8_td_typefile type, see below
__uint8_td_namlenlength of string in d_name
char[256]d_namename must be no longer than this

structdirentry

Extended directory entry
size 1048, align 8
__uint64_td_inofile number of entry
__uint64_td_seekoffseek offset (optional, used by servers)
__uint16_td_reclenlength of this record
__uint16_td_namlenlength of string in d_name
__uint8_td_typefile type, see below
char[1024]d_nameentry name (up to MAXPATHLEN bytes)