OSDN Git Service

Add the glibc-compatible d_fileno.
authorElliott Hughes <enh@google.com>
Thu, 9 Jan 2014 20:37:12 +0000 (12:37 -0800)
committerElliott 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

index 3b00645..129cdfa 100644 (file)
@@ -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;