source: trunk/minix/lib/sysutil/taskcall.c@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 444 bytes
Line 
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 */
5
6#include <lib.h>
7#include <minix/syslib.h>
8
9PUBLIC int _taskcall(who, syscallnr, msgptr)
10int who;
11int syscallnr;
12register message *msgptr;
13{
14 int status;
15
16 msgptr->m_type = syscallnr;
17 status = _sendrec(who, msgptr);
18 if (status != 0) return(status);
19 return(msgptr->m_type);
20}
Note: See TracBrowser for help on using the repository browser.