Source-Changes-HG archive

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

[src/netbsd-1-4]: src/lib/libc/arch/vax/sys Pull up revision 1.2 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/47066a3d67c7
branches:  netbsd-1-4
changeset: 470306:47066a3d67c7
user:      he <he%NetBSD.org@localhost>
date:      Mon Feb 07 19:49:02 2000 +0000

description:
Pull up revision 1.2 (requested by kleink):
  Implement *__errno() indirection.

diffstat:

 lib/libc/arch/vax/sys/__vfork14.S |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r a18f66e8e6da -r 47066a3d67c7 lib/libc/arch/vax/sys/__vfork14.S
--- a/lib/libc/arch/vax/sys/__vfork14.S Mon Feb 07 19:48:40 2000 +0000
+++ b/lib/libc/arch/vax/sys/__vfork14.S Mon Feb 07 19:49:02 2000 +0000
@@ -33,7 +33,7 @@
 
 #if defined(SYSLIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)Ovfork.s 8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: __vfork14.S,v 1.1 1998/01/04 20:58:14 thorpej Exp $"
+       .asciz "$NetBSD: __vfork14.S,v 1.1.2.1 2000/02/07 19:49:02 he Exp $"
 #endif /* SYSLIBC_SCCS and not lint */
 
 /*
@@ -67,6 +67,14 @@
        jmp     (r2)
 
 err:
+#ifdef _REENTRANT
+       pushr   $0x5
+       calls   $0,___errno
+       movl    (sp)+,(r0)
+       mnegl   $1,r0
+       rsb
+#else
        movl    r0,_errno
        mnegl   $1,r0
        jmp     (r2)
+#endif



Home | Main Index | Thread Index | Old Index