From 902687a68398963b18e5dbed78553c3c19408eeb Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 14 Aug 2020 20:19:21 -0400 Subject: rough draft --- src/sys/wait/waitid.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/sys') diff --git a/src/sys/wait/waitid.c b/src/sys/wait/waitid.c index 68991583..b8aa19d4 100644 --- a/src/sys/wait/waitid.c +++ b/src/sys/wait/waitid.c @@ -1,8 +1,21 @@ +#include "sys/types.h" +/* +#include "sys/time.h" +#include "ucontext.h" +#include "signal.h" #include +*/ +#include "_syscall.h" + +#define __SYS_WAIT_H__ + +#include "idtype_t.c" + +typedef struct siginfo siginfo_t; int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options) { - return 0; + SYSCALL(waitid, int, -1, idtype, id, infop, option, NULL, 0); } /* -- cgit v1.2.1