From: Roland McGrath Date: Wed, 2 Feb 2005 22:11:32 +0000 (+0000) Subject: 2005-02-02 Roland McGrath X-Git-Tag: v4.5.18~430 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fee836eb65cd9792914b0e1c038c354be6ab1170;p=strace 2005-02-02 Roland McGrath * file.c (openmodes) [O_LARGEFILE] [O_LARGEFILE == 0]: Redefine to known values for Linux. --- diff --git a/file.c b/file.c index 3960afbc..630f973e 100644 --- a/file.c +++ b/file.c @@ -237,6 +237,14 @@ const struct xlat openmodes[] = { { O_DIRECT, "O_DIRECT" }, #endif #ifdef O_LARGEFILE +# if O_LARGEFILE == 0 /* biarch platforms in 64-bit mode */ +# undef O_LARGEFILE +# ifdef SPARC64 +# define O_LARGEFILE 0x40000 +# elif defined X86_64 || defined S390X +# define O_LARGEFILE 0100000 +# endif +# endif { O_LARGEFILE, "O_LARGEFILE" }, #endif #ifdef O_DIRECTORY