You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
260 B

#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;
}