1 /* 2 * linux/lib/wait.c 3 * 4 * (C) 1991 Linus Torvalds 5 */ 6 7 #define __LIBRARY__ 8 #include <unistd.h> 9 #include <sys/wait.h> 10 11 _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) /* */ 12 13 pid_t wait(int * wait_stat) 14 { 15 return waitpid(-1,wait_stat,0); 16 }