source:
trunk/minix/lib/posix/_wait.c@
11
Last change on this file since 11 was 9, checked in by , 14 years ago | |
---|---|
File size: 220 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | #include <lib.h> |
2 | #define wait _wait | |
3 | #include <sys/wait.h> | |
4 | ||
5 | PUBLIC pid_t wait(status) | |
6 | int *status; | |
7 | { | |
8 | message m; | |
9 | ||
10 | if (_syscall(MM, WAIT, &m) < 0) return(-1); | |
11 | if (status != 0) *status = m.m2_i1; | |
12 | return(m.m_type); | |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.