2003-01-14 Roland McGrath <roland@redhat.com>
* 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.
This commit is contained in:
parent
8073179e98
commit
e6d3a2957c
17
defs.h
17
defs.h
@ -33,6 +33,13 @@
|
||||
#include <features.h>
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user