]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Wrap linux specific syscall 22 (ustat)
authorMartin Cermak <mcermak@redhat.com>
Thu, 17 Jul 2025 07:16:53 +0000 (09:16 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 17 Jul 2025 11:02:29 +0000 (13:02 +0200)
commita4d893c6ef133fdf8255860aa8ca0a8460e105b1
treea33bcf7cfc460c9e86911cb6f7363cdf58d4fb2a
parentbd1e857cd493f4d1e64c3f5ae1061650644c666b
Wrap linux specific syscall 22 (ustat)

The ustat syscall comes from pre-git linux history.  It is
deprecated in favor of statfs.  But in some cases it may
still be used.

int ustat(dev_t dev, struct ustat *ubuf); returns information
about a mounted filesystem.  dev is a device number identifying
a device containing a mounted filesystem.  ubuf is a pointer to
a ustat structure.

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

https://bugs.kde.org/show_bug.cgi?id=506928
12 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-linux.c
coregrind/m_syswrap/syswrap-mips32-linux.c
coregrind/m_syswrap/syswrap-mips64-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-ppc64-linux.c
coregrind/m_syswrap/syswrap-s390x-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c
include/vki/vki-linux.h