2008-07-09 11:16:00 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2008, Axel Dörfler, axeld@pinc-software.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef DIRENT_PRIVATE_H
|
|
|
|
#define DIRENT_PRIVATE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <dirent.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define DIR_BUFFER_SIZE 4096
|
2009-08-29 17:41:42 +00:00
|
|
|
#define DIRENT_BUFFER_SIZE (DIR_BUFFER_SIZE - offsetof(struct __DIR, first_entry))
|
2008-07-09 11:16:00 +00:00
|
|
|
|
|
|
|
struct __DIR {
|
|
|
|
int fd;
|
|
|
|
short next_entry;
|
|
|
|
unsigned short entries_left;
|
2009-08-25 22:16:40 +00:00
|
|
|
long seek_position;
|
|
|
|
long current_position;
|
2008-07-09 11:16:00 +00:00
|
|
|
struct dirent first_entry;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* DIRENT_PRIVATE_H */
|