xref: /haiku/headers/private/libroot/dirent_private.h (revision fb984c136f461e8d8578eb6ed7182f610b277713)
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 	long			seek_position;
20 	long			current_position;
21 	struct dirent	first_entry;
22 };
23 
24 #endif	/* DIRENT_PRIVATE_H */
25