Fix errors left over from system call conversion.

This commit is contained in:
mycroft 1997-09-09 21:14:00 +00:00
parent 0bd088474a
commit a6aa4731bc
3 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibcs2_misc.c,v 1.26 1997/08/04 09:48:07 bouyer Exp $ */
/* $NetBSD: ibcs2_misc.c,v 1.27 1997/09/09 21:17:28 mycroft Exp $ */
/*
* Copyright (c) 1994, 1995 Scott Bartram
@ -131,8 +131,8 @@ ibcs2_sys_ulimit(p, v, retval)
case IBCS2_SETFSIZE: /* XXX - fix this */
#ifdef notyet
rl.rlim_cur = SCARG(uap, newlimit);
sra.which = RLIMIT_FSIZE;
sra.rlp = &rl;
SCARG(&sra, which) = RLIMIT_FSIZE;
SCARG(&sra, rlp) = &rl;
error = setrlimit(p, &sra, retval);
if (!error)
*retval = p->p_rlimit[RLIMIT_FSIZE].rlim_cur;
@ -147,7 +147,7 @@ ibcs2_sys_ulimit(p, v, retval)
*retval = p->p_rlimit[RLIMIT_RSS].rlim_cur; /* XXX */
return 0;
case IBCS2_GETDTABLESIZE:
uap->cmd = IBCS2_SC_OPEN_MAX;
SCARG(uap, cmd) = IBCS2_SC_OPEN_MAX;
return ibcs2_sys_sysconf(p, uap, retval);
default:
return ENOSYS;

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_misc.c,v 1.47 1997/08/04 09:48:12 bouyer Exp $ */
/* $NetBSD: svr4_misc.c,v 1.48 1997/09/09 21:14:00 mycroft Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -913,8 +913,8 @@ svr4_sys_ulimit(p, v, retval)
if (error)
return error;
srl.which = RLIMIT_FSIZE;
srl.rlp = url;
SCARG(&srl, which) = RLIMIT_FSIZE;
SCARG(&srl, rlp) = url;
error = sys_setrlimit(p, &srl, retval);
if (error)

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_stream.c,v 1.21 1997/03/18 18:57:21 christos Exp $ */
/* $NetBSD: svr4_stream.c,v 1.22 1997/09/09 21:15:34 mycroft Exp $ */
/*
* Copyright (c) 1994, 1996 Christos Zoulas. All rights reserved.
*
@ -1502,9 +1502,9 @@ svr4_sys_putmsg(p, v, retval)
{
struct sys_connect_args co;
co.s = SCARG(uap, fd);
co.name = (void *) sup;
co.namelen = (int) sasize;
SCARG(&co, s) = SCARG(uap, fd);
SCARG(&co, name) = (void *) sup;
SCARG(&co, namelen) = (int) sasize;
return sys_connect(p, &co, retval);
}
@ -1512,6 +1512,7 @@ svr4_sys_putmsg(p, v, retval)
{
struct msghdr msg;
struct iovec aiov;
msg.msg_name = (caddr_t) sup;
msg.msg_namelen = sasize;
msg.msg_iov = &aiov;
@ -1526,6 +1527,7 @@ svr4_sys_putmsg(p, v, retval)
*retval = 0;
return error;
}
default:
DPRINTF(("putmsg: Unimplemented command %lx\n", sc.cmd));
return ENOSYS;