source:
trunk/minix/lib/posix/_wait.c@
14
| Last change on this file since 14 was 9, checked in by , 15 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.