[PATCH 2/3] msqid: Provide internal copy of struct __msqid64_ds

Adhemerval Zanella adhemerval.zanella@linaro.org
Mon Nov 9 15:02:23 GMT 2020



On 06/11/2020 14:37, Joseph Myers wrote:
> On Fri, 6 Nov 2020, Lukasz Majewski wrote:
> 
>> 3. The exported header (from point 1) shall have:
>>
>> #if __TIMESIZE == 32 && defined __USE_TIME_BITS64
>> # define timespec __timespec64
>> #endif
> 
> You'll need to make sure that's permitted under the namespace reservations 
> in POSIX.
> 
> For the cases where a struct tag has the same name as a function (e.g. 
> stat), #undef of the function name is definitely allowed for user 
> programs, so relying on defining the struct tag as a macro is probably 
> unsafe in that case.

In these which alternative would be better?  Export __timespec64 as 
different name or use the strategy to redefine timespec to different
member sizes and layout depending of time ABI?


More information about the Libc-alpha mailing list