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/gen Pull up revision 1.3 (requested b...
details: https://anonhg.NetBSD.org/src/rev/27272843bfd2
branches: netbsd-1-4
changeset: 470304:27272843bfd2
user: he <he%NetBSD.org@localhost>
date: Mon Feb 07 19:48:18 2000 +0000
description:
Pull up revision 1.3 (requested by kleink):
Implement *__errno() indirection.
diffstat:
lib/libc/arch/vax/gen/ldexp.S | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 49622d9133f0 -r 27272843bfd2 lib/libc/arch/vax/gen/ldexp.S
--- a/lib/libc/arch/vax/gen/ldexp.S Mon Feb 07 19:44:34 2000 +0000
+++ b/lib/libc/arch/vax/gen/ldexp.S Mon Feb 07 19:48:18 2000 +0000
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*.asciz "@(#)ldexp.s 8.1 (Berkeley) 6/4/93" */
- .asciz "$NetBSD: ldexp.S,v 1.2 1995/06/01 01:11:41 ragge Exp $"
+ .asciz "$NetBSD: ldexp.S,v 1.2.12.1 2000/02/07 19:48:18 he Exp $"
#endif /* LIBC_SCCS and not lint */
/*
@@ -80,7 +80,14 @@
jbc $15,4(ap),1f /* jump if argument was positive */
mnegd r0,r0 /* if arg < 0, make result negative */
1:
+#ifdef _REENTRANT
+ pushl r0
+ calls $0,___errno
+ movl $ ERANGE,(r0)
+ movl (sp)+,r0
+#else
movl $ ERANGE,_errno
+#endif
ret
.data
Home |
Main Index |
Thread Index |
Old Index