]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Wrap the setdomainname syscall
authorMartin Cermak <mcermak@redhat.com>
Fri, 19 Sep 2025 07:31:39 +0000 (09:31 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 19 Sep 2025 16:37:18 +0000 (18:37 +0200)
commit2604bb753a9ff461550e0d4d0c1ebd3ab6488d6d
tree021e43b62c0fe5b54e7903009187d8432c2b1fcf
parent1bed301999ee962d3b57869053b64a064ae8d6ba
Wrap the setdomainname syscall

The setdomainname() call sets the domain name to the value given in the
character array name.  The len argument specifies the number of bytes in
name.  (Thus, name does not require a terminating null byte.)

Declare a setdomainname wrapper in priv_syswrap-linux.h and hook it for
{amd64,arm,arm64,mips64,ppc32,ppc64,riscv64,s390x,x86}-linux using
LINX_ with PRE handler in syswrap-linux.c

https://bugs.kde.org/show_bug.cgi?id=369030
15 files changed:
NEWS
coregrind/m_syswrap/priv_syswrap-linux.h
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-arm-linux.c
coregrind/m_syswrap/syswrap-arm64-linux.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-mips32-linux.c
coregrind/m_syswrap/syswrap-mips64-linux.c
coregrind/m_syswrap/syswrap-nanomips-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-ppc64-linux.c
coregrind/m_syswrap/syswrap-riscv64-linux.c
coregrind/m_syswrap/syswrap-s390x-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c
include/vki/vki-scnums-riscv64-linux.h