This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Using <linux/stat.h> for _GNU_SOURCE
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 6 Nov 2017 13:32:00 +0100
- Subject: Using <linux/stat.h> for _GNU_SOURCE
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 996745F168
Would it be possible to include <linux/stat.h> (not <asm/stat.h>) from
<sys/stat.h> for _GNU_SOURCE? We'd need to add redefinition guards for
the S_* macros defined in <linux/stat.h>, but otherwise, the header
looks quite clean.
This would allow us to obtain the STX_* constants and struct statx from
the uapi header, without maintaining our own copy of that information.
Or wouldn't be the __u* types in struct statx not acceptable to us?
Thanks,
Florian