diff options
author | Helge Deller <deller@gmx.de> | 2014-01-31 17:00:38 -0500 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2014-02-02 14:57:33 -0500 |
commit | 9391bc777b055aca06f422095261e922431c0ec2 (patch) | |
tree | 27a9e40008ffd37f100a2eb764ae6bd3a3e1c58d /arch/parisc/include/uapi | |
parent | 998bbb2fc028b5cf37008ff8450391d94fe727f3 (diff) |
parisc: convert uapi/asm/stat.h to use native types only
The stat.h header file is exported to userspace. Some userspace
applications failed to compile due to missing/unknown types, so we
better convert it to use native types only (like it's done on other
architectures too).
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/uapi')
-rw-r--r-- | arch/parisc/include/uapi/asm/stat.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/arch/parisc/include/uapi/asm/stat.h b/arch/parisc/include/uapi/asm/stat.h index d76fbda5d62c..b606b366d0a7 100644 --- a/arch/parisc/include/uapi/asm/stat.h +++ b/arch/parisc/include/uapi/asm/stat.h | |||
@@ -5,67 +5,65 @@ | |||
5 | 5 | ||
6 | struct stat { | 6 | struct stat { |
7 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ | 7 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ |
8 | ino_t st_ino; /* 32 bits */ | 8 | unsigned int st_ino; /* 32 bits */ |
9 | mode_t st_mode; /* 16 bits */ | 9 | unsigned short st_mode; /* 16 bits */ |
10 | unsigned short st_nlink; /* 16 bits */ | 10 | unsigned short st_nlink; /* 16 bits */ |
11 | unsigned short st_reserved1; /* old st_uid */ | 11 | unsigned short st_reserved1; /* old st_uid */ |
12 | unsigned short st_reserved2; /* old st_gid */ | 12 | unsigned short st_reserved2; /* old st_gid */ |
13 | unsigned int st_rdev; | 13 | unsigned int st_rdev; |
14 | off_t st_size; | 14 | signed int st_size; |
15 | time_t st_atime; | 15 | signed int st_atime; |
16 | unsigned int st_atime_nsec; | 16 | unsigned int st_atime_nsec; |
17 | time_t st_mtime; | 17 | signed int st_mtime; |
18 | unsigned int st_mtime_nsec; | 18 | unsigned int st_mtime_nsec; |
19 | time_t st_ctime; | 19 | signed int st_ctime; |
20 | unsigned int st_ctime_nsec; | 20 | unsigned int st_ctime_nsec; |
21 | int st_blksize; | 21 | int st_blksize; |
22 | int st_blocks; | 22 | int st_blocks; |
23 | unsigned int __unused1; /* ACL stuff */ | 23 | unsigned int __unused1; /* ACL stuff */ |
24 | unsigned int __unused2; /* network */ | 24 | unsigned int __unused2; /* network */ |
25 | ino_t __unused3; /* network */ | 25 | unsigned int __unused3; /* network */ |
26 | unsigned int __unused4; /* cnodes */ | 26 | unsigned int __unused4; /* cnodes */ |
27 | unsigned short __unused5; /* netsite */ | 27 | unsigned short __unused5; /* netsite */ |
28 | short st_fstype; | 28 | short st_fstype; |
29 | unsigned int st_realdev; | 29 | unsigned int st_realdev; |
30 | unsigned short st_basemode; | 30 | unsigned short st_basemode; |
31 | unsigned short st_spareshort; | 31 | unsigned short st_spareshort; |
32 | uid_t st_uid; | 32 | unsigned int st_uid; |
33 | gid_t st_gid; | 33 | unsigned int st_gid; |
34 | unsigned int st_spare4[3]; | 34 | unsigned int st_spare4[3]; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | #define STAT_HAVE_NSEC | 37 | #define STAT_HAVE_NSEC |
38 | 38 | ||
39 | typedef __kernel_off64_t off64_t; | ||
40 | |||
41 | struct hpux_stat64 { | 39 | struct hpux_stat64 { |
42 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ | 40 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ |
43 | ino_t st_ino; /* 32 bits */ | 41 | unsigned int st_ino; /* 32 bits */ |
44 | mode_t st_mode; /* 16 bits */ | 42 | unsigned short st_mode; /* 16 bits */ |
45 | unsigned short st_nlink; /* 16 bits */ | 43 | unsigned short st_nlink; /* 16 bits */ |
46 | unsigned short st_reserved1; /* old st_uid */ | 44 | unsigned short st_reserved1; /* old st_uid */ |
47 | unsigned short st_reserved2; /* old st_gid */ | 45 | unsigned short st_reserved2; /* old st_gid */ |
48 | unsigned int st_rdev; | 46 | unsigned int st_rdev; |
49 | off64_t st_size; | 47 | signed long long st_size; |
50 | time_t st_atime; | 48 | signed int st_atime; |
51 | unsigned int st_spare1; | 49 | unsigned int st_spare1; |
52 | time_t st_mtime; | 50 | signed int st_mtime; |
53 | unsigned int st_spare2; | 51 | unsigned int st_spare2; |
54 | time_t st_ctime; | 52 | signed int st_ctime; |
55 | unsigned int st_spare3; | 53 | unsigned int st_spare3; |
56 | int st_blksize; | 54 | int st_blksize; |
57 | __u64 st_blocks; | 55 | unsigned long long st_blocks; |
58 | unsigned int __unused1; /* ACL stuff */ | 56 | unsigned int __unused1; /* ACL stuff */ |
59 | unsigned int __unused2; /* network */ | 57 | unsigned int __unused2; /* network */ |
60 | ino_t __unused3; /* network */ | 58 | unsigned int __unused3; /* network */ |
61 | unsigned int __unused4; /* cnodes */ | 59 | unsigned int __unused4; /* cnodes */ |
62 | unsigned short __unused5; /* netsite */ | 60 | unsigned short __unused5; /* netsite */ |
63 | short st_fstype; | 61 | short st_fstype; |
64 | unsigned int st_realdev; | 62 | unsigned int st_realdev; |
65 | unsigned short st_basemode; | 63 | unsigned short st_basemode; |
66 | unsigned short st_spareshort; | 64 | unsigned short st_spareshort; |
67 | uid_t st_uid; | 65 | unsigned int st_uid; |
68 | gid_t st_gid; | 66 | unsigned int st_gid; |
69 | unsigned int st_spare4[3]; | 67 | unsigned int st_spare4[3]; |
70 | }; | 68 | }; |
71 | 69 | ||