2 copies of taskcall.c removed

- taskcall.c is 3x in the trunk as part of libc, libsysutil and
  libsys.  It should be only part of libsys.

- only system process should be linked with libsys, therefore using
  raw _taskcall() in service.c is replaced by _syscall()

- the same for minix_rs.c

- lib/other/sys_eniop.c can go without replacement as it is part of
  syslib
This commit is contained in:
Tomas Hruby
2010-01-25 14:22:09 +00:00
parent 769e5f373a
commit ee4cff8d66
7 changed files with 17 additions and 74 deletions

View File

@@ -20,7 +20,6 @@ libsys_FILES=" \
fkey_ctl.c \
tsc_util.c \
report.c \
taskcall.c \
read_tsc.s \
read_tsc_64.c \
ser_putc.c \

View File

@@ -1,20 +0,0 @@
/* _taskcall() is the same as _syscall() except it returns negative error
* codes directly and not in errno. This is a better interface for MM and
* FS.
*/
#include <lib.h>
#include <minix/syslib.h>
PUBLIC int _taskcall(who, syscallnr, msgptr)
endpoint_t who;
int syscallnr;
register message *msgptr;
{
int status;
msgptr->m_type = syscallnr;
status = _sendrec(who, msgptr);
if (status != 0) return(status);
return(msgptr->m_type);
}