Implement wait()
#include <mlibc/sysdeps.hpp>
-pid_t wait(int *status) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-
int waitid(idtype_t idtype, id_t id, siginfo_t *siginfo, int flags) {
__ensure(!"Not implemented");
__builtin_unreachable();
@@ -24,3 +19,6 @@ pid_t waitpid(pid_t pid, int *status, int flags) {
return ret;
}
+pid_t wait(int *status) {
+ return waitpid(-1, status, 0);
+}
