]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/nolibc: align sys_vfork() with sys_fork()
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 4 Jan 2026 22:43:13 +0000 (23:43 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 6 Jan 2026 11:08:10 +0000 (12:08 +0100)
commit57624b38ce99b906cbb191a1d536bb871ad2d8c2
tree153d22492b724387b5e75fd42143d07124e47dfa
parent03139924859f7930cd1667a278a560b5d4c6a672
tools/nolibc: align sys_vfork() with sys_fork()

Currently the generic variants of sys_fork() and sys_vfork() differ in
both they precedence of used system calls and the usage of sys_clone()
vs sys_clone3(). While the interface of clone3() in sys_vfork() is more
consistent over different architectures, qemu-user does not support it,
making testing harder. We already handle the different clone()
interfaces for sys_fork() in the architecture-specific headers, and can
do so also for sys_vfork(). In fact SPARC already has such handling and
only s390 is currently missing.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260104-nolibc-vfork-v1-1-a63464b9e4e6@weissschuh.net
tools/include/nolibc/arch-s390.h
tools/include/nolibc/sys.h