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.
This commit is contained in:
parent
537d33d334
commit
06baa2b56c
1 changed files with 2 additions and 0 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue