This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] <sys/stat.h>: Use Linux kernel UAPI header if available and useful
On Jun 11 2019, Florian Weimer <fweimer@redhat.com> wrote:
> Linux: Use kernel headers for statx definitions if available.
> * include/bits/statx-generic.h: New file.
> * include/bits/types/struct_statx.h: Likewise.
> * include/bits/types/struct_statx_timestamp.h: Likewise.
> * io/Makefile (headers): Add bits/statx-generic.h.
> * io/bits/statx-generic.h: New file. Partly copied from
> io/bits/statx.h.
> * io/statx_generic.c: Include <bits/types/struct_statx.h> to
> define original_statx.
> * io/bits/types/struct_statx.h: Likewise.
> * io/bits/types/struct_statx_timestamp.h: Likewise.
> (statx_generic): Use original_statx.
> * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
> * sysdeps/unix/sysv/linux/bits/statx.h: New file.
This looks good.
Thanks, Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."