3 PUBLIC
int _syscall(who
, syscallnr
, msgptr
)
6 register message
*msgptr
;
10 msgptr
->m_type
= syscallnr
;
11 status
= _sendrec(who
, msgptr
);
13 /* 'sendrec' itself failed. */
14 /* XXX - strerror doesn't know all the codes */
15 msgptr
->m_type
= status
;
17 if (msgptr
->m_type
< 0) {
18 errno
= -msgptr
->m_type
;
21 return(msgptr
->m_type
);