summaryrefslogtreecommitdiff
path: root/arch/mips64/kstat.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-07-18 19:07:32 -0400
committerRich Felker <dalias@aerifal.cx>2019-07-18 19:38:37 -0400
commitfa7d4218c7038cb4bd29cbdf693306118b324030 (patch)
tree768d3898a9ec703ee09f426eb0fa33776b83b843 /arch/mips64/kstat.h
parent01ae3fc6d48f4a45535189b7a6db286535af08ca (diff)
downloadmusl-fa7d4218c7038cb4bd29cbdf693306118b324030.tar.gz
remove mips/n32/64 stat struct hacks from syscall machinery
now that we have a kstat structure decoupled from the public struct stat, we can just use the broken kernel structures directly and let the code in fstatat do the translation.
Diffstat (limited to 'arch/mips64/kstat.h')
-rw-r--r--arch/mips64/kstat.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/arch/mips64/kstat.h b/arch/mips64/kstat.h
index 74cb5a08..9a4468b4 100644
--- a/arch/mips64/kstat.h
+++ b/arch/mips64/kstat.h
@@ -1,23 +1,21 @@
struct kstat {
- dev_t st_dev;
+ unsigned st_dev;
int __pad1[3];
ino_t st_ino;
mode_t st_mode;
- nlink_t st_nlink;
+ unsigned st_nlink;
uid_t st_uid;
gid_t st_gid;
- dev_t st_rdev;
- unsigned int __pad2[2];
+ unsigned st_rdev;
+ int __pad2[3];
off_t st_size;
- int __pad3;
- long st_atime_sec;
- long st_atime_nsec;
- long st_mtime_sec;
- long st_mtime_nsec;
- long st_ctime_sec;
- long st_ctime_nsec;
- blksize_t st_blksize;
- unsigned int __pad4;
+ int st_atime_sec;
+ int st_atime_nsec;
+ int st_mtime_sec;
+ int st_mtime_nsec;
+ int st_ctime_sec;
+ int st_ctime_nsec;
+ unsigned st_blksize;
+ unsigned __pad3;
blkcnt_t st_blocks;
- int __pad5[14];
};