diff options
author | 2025-01-23 10:41:10 +0800 | |
---|---|---|
committer | 2025-01-23 10:41:10 +0800 | |
commit | e6f77b7ea3e38c9853bee60b275f3f89d252a5b3 (patch) | |
tree | 80bfbabed9d4cbcf9fa62677f78b34279d7e2f87 /src/lib/wait.c | |
download | linux-0.11-master.tar.gz linux-0.11-master.zip |
Diffstat (limited to 'src/lib/wait.c')
-rw-r--r-- | src/lib/wait.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/wait.c b/src/lib/wait.c new file mode 100644 index 0000000..2815c16 --- /dev/null +++ b/src/lib/wait.c | |||
@@ -0,0 +1,16 @@ | |||
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 | } | ||