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
* Andreas Schwab:
> On Jun 11 2019, Florian Weimer <fweimer@redhat.com> wrote:
>
>> I will come up with a patch with the duplication and remove the asssert.
>> However, I do not really like it. At this point, we don't know if we
>> will ever actually need the duplicate.
>
> We already have that duplicate anyway, as we need it for pre-statx
> kernels. But for those kernels, struct statx never changes. If the
> kernel handles statx, we don't care about the size.
So should we write statx_generic in such a way that it does not depend
on the size of struct stax? That is, get rid of the compund literal?
Thanks,
Florian