diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-alpha/stat.h | 32 | ||||
| -rw-r--r-- | include/asm-alpha/unistd.h | 5 |
2 files changed, 24 insertions, 13 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 diff --git a/include/asm-alpha/unistd.h b/include/asm-alpha/unistd.h index ba2e828b263e..8ad07504b944 100644 --- a/include/asm-alpha/unistd.h +++ b/include/asm-alpha/unistd.h @@ -360,7 +360,10 @@ #define __NR_clock_nanosleep 422 #define __NR_semtimedop 423 #define __NR_tgkill 424 -#define NR_SYSCALLS 425 +#define __NR_stat64 425 +#define __NR_lstat64 426 +#define __NR_fstat64 427 +#define NR_SYSCALLS 428 #if defined(__GNUC__) |
