]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Deal with linux arches that don't have getdents, only getdents64
authorMark Wielaard <mark@klomp.org>
Wed, 24 Sep 2025 21:16:29 +0000 (23:16 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 24 Sep 2025 22:32:00 +0000 (00:32 +0200)
commitb2c27072b05777fe8dc6d32791de1e4eff044ebb
tree644b2230b6aebe204dd4f79391df3c8220743520
parentc574f5eb10d06b491512806354f8d15c3d3e020a
Deal with linux arches that don't have getdents, only getdents64

Not all linux arches have getdents, some newer arches (arm64 and
riscv64) only implement getdents64. So only use the function
filter_valgrind_fds_from_getdents_with_refill on linux with
__NR_getdents.

Also move the getdents_filter testcase under none/tests/linux and only
use getdents64.

Fixes: e8e4066c3a01 ("Filter Valgrind FDs from getdents syscalls")
https://bugs.kde.org/show_bug.cgi?id=331311
coregrind/m_syswrap/syswrap-generic.c
none/tests/Makefile.am
none/tests/linux/Makefile.am
none/tests/linux/getdents_filter.c [moved from none/tests/getdents_filter.c with 92% similarity]
none/tests/linux/getdents_filter.stderr.exp [moved from none/tests/getdents_filter.stderr.exp with 100% similarity]
none/tests/linux/getdents_filter.stdout.exp [moved from none/tests/getdents_filter.stdout.exp with 100% similarity]
none/tests/linux/getdents_filter.vgtest [moved from none/tests/getdents_filter.vgtest with 100% similarity]