]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: implement wait() in terms of waitpid()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 28 Apr 2025 12:40:16 +0000 (14:40 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 21 May 2025 13:32:16 +0000 (15:32 +0200)
commit59303930326ac00bec5ec61321d662a165350939
treeab9cc49f56b1f37acc8f197211e6de2f36a36c09
parent5e7392dc82ed7bf3e734cbca77a1c6fd044ec871
tools/nolibc: implement wait() in terms of waitpid()

Newer architectures like riscv 32-bit are missing sys_wait4().
Make use of the fact that wait(&status) is defined to be equivalent to
waitpid(-1, status, 0) to implement it on all architectures.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250428-nolibc-misc-v2-15-3c043eeab06c@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/sys/wait.h