diff options
Diffstat (limited to 'com32/include/sys')
-rw-r--r-- | com32/include/sys/dirent.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/com32/include/sys/dirent.h b/com32/include/sys/dirent.h index a7f26e45..0a27c66e 100644 --- a/com32/include/sys/dirent.h +++ b/com32/include/sys/dirent.h @@ -19,9 +19,19 @@ struct dirent { char d_name[NAME_MAX + 1]; }; +enum dirent_types { + DT_UNKNOWN = 0, + DT_FIFO = 1, + DT_CHR = 2, + DT_DIR = 4, + DT_BLK = 6, + DT_REG = 8, + DT_LNK = 10, + DT_SOCK = 12, + DT_WHT = 14, +}; + struct _DIR_; typedef struct _DIR_ DIR; -#define DIR_REC_LEN(name) (12 + strlen(name) + 1 + 3) & ~3 - #endif /* sys/dirent.h */ |