diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-19 10:05:03 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-19 10:05:03 +0000 |
commit | 3358b761b15daa480ca0ca788b3fe077ac967674 (patch) | |
tree | d1cea37dd0fbc86a85259b025e62f3e672d68368 /libpthread/linuxthreads/errno.c | |
parent | c8b3ccaedb7e08a2d25ce4485ff7e13ddc6e92a5 (diff) |
Based on work by Stefan Allius, arrange for early initialization of
pthread stuff. Also, don't bother building libthread_db unless we
are debugging.
-Erik
Diffstat (limited to 'libpthread/linuxthreads/errno.c')
-rw-r--r-- | libpthread/linuxthreads/errno.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libpthread/linuxthreads/errno.c b/libpthread/linuxthreads/errno.c index 46e2fbb35..9f651b8ec 100644 --- a/libpthread/linuxthreads/errno.c +++ b/libpthread/linuxthreads/errno.c @@ -21,28 +21,15 @@ #include "pthread.h" #include "internals.h" #include <stdio.h> -extern int _errno; -extern int _h_errno; int * __errno_location() { - /* check, if the library is initilize */ - if (__pthread_initial_thread_bos != NULL) - { pthread_descr self = thread_self(); return THREAD_GETMEM (self, p_errnop); - } - return &_errno; } int * __h_errno_location() { - /* check, if the library is initilize */ - if (__pthread_initial_thread_bos != NULL) - { pthread_descr self = thread_self(); - return THREAD_GETMEM (self, p_h_errnop); - } - return &_h_errno; } |