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() redirection, with...
details: https://anonhg.NetBSD.org/src/rev/616cfa919097
branches: trunk
changeset: 481780:616cfa919097
user: kleink <kleink%NetBSD.org@localhost>
date: Sat Feb 05 21:02:51 2000 +0000
description:
Implement *__errno() redirection, with help from Matt Thomas.
diffstat:
lib/libc/arch/vax/sys/Ovfork.S | 10 +++++++++-
lib/libc/arch/vax/sys/__vfork14.S | 10 +++++++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diffs (54 lines):
diff -r 553f9fa21c11 -r 616cfa919097 lib/libc/arch/vax/sys/Ovfork.S
--- a/lib/libc/arch/vax/sys/Ovfork.S Sat Feb 05 20:59:05 2000 +0000
+++ b/lib/libc/arch/vax/sys/Ovfork.S Sat Feb 05 21:02:51 2000 +0000
@@ -33,7 +33,7 @@
#if defined(SYSLIBC_SCCS) && !defined(lint)
/* .asciz "@(#)Ovfork.s 8.1 (Berkeley) 6/4/93" */
- .asciz "$NetBSD: Ovfork.S,v 1.3 1998/12/02 19:29:57 thorpej Exp $"
+ .asciz "$NetBSD: Ovfork.S,v 1.4 2000/02/05 21:02:52 kleink Exp $"
#endif /* SYSLIBC_SCCS and not lint */
/*
@@ -70,6 +70,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
diff -r 553f9fa21c11 -r 616cfa919097 lib/libc/arch/vax/sys/__vfork14.S
--- a/lib/libc/arch/vax/sys/__vfork14.S Sat Feb 05 20:59:05 2000 +0000
+++ b/lib/libc/arch/vax/sys/__vfork14.S Sat Feb 05 21:02:51 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.2 2000/02/05 21:02:51 kleink 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