]> granicus.if.org Git - strace/commitdiff
x32: fix decoding of __old_kernel_stat based syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 1 May 2013 15:14:25 +0000 (15:14 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 1 May 2013 15:14:25 +0000 (15:14 +0000)
* file.c [X32] (struct __old_kernel_stat): Define.
* linux/x32/syscallent1.h: Remove sys_old*stat redirections.

file.c
linux/x32/syscallent1.h

diff --git a/file.c b/file.c
index 09bb8462e9e79cfe9cafb74a0e6dcb37f232e1b2..040f469d855d3e8f46ef4b8f9f1406b0b8c4c9a1 100644 (file)
--- a/file.c
+++ b/file.c
@@ -118,6 +118,20 @@ struct stat64 {
        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
index 5f6394e7a7b987caac80270df5f012dec8314cbc..dc1d32ee6ae3bad60ee18d0581f0106060b32c6a 100644 (file)
@@ -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