Merge branch 'dirent-bits' into 'master'

move dirent bits to cbindgen

See merge request redox-os/relibc!1137
This commit is contained in:
Jeremy Soller
2026-03-29 07:09:58 -06:00
2 changed files with 14 additions and 18 deletions
-17
View File
@@ -1,17 +0,0 @@
#ifndef _BITS_DIRENT_H
#define _BITS_DIRENT_H
// Shamelessly stolen from musl
#define DT_UNKNOWN 0
#define DT_FIFO 1
#define DT_CHR 2
#define DT_DIR 4
#define DT_BLK 6
#define DT_REG 8
#define DT_LNK 10
#define DT_SOCK 12
#define DT_WHT 14
#define IFTODT(x) ((x)>>12 & 017)
#define DTTOIF(x) ((x)<<12)
#endif /* _BITS_DIRENT_H */