Source-Changes-HG archive

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

[src/nathanw_sa]: src/lib/libc/thread-stub Weak/indirect references for pthre...



details:   https://anonhg.NetBSD.org/src/rev/db2cb66ded40
branches:  nathanw_sa
changeset: 505505:db2cb66ded40
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Tue Jan 01 21:40:21 2002 +0000

description:
Weak/indirect references for pthread__errno().

diffstat:

 lib/libc/thread-stub/pthread-indr.c |   3 ++-
 lib/libc/thread-stub/pthread-stub.c |  10 +++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r ac1c20219858 -r db2cb66ded40 lib/libc/thread-stub/pthread-indr.c
--- a/lib/libc/thread-stub/pthread-indr.c       Tue Jan 01 09:12:56 2002 +0000
+++ b/lib/libc/thread-stub/pthread-indr.c       Tue Jan 01 21:40:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread-indr.c,v 1.1.2.1 2001/11/16 16:20:44 thorpej Exp $     */
+/*     $NetBSD: pthread-indr.c,v 1.1.2.2 2002/01/01 21:40:21 nathanw Exp $     */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -66,4 +66,5 @@
 __indr_reference(_pthread_getspecific, pthread_getspecific)
 __indr_reference(_pthread_self, pthread_self)
 __indr_reference(_pthread_sigmask, pthread_sigmask)
+__indr_reference(_pthread__errno, pthread__errno)
 #endif
diff -r ac1c20219858 -r db2cb66ded40 lib/libc/thread-stub/pthread-stub.c
--- a/lib/libc/thread-stub/pthread-stub.c       Tue Jan 01 09:12:56 2002 +0000
+++ b/lib/libc/thread-stub/pthread-stub.c       Tue Jan 01 21:40:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread-stub.c,v 1.3.6.5 2002/01/01 09:12:57 wdk Exp $ */
+/*     $NetBSD: pthread-stub.c,v 1.3.6.6 2002/01/01 21:40:21 nathanw Exp $     */
 
 /*-
  * Copyright (c) 1999 Michael Graff <explorer%flame.org@localhost>.
@@ -65,6 +65,7 @@
 __weak_alias(pthread_getspecific, _pthread_getspecific)
 __weak_alias(pthread_self, _pthread_self)
 __weak_alias(pthread_sigmask, _pthread_sigmask)
+__weak_alias(pthread__errno, _pthread__errno)
 #endif
 
 int _pthread_mutex_init(pthread_mutex_t *, pthread_mutexattr_t *);
@@ -297,3 +298,10 @@
        return (0);
 }
 
+void *
+_pthread__errno(void)
+{
+
+       return NULL;
+}
+       



Home | Main Index | Thread Index | Old Index