vfs/mount/rs/service changes:
[minix3.git] / lib / sysutil / taskcall.c
blob0a2024aa1ae75cda290e4a8e605aca7df20b4997
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 MM and
3 * FS.
4 */
6 #include <lib.h>
7 #include <minix/syslib.h>
9 PUBLIC int _taskcall(who, syscallnr, msgptr)
10 int who;
11 int syscallnr;
12 register message *msgptr;
14 int status;
16 msgptr->m_type = syscallnr;
17 status = _sendrec(who, msgptr);
18 if (status != 0) return(status);
19 return(msgptr->m_type);