retire 64-bit conversion functions
[minix3.git] / lib / libsys / taskcall.c
blobeafa99cd10de6280a1ea5d641de70399bafbfd27
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
3 * VFS.
4 */
6 #include <lib.h>
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)
17 endpoint_t who;
18 int syscallnr;
19 register message *msgptr;
21 int status;
23 msgptr->m_type = syscallnr;
24 status = sendrec(who, msgptr);
25 if (status != 0) return(status);
26 return(msgptr->m_type);