blob: e95d4318b773babfaf55725f9dc14488a4551024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* _taskcall() is the same as _syscall() except it returns negative error
* codes directly and not in errno. This is a better interface for PM and
* VFS.
*/
#include <lib.h>
#include <minix/syslib.h>
int _taskcall(who, syscallnr, msgptr)
endpoint_t who;
int syscallnr;
register message *msgptr;
{
int status;
msgptr->m_type = syscallnr;
status = ipc_sendrec(who, msgptr);
if (status != 0) return(status);
return(msgptr->m_type);
}
|