Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / lib / libsys / kernel_call.c
blobed92b73424c9d0464cbfc478ab6b5cb887080742
1 #define _SYSTEM 1
3 #include <lib.h>
4 #include <minix/syslib.h>
5 #include <minix/sysutil.h>
7 int _kernel_call(int syscallnr, message *msgptr)
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;
18 tickdelay(t++);
20 return r;