This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix O_LARGEFILE for Linux/SPARC and s390
- From: Andreas Jaeger <aj at suse dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>,"libc-ports at sourceware dot org" <libc-ports at sourceware dot org>,libc-alpha at sourceware dot org
- Date: Wed, 24 Oct 2012 20:48:18 +0200
- Subject: Re: Fix O_LARGEFILE for Linux/SPARC and s390
- References: <5084483B.4030205@suse.com> <Pine.LNX.4.64.1210212250110.1291@digraph.polyomino.org.uk> <Pine.LNX.4.64.1210212257280.1291@digraph.polyomino.org.uk> <2036625.SeAZvNclbu__45590.3210131966$1350890838$gmane$org@byrd> <m2pq477qrp.fsf@igel.home>
On 10/24/2012 06:56 PM, Andreas Schwab wrote:
Andreas Jaeger <aj@suse.com> writes:
diff --git a/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
b/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
index 47941c4..6f53fbc 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
@@ -25,9 +25,9 @@
#ifdef __USE_LARGEFILE64
# if __WORDSIZE == 64
/* Not necessary, files are always with 64bit off_t. */
-# define O_LARGEFILE 0
+# define __O_LARGEFILE 0
# else
-# define O_LARGEFILE 0100000
+# define __O_LARGEFILE 0100000
# endif
#endif
__O_LARGEFILE should be defined unconditionally.
Yes - and that's how it looks in the current committed code,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126