[Glibc-bsd-commits] r1416 - trunk/glibc-2.3-head/sysdeps/kfreebsd/bits

Petr Salinger ps-guest at costa.debian.org
Fri Mar 31 13:09:45 UTC 2006


Author: ps-guest
Date: 2006-03-31 13:09:44 +0000 (Fri, 31 Mar 2006)
New Revision: 1416

Modified:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/dirent.h
Log:
conform to X/Open, sync with linux variant => fixes lynx-cur


Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/dirent.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/dirent.h	2006-03-30 15:59:19 UTC (rev 1415)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/dirent.h	2006-03-31 13:09:44 UTC (rev 1416)
@@ -23,7 +23,7 @@
 
 struct dirent
   {
-    unsigned int d_fileno;	/* File serial number.  */
+    unsigned int d_ino;		/* File serial number.  */
     unsigned short int d_reclen; /* Length of the whole `struct dirent'.  */
     unsigned char d_type;	/* File type, possibly unknown.  */
     unsigned char d_namlen;	/* Length of the file name.  */
@@ -35,7 +35,7 @@
 #ifdef __USE_LARGEFILE64
 struct dirent64
   {
-    unsigned int d_fileno;	/* File serial number.  */
+    unsigned int d_ino;		/* File serial number.  */
     unsigned short int d_reclen; /* Length of the whole `struct dirent'.  */
     unsigned char d_type;	/* File type, possibly unknown.  */
     unsigned char d_namlen;	/* Length of the file name.  */
@@ -45,6 +45,8 @@
   };
 #endif
 
+#define d_fileno        d_ino   /* Backwards compatibility.  */
+
 #define _DIRENT_HAVE_D_RECLEN 1
 #define _DIRENT_HAVE_D_NAMLEN 1
 #define _DIRENT_HAVE_D_TYPE 1




More information about the Glibc-bsd-commits mailing list