Contents of /trunk/mkinitrd-magellan/klibc/usr/include/sys/dirent.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 568 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 568 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * sys/dirent.h |
3 | */ |
4 | |
5 | #ifndef _SYS_DIRENT_H |
6 | #define _SYS_DIRENT_H |
7 | |
8 | #include <stdint.h> |
9 | |
10 | /* The kernel calls this struct dirent64 */ |
11 | struct dirent { |
12 | uint64_t d_ino; |
13 | int64_t d_off; |
14 | unsigned short d_reclen; |
15 | unsigned char d_type; |
16 | char d_name[256]; |
17 | }; |
18 | |
19 | /* File types to use for d_type */ |
20 | #define DT_UNKNOWN 0 |
21 | #define DT_FIFO 1 |
22 | #define DT_CHR 2 |
23 | #define DT_DIR 4 |
24 | #define DT_BLK 6 |
25 | #define DT_REG 8 |
26 | #define DT_LNK 10 |
27 | #define DT_SOCK 12 |
28 | #define DT_WHT 14 |
29 | |
30 | __extern int getdents(unsigned int, struct dirent *, unsigned int); |
31 | |
32 | #endif /* _SYS_DIRENT_H */ |