taskcall.c

Go to the documentation of this file.
00001 /* _taskcall() is the same as _syscall() except it returns negative error
00002  * codes directly and not in errno.  This is a better interface for MM and
00003  * FS.
00004  */
00005 
00006 #include <lib.h>
00007 #include <minix/syslib.h>
00008 
00009 PUBLIC int _taskcall(who, syscallnr, msgptr)
00010 int who;
00011 int syscallnr;
00012 register message *msgptr;
00013 {
00014   int status;
00015 
00016   msgptr->m_type = syscallnr;
00017   status = _sendrec(who, msgptr);
00018   if (status != 0) return(status);
00019   return(msgptr->m_type);
00020 }

Generated on Fri Apr 14 22:57:27 2006 for minix by  doxygen 1.4.6