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.
This commit is contained in:
Дмитрий Левин 2013-05-01 15:14:25 +00:00
parent 554e6f3240
commit bd2e28ac51
2 changed files with 15 additions and 5 deletions

14
file.c
View File

@ -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

View 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