Last change
on this file since 20 was 9, checked in by Mattia Monga, 14 years ago |
Minix 3.1.2a
|
-
Property svn:executable
set to
*
|
File size:
444 bytes
|
Rev | Line | |
---|
[9] | 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 |
|
---|
| 9 | PUBLIC int _taskcall(who, syscallnr, msgptr)
|
---|
| 10 | int who;
|
---|
| 11 | int syscallnr;
|
---|
| 12 | register 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.