[PATCH] Fix namespace violation in stdio.h and sys/stat.h if build with optimization. [BZ #26376]

Stefan Liebler stli@linux.ibm.com
Thu Aug 20 08:56:57 GMT 2020


On 8/20/20 1:57 AM, Joseph Myers wrote:
> On Wed, 12 Aug 2020, Stefan Liebler via Libc-alpha wrote:
> 
>> For getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked in stdio.h,
>> those are defined "# ifdef __USE_POSIX" instead of "#ifdef __USE_POSIX199506"
>> for the non-inlining declaration. See also
>> "Bug 20014 - stdio.h namespace for pre-threads POSIX"
>> (https://sourceware.org/bugzilla/show_bug.cgi?id=20014).
>>
>> For mknodat in sys/stat.h, those are defined "# ifdef __USE_ATFILE" instead of
>> the additional guard "# if defined __USE_MISC || defined __USE_XOPEN_EXTENDED".
> 
> This patch is OK.
> 
Committed the patch and resolved the bugzilla.

Thanks.
Stefan


More information about the Libc-alpha mailing list