[PATCH] libc-compat.h for <bits/fcntl-linux.h>

Florian Weimer fweimer@redhat.com
Mon May 9 13:55:00 GMT 2016


On 05/09/2016 03:06 PM, Andreas Schwab wrote:
> Zack Weinberg <zackw@panix.com> writes:
>
>> Rather than this approach, why not have the glibc header include the
>> uapi header and rely on its definitions?  This might need to be
>> conditional on a sufficiently new version of the uapi header being
>> available, but it is more future-proof.
>
> The kernel header cannot be used due to lack of name space sanity.

Exactly.  Without feature selection macros such as _GNU_SOURCE, the set 
of macros which can be defined by <fcntl.h> is very limited.

Florian



More information about the Libc-alpha mailing list