From: Dmitry V. Levin Date: Wed, 1 May 2013 15:14:25 +0000 (+0000) Subject: x32: fix decoding of __old_kernel_stat based syscalls X-Git-Tag: v4.8~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd2e28ac51d36d348c8ab7d7f8523a7075edaff4;p=strace 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 09bb8462..040f469d 100644 --- 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 diff --git a/linux/x32/syscallent1.h b/linux/x32/syscallent1.h index 5f6394e7..dc1d32ee 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