Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/vax/sys Implement *__errno() indirection.



details:   https://anonhg.NetBSD.org/src/rev/d11b9bff4a28
branches:  trunk
changeset: 481771:d11b9bff4a28
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sat Feb 05 19:20:53 2000 +0000

description:
Implement *__errno() indirection.

diffstat:

 lib/libc/arch/vax/sys/cerror.S |  8 +++++++-
 lib/libc/arch/vax/sys/ptrace.S |  7 ++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 9f5643932e00 -r d11b9bff4a28 lib/libc/arch/vax/sys/cerror.S
--- a/lib/libc/arch/vax/sys/cerror.S    Sat Feb 05 19:14:57 2000 +0000
+++ b/lib/libc/arch/vax/sys/cerror.S    Sat Feb 05 19:20:53 2000 +0000
@@ -33,7 +33,7 @@
 
 #if defined(SYSLIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)cerror.s 8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: cerror.S,v 1.3 1998/10/20 06:46:20 matt Exp $"
+       .asciz "$NetBSD: cerror.S,v 1.4 2000/02/05 19:20:53 kleink Exp $"
 #endif /* SYSLIBC_SCCS and not lint */
 
 #include "SYS.h"
@@ -42,7 +42,13 @@
 cerror:
        nop
        nop
+#ifdef _REENTRANT
+       pushl   r0
+       calls   $0,___errno
+       movl    (sp)+,(r0)
+#else
        movl    r0,_errno
+#endif
        mnegl   $1,r0
        movl    r0,r1
        ret
diff -r 9f5643932e00 -r d11b9bff4a28 lib/libc/arch/vax/sys/ptrace.S
--- a/lib/libc/arch/vax/sys/ptrace.S    Sat Feb 05 19:14:57 2000 +0000
+++ b/lib/libc/arch/vax/sys/ptrace.S    Sat Feb 05 19:20:53 2000 +0000
@@ -33,13 +33,18 @@
 
 #if defined(SYSLIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)ptrace.s 8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: ptrace.S,v 1.2 1997/02/04 18:38:19 ragge Exp $"
+       .asciz "$NetBSD: ptrace.S,v 1.3 2000/02/05 19:20:53 kleink Exp $"
 #endif /* SYSLIBC_SCCS and not lint */
 
 #include "SYS.h"
 
 ENTRY(ptrace, 0)
+#ifdef _REENTRANT
+       calls   $0,___errno
+       clrl    (r0)
+#else
        clrl    _errno
+#endif
        chmk    $ SYS_ptrace
        jcs     err
        ret



Home | Main Index | Thread Index | Old Index