1 /* _taskcall() is the same as _syscall() except it returns negative error
2 * codes directly and not in errno. This is a better interface for PM and
7 #include <minix/syslib.h>
9 int _sendcall(endpoint_t who
, int type
, message
*msgptr
)
11 msgptr
->m_type
= type
;
12 return send(who
, msgptr
);
16 int _taskcall(who
, syscallnr
, msgptr
)
19 register message
*msgptr
;
23 msgptr
->m_type
= syscallnr
;
24 status
= sendrec(who
, msgptr
);
25 if (status
!= 0) return(status
);
26 return(msgptr
->m_type
);