This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Deprecate 32-bit off_t support
* Joseph Myers:
> On Mon, 7 Jan 2019, Florian Weimer wrote:
>
>> * Szabolcs Nagy:
>>
>> > please do not recommend the use of a non-standard type
>> > in place of a standard one (off64_t is not even available
>> > with default feature test macros in posix headers).
>>
>> What do you propose instead? Mention int64_t and uint64_t only?
>
> Programs and libraries should use types such as off_t, and arrange to be
> built with _FILE_OFFSET_BITS=64, which would make them unaffected by a
> future change to the default.
If this concerns a public header file, is there a preprocessor check we
can recommend to add to the header file? Something that causes an
#error if the ABI would not be correct?
Thanks,
Florian