From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29732 invoked by alias); 14 May 2012 12:39:59 -0000 Received: (qmail 29724 invoked by uid 22791); 14 May 2012 12:39:58 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 May 2012 12:39:44 +0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/14106] _FILE_OFFSET_BITS=64 goes outside standard namespace Date: Mon, 14 May 2012 12:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00200.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14106 Rich Felker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugdal at aerifal dot cx --- Comment #1 from Rich Felker 2012-05-14 12:39:41 UTC --- This issue has been bothering me for a long time too, but I never thought to report it. The only solution I see is to rename all the *64 functions to __*64 and update the headers accordingly. Of course aliases would need to be kept with the old names, and _LARGEFILE64_SOURCE would need to expose the old names. Solving the problem also has the unfortunate consequence that newly-linked binaries will depend on a new glibc even if they otherwise would have worked with very old versions. Nonetheless, I agree that something should be done about this bug. Using _FILE_OFFSET_BITS=64 is the only viable configuration on a modern system. (A mixed system with some binaries compiled with 32-bit offsets and others with 64-bit offsets has dangerous issues with file descriptor inheritance; see bug #13047.) And it seems a real shame for the only viable configuration to be non-conformant in this regard. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.