This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14106] _FILE_OFFSET_BITS=64 goes outside standard namespace


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]