]> sourceware.org Git - glibc.git/commit
support: Use macros for *stat wrappers
authorFlorian Weimer <fweimer@redhat.com>
Fri, 16 Aug 2024 14:05:20 +0000 (16:05 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 16 Aug 2024 14:05:20 +0000 (16:05 +0200)
commite7c14e542d8d858b824b5df4f4e3dc93695e6171
treedc05ca2e7522b2dacf47eadd59c06580690e53f5
parentbf2927484152e12996af60ea439cf94b66fcd81d
support: Use macros for *stat wrappers

Macros will automatically use the correct types, without
having to fiddle with internal glibc macros.  It's also
impossible to get the types wrong due to aliasing because
support_check_stat_fd and support_check_stat_path do not
depend on the struct stat* types.

The changes reveal some inconsistencies in tests.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
16 files changed:
elf/tst-ldconfig-bad-aux-cache.c
io/tst-copy_file_range.c
io/tst-statx.c
locale/tst-localedef-path-norm.c
localedata/tst-localedef-hardlinks.c
posix/tst-execveat.c
stdio-common/tst-renameat2.c
stdlib/tst-system.c
support/Makefile
support/support-xfstat-time64.c [deleted file]
support/support-xstat-time64.c [deleted file]
support/support-xstat.c [deleted file]
support/support_check_stat_fd.c [moved from support/xlstat.c with 76% similarity]
support/support_check_stat_path.c [moved from support/support-xfstat.c with 81% similarity]
support/xlstat-time64.c [deleted file]
support/xunistd.h
This page took 0.042494 seconds and 5 git commands to generate.