diff options
Diffstat (limited to 'lib/wait.c')
-rw-r--r-- | lib/wait.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/wait.c b/lib/wait.c new file mode 100644 index 000000000..727a27162 --- /dev/null +++ b/lib/wait.c @@ -0,0 +1,17 @@ +/* + * linux/lib/wait.c + * + * Copyright (C) 1991, 1992 Linus Torvalds + */ + +#define __LIBRARY__ +#include <linux/unistd.h> +#include <linux/types.h> + +_syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) + +pid_t wait(int * wait_stat) +{ + return waitpid(-1,wait_stat,0); +} + |