squash! stat, off_t => _LARGE_FILES Split me?

This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-10-30 17:42:53 +01:00
parent 34d241e4dc
commit ed2d8d19f6
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
6 changed files with 22 additions and 2 deletions

View File

@ -48,7 +48,7 @@ struct dirent
ino_t d_ino;
off_t d_off;
unsigned short int d_reclen;
#if 0
#if __SIZEOF_LONG_LONG__ == 8
unsigned char d_type;
#endif
char d_name[256]; /* We must not include limits.h! */

View File

@ -76,11 +76,19 @@ struct stat
#undef SYS_stat
#define SYS_stat SYS_stat64
#undef SYS_lstat
#define SYS_lstat SYS_lstat64
#undef SYS_fstat
#define SYS_fstat SYS_fstat64
#undef SYS_fctnl
#define SYS_fctnl SYS_fcntl64
#undef SYS_getdents
#define SYS_getdents SYS_getdents64
#endif // __SIZEOF_LONG_LONG__ == 8
#endif // __MES_LINUX_ARM_KERNEL_STAT_H

View File

@ -70,6 +70,7 @@
#define SYS_rt_sigaction 0xae
#define SYS_rt_sigreturn 0xad
#define SYS_fcntl 0x37
#define SYS_fcntl64 0xdd
#define SYS_getrusage 0x4d
#define SYS_lstat 0x6b
#define SYS_lstat64 0xc4
@ -78,6 +79,7 @@
#define SYS_fstat64 0xc5
#define SYS_nanosleep 0xa2
#define SYS_getdents 0x8d
#define SYS_getdents64 0xdc
/* bash */
#define SYS_setuid 0x17

View File

@ -76,11 +76,19 @@ struct stat
#undef SYS_stat
#define SYS_stat SYS_stat64
#undef SYS_lstat
#define SYS_lstat SYS_lstat64
#undef SYS_fstat
#define SYS_fstat SYS_fstat64
#undef SYS_fctnl
#define SYS_fctnl SYS_fcntl64
#undef SYS_getdents
#define SYS_getdents SYS_getdents64
#endif // __SIZEOF_LONG_LONG__ == 8
#endif // __MES_LINUX_X86_KERNEL_STAT_H

View File

@ -70,6 +70,7 @@
#define SYS_rt_sigaction 0xae
#define SYS_signal 0x30
#define SYS_fcntl 0x37
#define SYS_fcntl64 0xdd
#define SYS_getrusage 0x4d
#define SYS_lstat 0x6b
#define SYS_lstat64 0xc4
@ -78,6 +79,7 @@
#define SYS_fstat64 0xc5
#define SYS_nanosleep 0xa2
#define SYS_getdents 0x8d
#define SYS_getdents64 0xdc
/* bash */
#define SYS_setuid 0x17

View File

@ -106,7 +106,7 @@ typedef unsigned long uintptr_t;
#ifndef __MES_OFF_T
#define __MES_OFF_T
#undef off_t
#if __M2__
#if __M2__ || __SIZEOF_LONG_LONG__ != 8
typedef long off_t;
#else
typedef long long off_t;