From: Roland McGrath Date: Tue, 14 Jan 2003 09:46:18 +0000 (+0000) Subject: 2003-01-14 Roland McGrath X-Git-Tag: v4.5.18~858 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6d3a2957c2bae7bde8ecd638892adc89aac1346;p=strace 2003-01-14 Roland McGrath * defs.h (ALIGN64): Fix defn for PPC, same as FreeBSD one. * defs.h [_LARGEFILE64_SOURCE] (_LFS64_LARGEFILE): Define it. * linux/syscallent.h: Use sys_getdents64, sys_truncate64, sys_ftruncate64, instead of printargs, for those syscalls. --- diff --git a/defs.h b/defs.h index 3c20dd1d..d1bafd82 100644 --- a/defs.h +++ b/defs.h @@ -33,6 +33,13 @@ #include #endif +#ifdef _LARGEFILE64_SOURCE +/* This is the macro everything checks before using foo64 names. */ +# ifndef _LFS64_LARGEFILE +# define _LFS64_LARGEFILE 1 +# endif +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -537,7 +544,8 @@ extern char *signalent2[]; extern int nsignals2; #endif /* SUPPORTED_PERSONALITIES >= 3 */ -#if FREEBSD +#if defined(FREEBSD) || (defined(LINUX) \ + && defined(POWERPC) && !defined(__powerpc64__)) /* ARRGH! off_t args are aligned on 64 bit boundaries! */ #define ALIGN64(tcp,arg) \ do { \ @@ -545,13 +553,6 @@ do { \ memmove (&tcp->u_arg[arg], &tcp->u_arg[arg + 1], \ (tcp->u_nargs - arg - 1) * sizeof tcp->u_arg[0]); \ } while (0) -#elif defined(LINUX) && defined(POWERPC) && !defined(__powerpc64__) -#define ALIGN64(tcp,arg) \ -do { \ - if (!(arg % 2)) \ - memmove (&tcp->u_arg[arg], &tcp->u_arg[arg + 1], \ - (tcp->u_nargs - arg - 1) * sizeof tcp->u_arg[0]); \ -} while (0) #else #define ALIGN64(tcp,arg) do { } while (0) #endif