Updated to convert errno return in syscall if conversion tabel present.
This commit is contained in:
parent
6b05178783
commit
c96f129304
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.35 1994/10/01 02:56:05 davidg Exp $
|
||||
* $Id: trap.c,v 1.36 1994/10/08 22:19:50 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -664,6 +664,12 @@ syscall(frame)
|
||||
|
||||
error = (*callp->sy_call)(p, args, rval);
|
||||
|
||||
if (p->p_sysent->sv_errsize)
|
||||
if (error >= p->p_sysent->sv_errsize)
|
||||
error = -1; /* XXX */
|
||||
else
|
||||
error = p->p_sysent->sv_errtbl[error];
|
||||
|
||||
switch (error) {
|
||||
|
||||
case 0:
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.35 1994/10/01 02:56:05 davidg Exp $
|
||||
* $Id: trap.c,v 1.36 1994/10/08 22:19:50 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -664,6 +664,12 @@ syscall(frame)
|
||||
|
||||
error = (*callp->sy_call)(p, args, rval);
|
||||
|
||||
if (p->p_sysent->sv_errsize)
|
||||
if (error >= p->p_sysent->sv_errsize)
|
||||
error = -1; /* XXX */
|
||||
else
|
||||
error = p->p_sysent->sv_errtbl[error];
|
||||
|
||||
switch (error) {
|
||||
|
||||
case 0:
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.35 1994/10/01 02:56:05 davidg Exp $
|
||||
* $Id: trap.c,v 1.36 1994/10/08 22:19:50 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -664,6 +664,12 @@ syscall(frame)
|
||||
|
||||
error = (*callp->sy_call)(p, args, rval);
|
||||
|
||||
if (p->p_sysent->sv_errsize)
|
||||
if (error >= p->p_sysent->sv_errsize)
|
||||
error = -1; /* XXX */
|
||||
else
|
||||
error = p->p_sysent->sv_errtbl[error];
|
||||
|
||||
switch (error) {
|
||||
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user