This is the mail archive of the libc-alpha@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]

Re: [RFC] Make _FILE_OFFSET_BITS=64 default.


On Thu, Mar 13, 2014 at 11:41:48PM -0700, Paul Eggert wrote:
> Mike Frysinger wrote:
> >i'm debating adding it to the next Gentoo glibc version to gather
> >some actual data since no one seems to want to move w/out data, but no one
> >wants to gather data either.
> 
> Joseph's message gave me pause, as I worry it's asking for an
> enormous task that can never truly said to be done.  Regardless, I
> took one step to do this, and exhaustively surveyed all libraries
> installed on my Fedora 20 host as part of my routine development for
> building coreutils, GNU Emacs, etc.  I found the following issues:
> 
> glibc's own fts.h refuses to compile if __USE_FILE_OFFSET64 is defined.

Known issue:
https://sourceware.org/bugzilla/show_bug.cgi?id=15838

As stated there, my preference would be deprecation this whole API.
Applications which need it can get a _working_ (unlike the glibc copy)
version of this functionality from third-party sources. Gnulib and BSD
both have working versions that don't have the 32-bit limitation.

> zlib's zlib.h attempts to work around the glibc problems with
> _FILE_OFFSET_BITS, and its workaround would need adjusting if glibc
> changed the default.

Can you explain in more detail?

> Several libraries use APIs that accept affected data types.  These
> libraries are all compiled with _FILE_OFFSET_BITS #defined to be 64,
> so the proposed change would be beneficial as it would fix any
> applications that are currently mistakenly compiled without defining
> _FILE_OFFSET_BITS to be 64.  These libraries are:

Exactly. That's what I've been saying all along. Once the default has
changed, this issue will gradually go away and hopefully never return.

Rich


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