musl/src/process/waitid.c

14 lines
260 B
C
Raw Normal View History

2011-02-12 05:22:29 +00:00
#include <sys/wait.h>
#include "syscall.h"
#include "libc.h"
2011-02-12 05:22:29 +00:00
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;
2011-02-12 05:22:29 +00:00
}