diff options
| author | Richard Henderson <rth@kanga.twiddle.home> | 2004-03-09 05:05:04 -0800 |
|---|---|---|
| committer | Richard Henderson <rth@kanga.twiddle.home> | 2004-03-09 05:05:04 -0800 |
| commit | bb60cd0766426f857a73deb79fc971c809628caa (patch) | |
| tree | 56fd557165ec32882570e2b8bf69b66d36883a6a /include/asm-alpha/stat.h | |
| parent | 4ab286525453ede61663d591e7fbd2a65fba3f2b (diff) | |
[ALPHA] Add stat64 syscalls.
Diffstat (limited to 'include/asm-alpha/stat.h')
| -rw-r--r-- | include/asm-alpha/stat.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/include/asm-alpha/stat.h b/include/asm-alpha/stat.h index 66ea898d1819..07ad3e6b3f3e 100644 --- a/include/asm-alpha/stat.h +++ b/include/asm-alpha/stat.h @@ -1,7 +1,7 @@ #ifndef _ALPHA_STAT_H #define _ALPHA_STAT_H -struct __old_kernel_stat { +struct stat { unsigned int st_dev; unsigned int st_ino; unsigned int st_mode; @@ -14,27 +14,35 @@ struct __old_kernel_stat { unsigned long st_mtime; unsigned long st_ctime; unsigned int st_blksize; - int st_blocks; + unsigned int st_blocks; unsigned int st_flags; unsigned int st_gen; }; -struct stat { - unsigned int st_dev; - unsigned int st_ino; +/* The stat64 structure increases the size of dev_t, blkcnt_t, adds + nanosecond resolution times, and padding for expansion. */ + +struct stat64 { + unsigned long st_dev; + unsigned long st_ino; + unsigned long st_rdev; + long st_size; + unsigned long st_blocks; + unsigned int st_mode; - unsigned int st_nlink; unsigned int st_uid; unsigned int st_gid; - unsigned int st_rdev; - long st_size; + unsigned int st_blksize; + unsigned int st_nlink; + unsigned int __pad0; + unsigned long st_atime; + unsigned long st_atime_nsec; unsigned long st_mtime; + unsigned long st_mtime_nsec; unsigned long st_ctime; - unsigned int st_blksize; - int st_blocks; - unsigned int st_flags; - unsigned int st_gen; + unsigned long st_ctime_nsec; + long __unused[3]; }; #endif |
