6 __weak_alias(syscall
, _syscall
)
9 int _syscall(endpoint_t who
, int syscallnr
, message
*msgptr
)
13 msgptr
->m_type
= syscallnr
;
14 status
= _sendrec(who
, msgptr
);
16 /* 'sendrec' itself failed. */
17 /* XXX - strerror doesn't know all the codes */
18 msgptr
->m_type
= status
;
20 if (msgptr
->m_type
< 0) {
21 errno
= -msgptr
->m_type
;
24 return(msgptr
->m_type
);