Implement C11 annex K?
Joseph S. Myers
joseph@codesourcery.com
Mon Aug 11 16:06:00 GMT 2014
On Mon, 11 Aug 2014, Paul Eggert wrote:
> Joseph S. Myers wrote:
> > * Some functions will need versions for _FILE_OFFSET_BITS=64 /
> > _LARGEFILE64_SOURCE (e.g. tmpfile, fopen, freopen have such versions, so
> > the _s variants of those functions should also have such versions).
>
> Also, don't provide _FILE_OFFSET_BITS=32 versions. Just support
> _FILE_OFFSET_BITS=64, and make it a compile- or link-time error to try to use
> Annex K with _FILE_OFFSET_BITS=32.
>
> Regardless of whether one thinks Annex K is a good idea, its stated goal is
> more-reliable software. Requiring it to support _FILE_OFFSET_BITS=32 (which
> is deliberately *unreliable*) would be counterproductive make-work.
One goal is retrofitting large bodies of existing code with local changes
(for which adding a requirement to use _FILE_OFFSET_BITS=64 seems
unhelpful).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list