linux: Add fanotify_mark C implementation

System Internals / glibc - Adhemerval Zanella [linaro.org] - 25 November 2021 12:56 UTC

Passing 64-bit arguments on syscalls.list is tricky: it requires to reimplement the expected kernel abi in each architecture. This is way to better to represent in C code where we already have macros for this (SYSCALL_LL64).

Checked on x86_64-linux-gnu.

d150181d73 linux: Add fanotify_mark C implementation
sysdeps/unix/sysv/linux/Makefile | 3 +-
sysdeps/unix/sysv/linux/arm/syscalls.list | 2 --
sysdeps/unix/sysv/linux/fanotify_mark.c | 36 ++++++++++++++++++++++
.../sysv/linux/generic/wordsize-32/syscalls.list | 1 -
sysdeps/unix/sysv/linux/hppa/fanotify_mark.c | 2 ++
sysdeps/unix/sysv/linux/hppa/syscalls.list | 1 -
sysdeps/unix/sysv/linux/i386/syscalls.list | 2 --
sysdeps/unix/sysv/linux/m68k/syscalls.list | 1 -
sysdeps/unix/sysv/linux/microblaze/syscalls.list | 1 -
sysdeps/unix/sysv/linux/mips/mips32/syscalls.list | 2 --
.../unix/sysv/linux/mips/mips64/n32/syscalls.list | 2 --
.../unix/sysv/linux/mips/mips64/n64/syscalls.list | 2 --
.../sysv/linux/powerpc/powerpc32/syscalls.list | 1 -
sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list | 1 -
sysdeps/unix/sysv/linux/sh/fanotify_mark.c | 2 ++
sysdeps/unix/sysv/linux/sh/syscalls.list | 2 --
.../unix/sysv/linux/sparc/sparc32/syscalls.list | 1 -
sysdeps/unix/sysv/linux/wordsize-64/syscalls.list | 2 --
18 files changed, 42 insertions(+), 22 deletions(-)

Upstream: sourceware.org


  • Share