blob: 884b69eba63454df8a672f99aa2776ed41f64036 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef _POSIX_DIRENT_H
#define _POSIX_DIRENT_H
#include <stdint.h>
struct dirent {
char *d_name;
};
typedef struct {
struct dirent dirent;
char *name;
int32_t offset;
char **entries;
int32_t curentry;
int32_t nbentries;
int has_more;
} DIR;
DIR *opendir(const char *name);
struct dirent *readdir(DIR *dir);
int closedir(DIR *dir);
#endif /* _POSIX_DIRENT_H */
|