Commit 9391bc77 authored by Helge Deller's avatar Helge Deller

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: default avatarHelge Deller <deller@gmx.de>
parent 998bbb2f
...@@ -5,67 +5,65 @@ ...@@ -5,67 +5,65 @@
struct stat { struct stat {
unsigned int st_dev; /* dev_t is 32 bits on parisc */ unsigned int st_dev; /* dev_t is 32 bits on parisc */
ino_t st_ino; /* 32 bits */ unsigned int st_ino; /* 32 bits */
mode_t st_mode; /* 16 bits */ unsigned short st_mode; /* 16 bits */
unsigned short st_nlink; /* 16 bits */ unsigned short st_nlink; /* 16 bits */
unsigned short st_reserved1; /* old st_uid */ unsigned short st_reserved1; /* old st_uid */
unsigned short st_reserved2; /* old st_gid */ unsigned short st_reserved2; /* old st_gid */
unsigned int st_rdev; unsigned int st_rdev;
off_t st_size; signed int st_size;
time_t st_atime; signed int st_atime;
unsigned int st_atime_nsec; unsigned int st_atime_nsec;
time_t st_mtime; signed int st_mtime;
unsigned int st_mtime_nsec; unsigned int st_mtime_nsec;
time_t st_ctime; signed int st_ctime;
unsigned int st_ctime_nsec; unsigned int st_ctime_nsec;
int st_blksize; int st_blksize;
int st_blocks; int st_blocks;
unsigned int __unused1; /* ACL stuff */ unsigned int __unused1; /* ACL stuff */
unsigned int __unused2; /* network */ unsigned int __unused2; /* network */
ino_t __unused3; /* network */ unsigned int __unused3; /* network */
unsigned int __unused4; /* cnodes */ unsigned int __unused4; /* cnodes */
unsigned short __unused5; /* netsite */ unsigned short __unused5; /* netsite */
short st_fstype; short st_fstype;
unsigned int st_realdev; unsigned int st_realdev;
unsigned short st_basemode; unsigned short st_basemode;
unsigned short st_spareshort; unsigned short st_spareshort;
uid_t st_uid; unsigned int st_uid;
gid_t st_gid; unsigned int st_gid;
unsigned int st_spare4[3]; unsigned int st_spare4[3];
}; };
#define STAT_HAVE_NSEC #define STAT_HAVE_NSEC
typedef __kernel_off64_t off64_t;
struct hpux_stat64 { struct hpux_stat64 {
unsigned int st_dev; /* dev_t is 32 bits on parisc */ unsigned int st_dev; /* dev_t is 32 bits on parisc */
ino_t st_ino; /* 32 bits */ unsigned int st_ino; /* 32 bits */
mode_t st_mode; /* 16 bits */ unsigned short st_mode; /* 16 bits */
unsigned short st_nlink; /* 16 bits */ unsigned short st_nlink; /* 16 bits */
unsigned short st_reserved1; /* old st_uid */ unsigned short st_reserved1; /* old st_uid */
unsigned short st_reserved2; /* old st_gid */ unsigned short st_reserved2; /* old st_gid */
unsigned int st_rdev; unsigned int st_rdev;
off64_t st_size; signed long long st_size;
time_t st_atime; signed int st_atime;
unsigned int st_spare1; unsigned int st_spare1;
time_t st_mtime; signed int st_mtime;
unsigned int st_spare2; unsigned int st_spare2;
time_t st_ctime; signed int st_ctime;
unsigned int st_spare3; unsigned int st_spare3;
int st_blksize; int st_blksize;
__u64 st_blocks; unsigned long long st_blocks;
unsigned int __unused1; /* ACL stuff */ unsigned int __unused1; /* ACL stuff */
unsigned int __unused2; /* network */ unsigned int __unused2; /* network */
ino_t __unused3; /* network */ unsigned int __unused3; /* network */
unsigned int __unused4; /* cnodes */ unsigned int __unused4; /* cnodes */
unsigned short __unused5; /* netsite */ unsigned short __unused5; /* netsite */
short st_fstype; short st_fstype;
unsigned int st_realdev; unsigned int st_realdev;
unsigned short st_basemode; unsigned short st_basemode;
unsigned short st_spareshort; unsigned short st_spareshort;
uid_t st_uid; unsigned int st_uid;
gid_t st_gid; unsigned int st_gid;
unsigned int st_spare4[3]; unsigned int st_spare4[3];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment