add further ioctl time64 fallback conversion for device-specific command
[musl] / src / process / waitid.c
index 4fa7c02..d688650 100644 (file)
@@ -1,13 +1,7 @@
 #include <sys/wait.h>
 #include "syscall.h"
-#include "libc.h"
 
 int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
 {
-       int r;
-       CANCELPT_BEGIN;
-       r = syscall(SYS_waitid, type, id, info, options, 0);
-       if (r<0) CANCELPT_TRY;
-       CANCELPT_END;
-       return r;
+       return syscall_cp(SYS_waitid, type, id, info, options, 0);
 }