1 /* 2 * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef DIRENT_PRIVATE_H 6 #define DIRENT_PRIVATE_H 7 8 9 #include <dirent.h> 10 11 12 #define DIR_BUFFER_SIZE 4096 13 #define DIRENT_BUFFER_SIZE (DIR_BUFFER_SIZE - 2 * sizeof(int)) 14 15 struct __DIR { 16 int fd; 17 short next_entry; 18 unsigned short entries_left; 19 struct dirent first_entry; 20 }; 21 22 #endif /* DIRENT_PRIVATE_H */ 23