]> git.wh0rd.org Git - patches.git/blob - 35_all_uClibc-svn-mips-stat.patch
more random patches. who knows.
[patches.git] / 35_all_uClibc-svn-mips-stat.patch
1 ------------------------------------------------------------------------
2 r13027 | vapier | 2006-01-01 18:49:48 -0500 (Sun, 01 Jan 2006) | 1 line
3
4 previous st_dev change from unsigned long (4bytes) to __dev_t (8bytes) needed to shrink the pads as well to maintain ABI compat
5 ------------------------------------------------------------------------
6 Index: libc/sysdeps/linux/mips/bits/stat.h
7 ===================================================================
8 --- libc/sysdeps/linux/mips/bits/stat.h (revision 11026)
9 +++ libc/sysdeps/linux/mips/bits/stat.h (revision 13027)
10 @@ -37,7 +37,7 @@
11  struct stat
12    {
13         __dev_t st_dev;
14 -    long int st_pad1[3];
15 +    long int st_pad1[2];
16  #ifndef __USE_FILE_OFFSET64
17      __ino_t st_ino;            /* File serial number.          */
18  #else
19 @@ -49,12 +49,12 @@
20      __gid_t st_gid;            /* Group ID of the file's group.*/
21      __dev_t st_rdev;   /* Device number, if device.  */
22  #ifndef __USE_FILE_OFFSET64
23 -    long int st_pad2[2];
24 +    long int st_pad2[1];
25      __off_t st_size;           /* Size of file, in bytes.  */
26      /* SVR4 added this extra long to allow for expansion of off_t.  */
27      long int st_pad3;
28  #else
29 -    long int st_pad2[3];
30 +    long int st_pad2[2];
31      __off64_t st_size;         /* Size of file, in bytes.  */
32  #endif
33      /*
34 @@ -81,14 +81,14 @@
35  struct stat64
36    {
37      __dev_t st_dev;
38 -    long int st_pad1[3];
39 +    long int st_pad1[2];
40      __ino64_t st_ino;          /* File serial number.          */
41      __mode_t st_mode;          /* File mode.  */
42      __nlink_t st_nlink;                /* Link count.  */
43      __uid_t st_uid;            /* User ID of the file's owner. */
44      __gid_t st_gid;            /* Group ID of the file's group.*/
45      __dev_t st_rdev;   /* Device number, if device.  */
46 -    long int st_pad2[3];
47 +    long int st_pad2[2];
48      __off64_t st_size;         /* Size of file, in bytes.  */
49      /*
50       * Actually this should be timestruc_t st_atime, st_mtime and