]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Linux FreeBSD and Darwin: refactor *at syscall dirfd checks
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 29 Aug 2025 05:59:28 +0000 (07:59 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 29 Aug 2025 06:02:46 +0000 (08:02 +0200)
commit9f5d3d32b5bd5bc546eea74a8f75e53d4a228519
tree7e87ce7a2f88704f97833d8dd8135b1b6b7dc242
parentbbf3cf234eacc97a652437c4f5e626c43b1bc76d
Linux FreeBSD and Darwin: refactor *at syscall dirfd checks

I haven't done Solaris. The code there is less messy because
Solaris doesn't use a negative value for AT_FDCWD, meaning
no explicit or implicit cast from unsigned word to signed
int is needed before comparing to the int dirfd parameter.
12 files changed:
coregrind/m_syswrap/priv_syswrap-generic.h
coregrind/m_syswrap/syswrap-amd64-freebsd.c
coregrind/m_syswrap/syswrap-arm-linux.c
coregrind/m_syswrap/syswrap-arm64-freebsd.c
coregrind/m_syswrap/syswrap-darwin.c
coregrind/m_syswrap/syswrap-freebsd.c
coregrind/m_syswrap/syswrap-generic.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-mips32-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-x86-freebsd.c
coregrind/m_syswrap/syswrap-x86-linux.c