Browse Source

Try to get a correct stat record

git-svn-id: trunk@36666 -
pierre 8 years ago
parent
commit
de3f4e72ed
1 changed files with 8 additions and 6 deletions
  1. 8 6
      rtl/linux/sparc64/stat.inc

+ 8 - 6
rtl/linux/sparc64/stat.inc

@@ -19,20 +19,22 @@
   { do NOT declare this record as packed, because it needs to be aligned }
   { do NOT declare this record as packed, because it needs to be aligned }
   { to its largest member (i.e., 8 bytes), and declaring it as packed    }
   { to its largest member (i.e., 8 bytes), and declaring it as packed    }
   { disables that                                                        }
   { disables that                                                        }
+  { extracted from "/usr/sparc64-linux-gnu/include/bits/stat.h"  line 38 }
   Stat = record  // No unix typing because of differences
   Stat = record  // No unix typing because of differences
     st_dev    : culong;
     st_dev    : culong;
+    __pad1    : cushort; 
     st_ino    : culong;
     st_ino    : culong;
-    st_nlink  : culong;
-
     st_mode   : cuint;
     st_mode   : cuint;
+    st_nlink  : cuint;
+
     st_uid    : cuint;
     st_uid    : cuint;
     st_gid    : cuint;
     st_gid    : cuint;
-    __pad0    : cuint;
 
 
     st_rdev   : culong;
     st_rdev   : culong;
-    st_size   : clong;
-    st_blksize: clong;
-    st_blocks : clong;
+    __pad2    : cushort;
+    st_size   : clonglong;
+    st_blksize: culong;
+    st_blocks : culong;
 
 
     st_atime  : culong;
     st_atime  : culong;
     st_atime_nsec : culong;
     st_atime_nsec : culong;