commit | 06baa2b56cc64ec974f0dc6e67001d0cfa030826 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sun Apr 03 10:24:59 2011 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sun Apr 03 10:24:59 2011 -0400 |
tree | 5159712d2215cb4ee919206d2cda6eff29ed3f5d | |
parent | 537d33d33478034b62928e5cacf397b049ac78ab [diff] |
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 209285a..ca000bd 100644 --- a/include/dirent.h +++ b/include/dirent.h
@@ -21,6 +21,8 @@ char d_name[1]; }; +#define d_fileno d_ino + int closedir(DIR *); DIR *fdopendir(int); DIR *opendir(const char *);