From a352826f92e45f57ef33a1bdb74d285a0159a322 Mon Sep 17 00:00:00 2001 From: pumnflqv2 Date: Sun, 26 Jun 2022 22:43:38 +0800 Subject: [PATCH] ADD file via upload --- lib/wait.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/wait.c diff --git a/lib/wait.c b/lib/wait.c new file mode 100644 index 0000000..2815c16 --- /dev/null +++ b/lib/wait.c @@ -0,0 +1,16 @@ +/* + * linux/lib/wait.c + * + * (C) 1991 Linus Torvalds + */ + +#define __LIBRARY__ +#include +#include + +_syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) + +pid_t wait(int * wait_stat) +{ + return waitpid(-1,wait_stat,0); +}