source: trunk/minix/lib/posix/_wait.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 220 bytes
Line 
1#include <lib.h>
2#define wait _wait
3#include <sys/wait.h>
4
5PUBLIC pid_t wait(status)
6int *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.