diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-02-09 06:44:53 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-09 06:44:53 +0000 |
commit | 59b10970c522f8cee255a08b4faf93c8e3addd57 (patch) | |
tree | eceb17b0d6e9a08bc90ade0f4b6f2f3a95c86e79 /libc/sysdeps/linux/mips/bits/kernel_stat.h | |
parent | 33fa6c8eb3e6aa58bf9d86469adc66046b469db4 (diff) |
Atsushi Nemoto writes: Add st_[amc]timensec to N32/N64 version of stat, add st_[amc]time_nsec to each kernel_stat, and define STAT_HAVE_NSEC to convert them
Diffstat (limited to 'libc/sysdeps/linux/mips/bits/kernel_stat.h')
-rw-r--r-- | libc/sysdeps/linux/mips/bits/kernel_stat.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/mips/bits/kernel_stat.h b/libc/sysdeps/linux/mips/bits/kernel_stat.h index d2f748e37..13c23d359 100644 --- a/libc/sysdeps/linux/mips/bits/kernel_stat.h +++ b/libc/sysdeps/linux/mips/bits/kernel_stat.h @@ -25,11 +25,11 @@ struct kernel_stat { unsigned int st_pad2[3]; __kernel_off_t st_size; unsigned int st_atime; - unsigned int reserved0; + unsigned int st_atime_nsec; unsigned int st_mtime; - unsigned int reserved1; + unsigned int st_mtime_nsec; unsigned int st_ctime; - unsigned int reserved2; + unsigned int st_ctime_nsec; unsigned int st_blksize; unsigned int reserved3; unsigned long st_blocks; @@ -49,11 +49,11 @@ struct kernel_stat { unsigned int st_pad2[3]; unsigned long long st_size; unsigned int st_atime; - unsigned int reserved0; + unsigned int st_atime_nsec; unsigned int st_mtime; - unsigned int reserved1; + unsigned int st_mtime_nsec; unsigned int st_ctime; - unsigned int reserved2; + unsigned int st_ctime_nsec; unsigned int st_blksize; unsigned int reserved3; unsigned long long st_blocks; @@ -73,11 +73,11 @@ struct kernel_stat { __kernel_off_t st_size; long st_pad3; time_t st_atime; - long reserved0; + long st_atime_nsec; time_t st_mtime; - long reserved1; + long st_mtime_nsec; time_t st_ctime; - long reserved2; + long st_ctime_nsec; long st_blksize; long st_blocks; long st_pad4[14]; @@ -95,16 +95,18 @@ struct kernel_stat64 { unsigned long st_pad1[3]; /* Reserved for st_rdev expansion */ long long st_size; time_t st_atime; - unsigned long reserved0; /* Reserved for st_atime expansion */ + unsigned long st_atime_nsec; time_t st_mtime; - unsigned long reserved1; /* Reserved for st_mtime expansion */ + unsigned long st_mtime_nsec; time_t st_ctime; - unsigned long reserved2; /* Reserved for st_ctime expansion */ + unsigned long st_ctime_nsec; unsigned long st_blksize; unsigned long st_pad2; long long st_blocks; }; #endif /* O32 */ +#define STAT_HAVE_NSEC 1 + #endif /* _BITS_STAT_STRUCT_H */ |