mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 01:49:24 +08:00
wait4() is BSD/Linux-standard (used by toybox's "time" applet) but NuttX only had waitpid()+getrusage() separately. Add it to libs/libc/unistd/ built on top of those two existing primitives, so it needs no syscall plumbing of its own and works unmodified across flat/protected/kernel build separation. Prototype added to include/sys/wait.h. Signed-off-by: Alan C. Assis <acassis@gmail.com> Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>