X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fdirent.h;h=209285aa4160161ce8b9dd1d45044544930ac6e8;hb=5243e5f1606a9c6fcf01414e;hp=a9170936a335b41270dd64d4fd1624719566dce5;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/dirent.h b/include/dirent.h index a9170936..209285aa 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -34,8 +34,22 @@ int dirfd(DIR *); int alphasort(const struct dirent **, const struct dirent **); int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **)); +#ifdef _GNU_SOURCE +#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 + #ifdef __cplusplus -extern } +} #endif #endif