Skip to content
Snippets Groups Projects
Verified Commit 30d6f079 authored by jD91mZM2's avatar jD91mZM2
Browse files

Add missing dirent macros (fixes #129)

parent 49ccf364
No related branches found
No related tags found
No related merge requests found
Pipeline #1262 failed
#ifndef _BITS_DIRENT_H #ifndef _BITS_DIRENT_H
#define _BITS_DIRENT_H #define _BITS_DIRENT_H
#define _DIRENT_SIZE (sizeof dirent) // 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 */ #endif /* _BITS_DIRENT_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment