aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/posix/dirent.h
blob: 56b1d672583162d906a167459e1b852aec9bbaea (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 <sys/types.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 */