From: Rich Felker Date: Sun, 3 Apr 2011 14:24:59 +0000 (-0400) Subject: d_fileno alias for d_ino in dirent X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=06baa2b56cc64ec974f0dc6e67001d0cfa030826;p=musl d_fileno alias for d_ino in dirent this is nonstandard but since POSIX reserved d_ prefix in dirent.h we might as well define it unconditionally. some programs depend on it. --- diff --git a/include/dirent.h b/include/dirent.h index 209285aa..ca000bd9 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -21,6 +21,8 @@ struct dirent char d_name[1]; }; +#define d_fileno d_ino + int closedir(DIR *); DIR *fdopendir(int); DIR *opendir(const char *);