git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
refactor: restructure the user space stuff.
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
includes
/
dirent.h
1
#ifndef __LUNAIX_SYS_DIRENT_H
2
#define __LUNAIX_SYS_DIRENT_H
3
4
#include <lunaix/dirent_defs.h>
5
6
typedef struct
7
{
8
int dirfd;
9
struct lx_dirent _lxd;
10
} DIR;
11
12
struct dirent
13
{
14
unsigned char d_type;
15
char d_name[256];
16
};
17
18
extern DIR*
19
opendir(const char* dirp);
20
21
extern int
22
closedir(DIR* dirp);
23
24
extern struct dirent*
25
readdir(DIR* dir);
26
27
extern int
28
sys_readdir(int fd, struct lx_dirent* dirent);
29
30
#endif /* __LUNAIX_DIRENT_H */