[PATCH 2/3] msqid: Provide internal copy of struct __msqid64_ds
Joseph Myers
joseph@codesourcery.com
Fri Nov 6 17:37:41 GMT 2020
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.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list