. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / posix / _wait.c
blobf8d59f8067185167f95b043fa61fb4dba474967a
1 #include <lib.h>
2 #define wait _wait
3 #include <sys/wait.h>
5 PUBLIC pid_t wait(status)
6 int *status;
8 message m;
10 if (_syscall(MM, WAIT, &m) < 0) return(-1);
11 if (status != 0) *status = m.m2_i1;
12 return(m.m_type);