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.4 (requested b...



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

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

diffstat:

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

diffs (26 lines):

diff -r 47066a3d67c7 -r 413227c7d8f7 lib/libc/arch/vax/sys/cerror.S
--- a/lib/libc/arch/vax/sys/cerror.S    Mon Feb 07 19:49:02 2000 +0000
+++ b/lib/libc/arch/vax/sys/cerror.S    Mon Feb 07 19:49:19 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.3.2.1 2000/02/07 19:49:19 he 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



Home | Main Index | Thread Index | Old Index