summaryrefslogtreecommitdiff
path: root/include/asm-alpha
diff options
context:
space:
mode:
authorRichard Henderson <rth@kanga.twiddle.home>2004-03-09 05:05:04 -0800
committerRichard Henderson <rth@kanga.twiddle.home>2004-03-09 05:05:04 -0800
commitbb60cd0766426f857a73deb79fc971c809628caa (patch)
tree56fd557165ec32882570e2b8bf69b66d36883a6a /include/asm-alpha
parent4ab286525453ede61663d591e7fbd2a65fba3f2b (diff)
[ALPHA] Add stat64 syscalls.
Diffstat (limited to 'include/asm-alpha')
-rw-r--r--include/asm-alpha/stat.h32
-rw-r--r--include/asm-alpha/unistd.h5
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__)