Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Translate linux errno in the syscall_fa...



details:   https://anonhg.NetBSD.org/src/rev/438ff84522db
branches:  trunk
changeset: 580952:438ff84522db
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue May 17 13:47:17 2005 +0000

description:
Translate linux errno in the syscall_fancy case as well.

diffstat:

 sys/arch/amd64/amd64/syscall.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 955e3d479b2c -r 438ff84522db sys/arch/amd64/amd64/syscall.c
--- a/sys/arch/amd64/amd64/syscall.c    Tue May 17 11:46:15 2005 +0000
+++ b/sys/arch/amd64/amd64/syscall.c    Tue May 17 13:47:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.7 2005/05/16 11:55:24 fvdl Exp $ */
+/*     $NetBSD: syscall.c,v 1.8 2005/05/17 13:47:17 fvdl Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.7 2005/05/16 11:55:24 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.8 2005/05/17 13:47:17 fvdl Exp $");
 
 #include "opt_syscall_debug.h"
 #include "opt_ktrace.h"
@@ -342,7 +342,7 @@
        default:
        bad:
 #ifdef COMPAT_LINUX
-               frame->tf_rax = LINUX_SCERR_SIGN error;
+               frame->tf_rax = native_to_linux_errno[error];
 #else
                frame->tf_rax = error;
 #endif



Home | Main Index | Thread Index | Old Index