repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libsys
/
kernel_call.c
blob
ed92b73424c9d0464cbfc478ab6b5cb887080742
1
#define _SYSTEM 1
2
3
#include <lib.h>
4
#include <minix/syslib.h>
5
#include <minix/sysutil.h>
6
7
int
_kernel_call
(
int
syscallnr
,
message
*
msgptr
)
8
{
9
int
t
,
r
;
10
t
=
1
;
11
while
(
1
) {
12
msgptr
->
m_type
=
syscallnr
;
13
do_kernel_call
(
msgptr
);
14
r
=
msgptr
->
m_type
;
15
if
(
r
!=
ENOTREADY
) {
16
break
;
17
}
18
tickdelay
(
t
++);
19
}
20
return
r
;
21
}
22