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:
@@ -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 \
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user