summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-02-02 22:11:32 +0000
committerRoland McGrath <roland@redhat.com>2005-02-02 22:11:32 +0000
commitfee836eb65cd9792914b0e1c038c354be6ab1170 (patch)
tree493fec7aab178c151cc298ed3e6d362219dba1e1
parent84219e1d181fdff7846e958ead579bbdab2fa1bd (diff)
downloadstrace-fee836eb65cd9792914b0e1c038c354be6ab1170.tar.gz
strace-fee836eb65cd9792914b0e1c038c354be6ab1170.tar.bz2
strace-fee836eb65cd9792914b0e1c038c354be6ab1170.tar.xz
2005-02-02 Roland McGrath <roland@redhat.com>
* file.c (openmodes) [O_LARGEFILE] [O_LARGEFILE == 0]: Redefine to known values for Linux.
-rw-r--r--file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/file.c b/file.c
index 3960afb..630f973 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