+#define __DARWIN_STRUCT_DIRENTRY { \
+ __uint64_t d_ino; /* file number of entry */ \
+ __uint64_t d_seekoff; /* seek offset (optional, used by servers) */ \
+ __uint16_t d_reclen; /* length of this record */ \
+ __uint16_t d_namlen; /* length of string in d_name */ \
+ __uint8_t d_type; /* file type, see below */ \
+ char d_name[__DARWIN_MAXPATHLEN]; /* entry name (up to MAXPATHLEN bytes) */ \
+}
+
+#if __DARWIN_64_BIT_INO_T
+struct dirent __DARWIN_STRUCT_DIRENTRY;
+#endif /* __DARWIN_64_BIT_INO_T */
+
+#ifdef KERNEL