mbox series

[uclibc-ng-devel,0/1] Fix missing Feature Test Macro check in common stat.h

Message ID 20200915124524.5346-1-ysionneau@kalray.eu
Headers show
Series Fix missing Feature Test Macro check in common stat.h | expand

Message

Yann Sionneau Sept. 15, 2020, 12:45 p.m. UTC
This is a touchy change since it touches a common header.
This needs a thorough review in order not to break something.

But for the record glibc only tests for __USE_XOPEN2K8 and musl does not test for anything at all and directly uses timespec fields.
glibc: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/generic/bits/stat.h;h=8d0980f0f5a98b093edeb4360862b9db6f14d7a8;hb=HEAD#l72
musl: https://git.musl-libc.org/cgit/musl/tree/arch/aarch64/bits/stat.h


Yann Sionneau (1):
  Fix memory corruption due to struct stat field

 libc/sysdeps/linux/common-generic/bits/stat.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)