[PATCH 2/3] msqid: Provide internal copy of struct __msqid64_ds
Adhemerval Zanella
adhemerval.zanella@linaro.org
Thu Nov 12 16:16:03 GMT 2020
On 12/11/2020 12:27, Lukasz Majewski wrote:
>> I meant building glibc itself, not user programs using glibc provided
>> headers. It is to ensure that internally 'struct timespec' (or any
>> affected struct by 64-bit time) will have 32-bit ABI layout for ABIs
>> that supports it since glibc itself includes installed headers.
>>
>
> Could you elaborate on this?
>
> I do guess that _TIME_BITS when added to glibc (i.e. when it will be
> recognized by "exported" headers) will enable 64 bit time support on
> archs with __WORDSIZE=32 (e.g. ARM 32 bit).
>
> Then, after some time, we will add #define _TIME_BITS 64 at e.g.
> features.h (exported) on eligible ports, which would mean that by
> default support for 64 bit time is enabled on them.
>
> Am I correct?
I mean that _TIME_BITS=64 for __WORDSIZE=32 will need to be enable only
on testing, all the glibc objects will need be built with _TIME_BITS=32
so '__time_t' and related structures do not vary depending of the
compiler flag (same as support to build glibc itself with _TIME_BITS=64).
About making the _TIME_BITS=64 as default, since it implies
_FILE_OFFSET_BITS=N we will need to sort some issues first (BZ#14106 [1],
BZ#15766 [2], BZ#13047 [3] to name the ones I am aware).
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=14106
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=15766
[3] https://sourceware.org/bugzilla/show_bug.cgi?id=13047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20201112/defcac82/attachment.sig>
More information about the Libc-alpha
mailing list