diff options
Diffstat (limited to 'src/process/waitid.c')
-rw-r--r-- | src/process/waitid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/process/waitid.c b/src/process/waitid.c new file mode 100644 index 0000000..0ec0d55 --- /dev/null +++ b/src/process/waitid.c @@ -0,0 +1,7 @@ +#include <sys/wait.h> +#include "syscall.h" + +int waitid(idtype_t type, id_t id, siginfo_t *info, int options) +{ + return syscall5(__NR_waitid, type, id, (long)info, options, 0); +} |