]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/dirent.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / bsd / sys / dirent.h
index c6e1d8868912bc733bcbd4dfae6cb3fcb05bace9..4970773018aa911cde4ffb80700f14791c7b6480 100644 (file)
@@ -141,4 +141,17 @@ struct direntry __DARWIN_STRUCT_DIRENTRY;
 #define DTTOIF(dirtype) ((dirtype) << 12)
 #endif
 
+#if PRIVATE
+/*
+ * If a buffer at least this size is passed to __getdirentries64,
+ * the the last 4 bytes will be the flags below.
+ */
+#define GETDIRENTRIES64_EXTENDED_BUFSIZE  1024
+
+__options_decl(getdirentries64_flags_t, unsigned, {
+       /* the __getdirentries64 returned all entries */
+       GETDIRENTRIES64_EOF = 1U << 0,
+});
+#endif
+
 #endif /* _SYS_DIRENT_H  */