add directory kernel
This commit is contained in:
10
kernel/0.00/linux-0.01/lib/wait.c
Normal file
10
kernel/0.00/linux-0.01/lib/wait.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#define __LIBRARY__
|
||||
#include <unistd.h>
|
||||
#include <sys/wait.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);
|
||||
}
|
||||
Reference in New Issue
Block a user