LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
dirent.h
Go to the documentation of this file.
1#ifndef _dirent_h_
2#define _dirent_h_
3
4#include <sys/iosupport.h>
5#include <sys/types.h>
6#include <sys/syslimits.h>
7
8#define _DIRENT_HAVE_D_TYPE
9
10#define DT_UNKNOWN 0
11#define DT_FIFO 1
12#define DT_CHR 2
13#define DT_DIR 4
14#define DT_BLK 6
15#define DT_REG 8
16#define DT_LNK 10
17#define DT_SOCK 12
18#define DT_WHT 14
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24 struct dirent {
25 ino_t d_ino;
26 unsigned char d_type;
27 char d_name[NAME_MAX+1];
28 time_t d_atime;
29 time_t d_mtime;
30 time_t d_ctime;
31 };
32
33 typedef struct {
34 long int position;
36 struct dirent fileData;
37 } DIR;
38
39 int closedir(DIR *dirp);
40 DIR *opendir(const char *dirname);
41 struct dirent *readdir(DIR *dirp);
42 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
43 void rewinddir(DIR *dirp);
44 void seekdir(DIR *dirp, long int loc);
45 long int telldir(DIR *dirp);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif // _dirent_h_
int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
long int telldir(DIR *dirp)
Definition: newlib.c:1251
struct dirent * readdir(DIR *dirp)
Definition: newlib.c:1182
int closedir(DIR *dirp)
Definition: newlib.c:1169
void seekdir(DIR *dirp, long int loc)
Definition: newlib.c:1230
void rewinddir(DIR *dirp)
Definition: newlib.c:1221
DIR * opendir(const char *dirname)
Definition: newlib.c:1149
Definition: dirent.h:33
DIR_ITER * dirData
Definition: dirent.h:35
long int position
Definition: dirent.h:34
Definition: dirent.h:24
char d_name[NAME_MAX+1]
Definition: dirent.h:27
time_t d_ctime
Definition: dirent.h:30
time_t d_mtime
Definition: dirent.h:29
ino_t d_ino
Definition: dirent.h:25
unsigned char d_type
Definition: dirent.h:26
time_t d_atime
Definition: dirent.h:28