Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | /* The <dir.h> header gives the layout of a directory. */ |
2 | ||
3 | #pragma once | |
4 | ||
5 | #ifndef _DIR_H | |
6 | #define _DIR_H | |
7 | ||
8 | #ifndef _TYPES_H /* not quite right */ | |
9 | #include <sys/types.h> | |
10 | #endif | |
11 | ||
12 | #define DIRBLKSIZ 512 /* size of directory block */ | |
13 | ||
14 | #ifndef DIRSIZ | |
15 | #define DIRSIZ 14 | |
16 | #endif | |
17 | ||
18 | struct direct { | |
19 | ino_t d_ino; | |
20 | char d_name[DIRSIZ]; | |
21 | }; | |
22 | ||
23 | #endif /* _DIR_H */ |