mirror of
https://review.haiku-os.org/haiku
synced 2025-01-30 18:24:53 +01:00
781aa0f579
This fixes ticket #4362 and probably also #4360 and #4370 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32817 a95241bf-73f2-0310-859d-f6bbb57e9c96
25 lines
492 B
C
25 lines
492 B
C
/*
|
|
* 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
|
|
#define DIRENT_BUFFER_SIZE (DIR_BUFFER_SIZE - offsetof(struct __DIR, first_entry))
|
|
|
|
struct __DIR {
|
|
int fd;
|
|
short next_entry;
|
|
unsigned short entries_left;
|
|
long seek_position;
|
|
long current_position;
|
|
struct dirent first_entry;
|
|
};
|
|
|
|
#endif /* DIRENT_PRIVATE_H */
|