d_fileno alias for d_ino in dirent
authorRich Felker <dalias@aerifal.cx>
Sun, 3 Apr 2011 14:24:59 +0000 (10:24 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 3 Apr 2011 14:24:59 +0000 (10:24 -0400)
this is nonstandard but since POSIX reserved d_ prefix in dirent.h we
might as well define it unconditionally. some programs depend on it.

include/dirent.h

index 209285aa4160161ce8b9dd1d45044544930ac6e8..ca000bd903673208c671ce4b795b02025dbfdf27 100644 (file)
@@ -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 *);