repo.or.cz
/
thunix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kbd: use a better get_key method
[thunix.git]
/
include
/
dirent.h
blob
7974bb672ca270d38f5d7087eda64757f70e96df
1
#ifndef DIRENT_H
2
#define DIRENT_H
3
4
#include <stdint.h>
5
6
7
struct
dirent
{
8
uint32_t
d_ino
;
9
uint32_t
d_off
;
10
uint16_t
d_reclen
;
11
uint16_t
d_type
;
12
char
d_name
[
256
];
13
};
14
15
16
struct
file
;
17
18
typedef
struct
{
19
struct
file
*
dd_dir
;
20
}
DIR
;
21
22
23
DIR
*
opendir
(
const char
*);
24
struct
dirent
*
tfs_readdir
(
struct
file
*);
25
void
tfs_closedir
(
DIR
*);
26
27
extern
DIR
*
this_dir
;
28
29
#endif
/* dirent.h */