]> git.ipfire.org Git - thirdparty/valgrind.git/commit
FreeBSD close_range syscall
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 2 May 2025 14:59:58 +0000 (16:59 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 9 May 2025 21:43:31 +0000 (23:43 +0200)
commit34eb704121e61257ea9f1937ce4e56863d60d793
tree27abee77ab3b97f236630f730c24fbf6d41f741c
parent1b9e202f13daffe3b4aa0c0e4a5e8e644055145e
FreeBSD close_range syscall

Simplify the checking. No ned to test for reserved fds,
and just split the close_range if debug output is enabled.

Add a call to close_range with an upper bound of ~0U in the
testcase.

These changes will probably be the basis for fixing
https://bugs.kde.org/show_bug.cgi?id=503641

(cherry picked from commit 8edc2fa6f8d70dbe10d634adff2513aa68143a22)
coregrind/m_syswrap/syswrap-freebsd.c
memcheck/tests/close_range.c
memcheck/tests/close_range.stderr.exp