xref: /relibc/include/bits/dirent.h (revision ed19381547d66b76981ea1e4ff942c5a4da45ab7)
1 #ifndef _BITS_DIRENT_H
2 #define _BITS_DIRENT_H
3 
4 // Shamelessly stolen from musl
5 #define DT_UNKNOWN 0
6 #define DT_FIFO 1
7 #define DT_CHR 2
8 #define DT_DIR 4
9 #define DT_BLK 6
10 #define DT_REG 8
11 #define DT_LNK 10
12 #define DT_SOCK 12
13 #define DT_WHT 14
14 #define IFTODT(x) ((x)>>12 & 017)
15 #define DTTOIF(x) ((x)<<12)
16 
17 #endif /* _BITS_DIRENT_H */
18