blob: 0422912f91626bc0f926b75b204cd69cd3104aa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=863/1
--- include/asm-arm/stat.h
+++ include/asm-arm/stat.h
@@ -42,8 +42,14 @@
* insane amounts of padding around dev_t's.
*/
struct stat64 {
- unsigned short st_dev;
- unsigned char __pad0[10];
+#if defined(__ARMEB__)
+ unsigned char __pad0b[6];
+ unsigned short st_dev;
+#else
+ unsigned short st_dev;
+ unsigned char __pad0b[6];
+#endif
+ unsigned char __pad0[4];
#define STAT64_HAS_BROKEN_ST_INO 1
unsigned long __st_ino;
@@ -53,14 +59,25 @@
unsigned long st_uid;
unsigned long st_gid;
- unsigned short st_rdev;
- unsigned char __pad3[10];
+#if defined(__ARMEB__)
+ unsigned char __pad3b[6];
+ unsigned short st_rdev;
+#else /* Must be little */
+ unsigned short st_rdev;
+ unsigned char __pad3b[6];
+#endif
+ unsigned char __pad3[4];
long long st_size;
unsigned long st_blksize;
- unsigned long st_blocks; /* Number 512-byte blocks allocated. */
- unsigned long __pad4; /* future possible st_blocks high bits */
+#if defined(__ARMEB__)
+ unsigned long __pad4; /* Future possible st_blocks hi bits */
+ unsigned long st_blocks; /* Number 512-byte blocks allocated. */
+#else /* Must be little */
+ unsigned long st_blocks; /* Number 512-byte blocks allocated. */
+ unsigned long __pad4; /* Future possible st_blocks hi bits */
+#endif
unsigned long st_atime;
unsigned long __pad5;
|