repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git]
/
lib
/
posix
/
_wait.c
blob
f8d59f8067185167f95b043fa61fb4dba474967a
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
}