OSDN Git Service
(root)
/
android-x86
/
external-musl-libc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
537d33d
)
d_fileno alias for d_ino in dirent
author
Rich Felker
<dalias@aerifal.cx>
Sun, 3 Apr 2011 14:24:59 +0000
(10:24 -0400)
committer
Rich 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
patch
|
blob
|
history
diff --git
a/include/dirent.h
b/include/dirent.h
index
209285a
..
ca000bd
100644
(file)
--- 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 *);