This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] libc-compat.h for <bits/fcntl-linux.h>
- From: Florian Weimer <fweimer at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>, Zack Weinberg <zackw at panix dot com>
- Cc: Eric Neblock <ceneblock at member dot fsf dot org>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 9 May 2016 15:54:51 +0200
- Subject: Re: [PATCH] libc-compat.h for <bits/fcntl-linux.h>
- Authentication-results: sourceware.org; auth=none
- References: <589a6293-be0f-4b55-3a0b-2c180773ad94 at member dot fsf dot org> <CAKCAbMiRMSuMwRcMKLpY9Zu8OB-4zZmQZRUVD7h=z5jca1SQyg at mail dot gmail dot com> <mvmzirze5xs dot fsf at hawking dot suse dot de>
On 05/09/2016 03:06 PM, Andreas Schwab wrote:
Zack Weinberg <email@example.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.