ソースを参照

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.
Rich Felker 14 年 前
コミット
06baa2b56c
1 ファイル変更2 行追加0 行削除
  1. 2 0
      include/dirent.h

+ 2 - 0
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 *);