x32: fix decoding of __old_kernel_stat based syscalls
* file.c [X32] (struct __old_kernel_stat): Define.
* linux/x32/syscallent1.h: Remove sys_old*stat redirections.
diff --git a/file.c b/file.c
index 09bb846..040f469 100644
--- a/file.c
+++ b/file.c
@@ -118,6 +118,20 @@
unsigned long st_ctime_nsec;
unsigned long long st_ino;
};
+
+struct __old_kernel_stat {
+ unsigned short st_dev;
+ unsigned short st_ino;
+ unsigned short st_mode;
+ unsigned short st_nlink;
+ unsigned short st_uid;
+ unsigned short st_gid;
+ unsigned short st_rdev;
+ unsigned int st_size;
+ unsigned int st_atime;
+ unsigned int st_mtime;
+ unsigned int st_ctime;
+};
#else
# undef dev_t
# undef ino_t
diff --git a/linux/x32/syscallent1.h b/linux/x32/syscallent1.h
index 5f6394e..dc1d32e 100644
--- a/linux/x32/syscallent1.h
+++ b/linux/x32/syscallent1.h
@@ -1,9 +1,5 @@
-/* Our second set comes from the i386 files.
- Only a couple of calls we cannot support without the i386 headers. */
+/* Our second set comes from the i386 files. */
-#define sys_oldstat printargs
-#define sys_oldfstat printargs
-#define sys_oldlstat printargs
#define sys_lstat64 sys_stat64
#define sys_truncate64 sys_truncate
#define sys_ftruncate64 sys_ftruncate