diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-16 16:06:38 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-16 16:06:38 -0700 |
commit | f665c7f0b163495b49d2ba7512b5ff10334aa4c0 (patch) | |
tree | 0803c055458745c889c42284266e5bd529c7c7a4 /system | |
parent | 1a3cb10ca12c7fdfbea1fa3bd253ed46cf7a02ce (diff) |
add some dirent defines, fixes #1277
Diffstat (limited to 'system')
-rw-r--r-- | system/include/libc/sys/dirent.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/system/include/libc/sys/dirent.h b/system/include/libc/sys/dirent.h index 9dcf34d1..0d8b02b5 100644 --- a/system/include/libc/sys/dirent.h +++ b/system/include/libc/sys/dirent.h @@ -34,8 +34,22 @@ int scandir(const char *dirp, enum { DT_UNKNOWN = 0, #define DT_UNKNOWN DT_UNKNOWN - DT_DIR = 4 + DT_FIFO = 1, +#define DT_FIFO DT_FIFO + DT_CHR = 2, +#define DT_CHR DT_CHR + DT_DIR = 4, #define DT_DIR DT_DIR + DT_BLK = 6, +#define DT_BLK DT_BLK + DT_REG = 8, +#define DT_REG DT_REG + DT_LNK = 10, +#define DT_LNK DT_LNK + DT_SOCK = 12, +#define DT_SOCK DT_SOCK + DT_WHT = 14 +#define DT_WHT DT_WHT }; #ifdef __cplusplus |