This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

stat64 in Linux 2.4.0-test6 :-(



Linux 2.4.0-test6 makes st_ino in struct stat64 a 64bit quantitiy.
Here're the ARM and Sparc patches (these are the two different ways):
--- v2.4.0-test5/linux/include/asm-arm/stat.h   Fri Jan 21 18:19:17 2000
+++ linux/include/asm-arm/stat.h        Tue Aug  1 14:08:00 2000
@@ -45,7 +45,8 @@
        unsigned short  st_dev;
        unsigned char   __pad0[10];
 
-       unsigned long   st_ino;
+#define STAT64_HAS_BROKEN_ST_INO       1
+       unsigned long   __st_ino;
        unsigned int    st_mode;
        unsigned int    st_nlink;
 
@@ -70,8 +71,7 @@
        unsigned long   st_ctime;
        unsigned long   __pad7;         /* will be high 32 bits of ctime someday */
 
-       unsigned long   __unused1;
-       unsigned long   __unused2;
+       unsigned long long      st_ino;
 };
--- v2.4.0-test5/linux/include/asm-sparc/stat.h Fri Jan 28 15:09:09 2000
+++ linux/include/asm-sparc/stat.h      Fri Aug  4 18:16:11 2000
@@ -1,4 +1,4 @@
-/* $Id: stat.h,v 1.11 2000/01/16 15:22:53 jj Exp $ */
+/* $Id: stat.h,v 1.12 2000/08/04 05:35:55 davem Exp $ */
 #ifndef _SPARC_STAT_H
 #define _SPARC_STAT_H
 
@@ -41,9 +41,9 @@
 struct stat64 {
        unsigned char   __pad0[6];
        unsigned short  st_dev;
-       unsigned char   __pad1[4];
 
-       unsigned int    st_ino;
+       unsigned long long      st_ino;
+
        unsigned int    st_mode;
        unsigned int    st_nlink;
 
How should we handle this in glibc?

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]