public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14106] New: _FILE_OFFSET_BITS=64 goes outside standard namespace
@ 2012-05-14 10:51 jsm28 at gcc dot gnu.org
2012-05-14 12:39 ` [Bug libc/14106] " bugdal at aerifal dot cx
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-05-14 10:51 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14106
Bug #: 14106
Summary: _FILE_OFFSET_BITS=64 goes outside standard namespace
Product: glibc
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: jsm28@gcc.gnu.org
CC: drepper.fsp@gmail.com
Classification: Unclassified
Building with -D_FILE_OFFSET_BITS=64 uses names that should be in the user's
namespace. For example,
#include <stdio.h>
#include <stdlib.h>
void fopen64 (void) { abort (); }
int
main (void)
{
fopen ("/dev/null", "r");
return 0;
}
built with -std=c99 -D_FILE_OFFSET_BITS=64 on x86 aborts.
All the function redirects for _FILE_OFFSET_BITS=64 should be to functions in
the implementation namespace. This applies to POSIX interfaces as well as to
ISO C ones.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/14106] _FILE_OFFSET_BITS=64 goes outside standard namespace
2012-05-14 10:51 [Bug libc/14106] New: _FILE_OFFSET_BITS=64 goes outside standard namespace jsm28 at gcc dot gnu.org
@ 2012-05-14 12:39 ` bugdal at aerifal dot cx
2012-05-14 13:02 ` joseph at codesourcery dot com
2014-06-25 11:00 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: bugdal at aerifal dot cx @ 2012-05-14 12:39 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14106
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/14106] _FILE_OFFSET_BITS=64 goes outside standard namespace
2012-05-14 10:51 [Bug libc/14106] New: _FILE_OFFSET_BITS=64 goes outside standard namespace jsm28 at gcc dot gnu.org
2012-05-14 12:39 ` [Bug libc/14106] " bugdal at aerifal dot cx
@ 2012-05-14 13:02 ` joseph at codesourcery dot com
2014-06-25 11:00 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: joseph at codesourcery dot com @ 2012-05-14 13:02 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14106
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-05-14 13:01:44 UTC ---
On Mon, 14 May 2012, bugdal at aerifal dot cx wrote:
> This issue has been bothering me for a long time too, but I never thought to
> report it.
If you have any issues with glibc that can be represented as well-defined
bugs - specific deficiencies for which it can be clearly assessed whether
they have been fixed - and they don't have currently open bugs, please
open (or reopen) bugs for them. It doesn't matter how minor or obscure or
hard to fix they are, we should track bugs in the bug database. They may
not be fixed particularly quickly - the existing bug backlog may take
person-years of work across many people to deal with - but they should be
filed so they are visible to people looking for bugs to fix.
(More open-ended projects for enhancement that don't represent a
well-defined defect in current glibc may better go on the wiki than in
Bugzilla; there are "Project TODO" and "Project Wishlist by Developer"
sections there linking to pages with various suggestions.)
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/14106] _FILE_OFFSET_BITS=64 goes outside standard namespace
2012-05-14 10:51 [Bug libc/14106] New: _FILE_OFFSET_BITS=64 goes outside standard namespace jsm28 at gcc dot gnu.org
2012-05-14 12:39 ` [Bug libc/14106] " bugdal at aerifal dot cx
2012-05-14 13:02 ` joseph at codesourcery dot com
@ 2014-06-25 11:00 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-25 11:00 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14106
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-25 11:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 10:51 [Bug libc/14106] New: _FILE_OFFSET_BITS=64 goes outside standard namespace jsm28 at gcc dot gnu.org
2012-05-14 12:39 ` [Bug libc/14106] " bugdal at aerifal dot cx
2012-05-14 13:02 ` joseph at codesourcery dot com
2014-06-25 11:00 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).