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:
> * Andreas Schwab:
>
>> On Jun 11 2019, Florian Weimer <fweimer@redhat.com> wrote:
>>
>>> So should we write statx_generic in such a way that it does not depend
>>> on the size of struct stax?
>>
>> The fallback uses the original definition, and must never write beyond
>> that.
>
> The question is whether we achieve this with a separate struct type, or
> by changing it so that it only writes to all the fields in the original
> definition (i.e., remove the struct assigned and write to all members
> explicitly, including those that need to be zeroed).
Since we already have that separate type, using that would be the
cleanest.
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."