OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c65cbf9
)
Add the glibc-compatible d_fileno.
author
Elliott Hughes
<enh@google.com>
Thu, 9 Jan 2014 20:37:12 +0000
(12:37 -0800)
committer
Elliott Hughes
<enh@google.com>
Thu, 9 Jan 2014 20:37:12 +0000
(12:37 -0800)
d_ino is the POSIX name, but glibc also offers d_fileno, and
that's what strace is using.
Change-Id: I3fadbe7a64700b42e78c7f4631620e864d43147b
libc/include/dirent.h
patch
|
blob
|
history
diff --git
a/libc/include/dirent.h
b/libc/include/dirent.h
index
3b00645
..
129cdfa
100644
(file)
--- a/
libc/include/dirent.h
+++ b/
libc/include/dirent.h
@@
-53,6
+53,7
@@
struct dirent {
unsigned char d_type;
char d_name[256];
};
+#define d_fileno d_ino
#define dirent64 dirent
typedef struct DIR DIR;