toaruos/libc/sys/wait.c
2018-07-18 10:25:01 +09:00

12 lines
234 B
C

#include <syscall.h>
#include <errno.h>
int waitpid(int pid, int *status, int options) {
/* XXX: status, options? */
__sets_errno(syscall_waitpid(pid, status, options));
}
int wait(int *status) {
return waitpid(-1, status, 0);
}