summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--Rules.mak5
-rw-r--r--include/features.h1
-rw-r--r--include/semaphore.h80
-rw-r--r--libc/misc/Makefile3
-rw-r--r--libc/misc/internals/.cvsignore1
-rw-r--r--libc/misc/internals/Makefile2
-rw-r--r--libc/misc/internals/__errno_location.c8
-rw-r--r--libc/misc/internals/__uClibc_main.c31
-rw-r--r--libc/misc/internals/errno.c29
-rw-r--r--libc/misc/pthread/Makefile49
-rw-r--r--libc/misc/pthread/no-tsd.c33
-rw-r--r--libc/misc/pthread/weaks.c107
-rw-r--r--libc/sysdeps/linux/common/Makefile2
-rw-r--r--libc/sysdeps/linux/common/errno.c9
-rw-r--r--libpthread/Makefile112
-rw-r--r--libpthread/linuxthreads/ChangeLog1257
-rw-r--r--libpthread/linuxthreads/Changes73
-rw-r--r--libpthread/linuxthreads/FAQ.html1039
-rw-r--r--libpthread/linuxthreads/LICENSE501
-rw-r--r--libpthread/linuxthreads/Makefile59
-rw-r--r--libpthread/linuxthreads/README166
-rw-r--r--libpthread/linuxthreads/README.Xfree3.2352
-rw-r--r--libpthread/linuxthreads/Versions121
-rw-r--r--libpthread/linuxthreads/attr.c214
-rw-r--r--libpthread/linuxthreads/cancel.c171
-rw-r--r--libpthread/linuxthreads/condvar.c417
-rw-r--r--libpthread/linuxthreads/configure5
-rw-r--r--libpthread/linuxthreads/debug.h50
-rw-r--r--libpthread/linuxthreads/errno.c34
-rw-r--r--libpthread/linuxthreads/events.c35
-rw-r--r--libpthread/linuxthreads/internals.h480
-rw-r--r--libpthread/linuxthreads/join.c213
-rw-r--r--libpthread/linuxthreads/linuxthreads.texi1428
-rw-r--r--libpthread/linuxthreads/lockfile.c88
-rw-r--r--libpthread/linuxthreads/manager.c786
-rw-r--r--libpthread/linuxthreads/mutex.c201
-rw-r--r--libpthread/linuxthreads/no-tsd.c33
-rw-r--r--libpthread/linuxthreads/oldsemaphore.c235
-rw-r--r--libpthread/linuxthreads/pt-machine.c22
-rw-r--r--libpthread/linuxthreads/ptfork.c107
-rw-r--r--libpthread/linuxthreads/pthread.c876
-rw-r--r--libpthread/linuxthreads/ptlongjmp.c55
-rw-r--r--libpthread/linuxthreads/queue.h61
-rw-r--r--libpthread/linuxthreads/restart.h27
-rw-r--r--libpthread/linuxthreads/rwlock.c486
-rw-r--r--libpthread/linuxthreads/semaphore.c209
-rw-r--r--libpthread/linuxthreads/semaphore.h80
-rw-r--r--libpthread/linuxthreads/signals.c239
-rw-r--r--libpthread/linuxthreads/specific.c179
-rw-r--r--libpthread/linuxthreads/spinlock.c195
-rw-r--r--libpthread/linuxthreads/spinlock.h102
-rw-r--r--libpthread/linuxthreads/sysdeps/alpha/pt-machine.h108
-rw-r--r--libpthread/linuxthreads/sysdeps/alpha/sigcontextinfo.h25
-rw-r--r--libpthread/linuxthreads/sysdeps/arm/bits/armsigctx.h73
-rw-r--r--libpthread/linuxthreads/sysdeps/arm/pt-machine.h48
-rw-r--r--libpthread/linuxthreads/sysdeps/i386/i686/pt-machine.h67
-rw-r--r--libpthread/linuxthreads/sysdeps/i386/pt-machine.h99
-rw-r--r--libpthread/linuxthreads/sysdeps/i386/sigcontextinfo.h24
-rw-r--r--libpthread/linuxthreads/sysdeps/i386/useldt.h170
-rw-r--r--libpthread/linuxthreads/sysdeps/m68k/pt-machine.h62
-rw-r--r--libpthread/linuxthreads/sysdeps/m68k/sigcontextinfo.h26
-rw-r--r--libpthread/linuxthreads/sysdeps/mips/pt-machine.h90
-rw-r--r--libpthread/linuxthreads/sysdeps/mips/sigcontextinfo.h27
-rw-r--r--libpthread/linuxthreads/sysdeps/powerpc/pt-machine.h69
-rw-r--r--libpthread/linuxthreads/sysdeps/powerpc/sigcontextinfo.h27
-rw-r--r--libpthread/linuxthreads/sysdeps/pthread/bits/libc-lock.h214
-rw-r--r--libpthread/linuxthreads/sysdeps/pthread/bits/libc-tsd.h44
-rw-r--r--libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h122
-rw-r--r--libpthread/linuxthreads/sysdeps/pthread/bits/stdio-lock.h39
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h66
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc32/sigcontextinfo.h29
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h77
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc64/sigcontextinfo.h32
-rw-r--r--libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h55
-rw-r--r--libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/posix_opt.h110
-rw-r--r--libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h37
-rw-r--r--libpthread/linuxthreads/testrtsig.h40
-rw-r--r--libpthread/linuxthreads/weaks.c120
-rw-r--r--libpthread/linuxthreads/wrapsyscall.c178
-rw-r--r--libpthread/linuxthreads_db/ChangeLog208
-rw-r--r--libpthread/linuxthreads_db/Makefile68
-rw-r--r--libpthread/linuxthreads_db/Versions15
-rw-r--r--libpthread/linuxthreads_db/proc_service.h70
-rw-r--r--libpthread/linuxthreads_db/td_init.c32
-rw-r--r--libpthread/linuxthreads_db/td_log.c32
-rw-r--r--libpthread/linuxthreads_db/td_ta_clear_event.c53
-rw-r--r--libpthread/linuxthreads_db/td_ta_delete.c58
-rw-r--r--libpthread/linuxthreads_db/td_ta_enable_stats.c35
-rw-r--r--libpthread/linuxthreads_db/td_ta_event_addr.c75
-rw-r--r--libpthread/linuxthreads_db/td_ta_event_getmsg.c128
-rw-r--r--libpthread/linuxthreads_db/td_ta_get_nthreads.c44
-rw-r--r--libpthread/linuxthreads_db/td_ta_get_ph.c36
-rw-r--r--libpthread/linuxthreads_db/td_ta_get_stats.c35
-rw-r--r--libpthread/linuxthreads_db/td_ta_map_id2thr.c63
-rw-r--r--libpthread/linuxthreads_db/td_ta_map_lwp2thr.c81
-rw-r--r--libpthread/linuxthreads_db/td_ta_new.c154
-rw-r--r--libpthread/linuxthreads_db/td_ta_reset_stats.c35
-rw-r--r--libpthread/linuxthreads_db/td_ta_set_event.c53
-rw-r--r--libpthread/linuxthreads_db/td_ta_setconcurrency.c35
-rw-r--r--libpthread/linuxthreads_db/td_ta_thr_iter.c143
-rw-r--r--libpthread/linuxthreads_db/td_ta_tsd_iter.c56
-rw-r--r--libpthread/linuxthreads_db/td_thr_clear_event.c57
-rw-r--r--libpthread/linuxthreads_db/td_thr_dbresume.c30
-rw-r--r--libpthread/linuxthreads_db/td_thr_dbsuspend.c30
-rw-r--r--libpthread/linuxthreads_db/td_thr_event_enable.c41
-rw-r--r--libpthread/linuxthreads_db/td_thr_event_getmsg.c60
-rw-r--r--libpthread/linuxthreads_db/td_thr_get_info.c75
-rw-r--r--libpthread/linuxthreads_db/td_thr_getfpregs.c44
-rw-r--r--libpthread/linuxthreads_db/td_thr_getgregs.c44
-rw-r--r--libpthread/linuxthreads_db/td_thr_getxregs.c30
-rw-r--r--libpthread/linuxthreads_db/td_thr_getxregsize.c30
-rw-r--r--libpthread/linuxthreads_db/td_thr_set_event.c57
-rw-r--r--libpthread/linuxthreads_db/td_thr_setfpregs.c42
-rw-r--r--libpthread/linuxthreads_db/td_thr_setgregs.c42
-rw-r--r--libpthread/linuxthreads_db/td_thr_setprio.c30
-rw-r--r--libpthread/linuxthreads_db/td_thr_setsigpending.c31
-rw-r--r--libpthread/linuxthreads_db/td_thr_setxregs.c30
-rw-r--r--libpthread/linuxthreads_db/td_thr_sigsetmask.c30
-rw-r--r--libpthread/linuxthreads_db/td_thr_tsd.c76
-rw-r--r--libpthread/linuxthreads_db/td_thr_validate.c51
-rw-r--r--libpthread/linuxthreads_db/thread_db.h436
-rw-r--r--libpthread/linuxthreads_db/thread_dbP.h83
-rw-r--r--libpthread/pthread.c2
124 files changed, 15956 insertions, 59 deletions
diff --git a/Makefile b/Makefile
index 0c6dd7a6e..877f47efb 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@
TOPDIR=./
include Rules.mak
-DIRS = extra ldso libc libcrypt libresolv libutil libm #libpthread
+DIRS = extra ldso libc libcrypt libresolv libutil libm libpthread
all: headers uClibc_config.h subdirs shared finished
@@ -51,7 +51,7 @@ ifeq ($(strip $(HAVE_SHARED)),true)
@$(MAKE) -C libresolv shared
@$(MAKE) -C libutil shared
@$(MAKE) -C libm shared
- #@$(MAKE) -C libpthread shared
+ @$(MAKE) -C libpthread shared
else
@echo
@echo Not building shared libraries...
@@ -165,6 +165,11 @@ uClibc_config.h: Makefile Config
else \
echo "#undef __UCLIBC_HAVE_LFS__" >> uClibc_config.h ; \
fi
+ @if [ "$(INCLUDE_THREADS)" = "true" ] ; then \
+ echo "#define __UCLIBC_HAS_THREADS__ 1" >> uClibc_config.h ; \
+ else \
+ echo "#undef __UCLIBC_HAS_THREADS__" >> uClibc_config.h ; \
+ fi
@if [ "$(UNIX98PTY_ONLY)" = "true" ] ; then \
echo "#define UNIX98PTY_ONLY 1" >> uClibc_config.h ; \
else \
diff --git a/Rules.mak b/Rules.mak
index 92e0ef6e6..18d13b35a 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -105,7 +105,7 @@ ifeq ($(strip $(HAVE_SHARED)),true)
ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true)
LDSO=$(TOPDIR)lib/$(UCLIBC_LDSO)
DYNAMIC_LINKER=$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO)
-BUILD_DYNAMIC_LINKER=${shell cd $(TOPDIR)lib && pwd}/$(UCLIBC_LDSO)
+ BUILD_DYNAMIC_LINKER=${shell cd $(TOPDIR)lib && pwd}/$(UCLIBC_LDSO)
else
LDSO=$(SYSTEM_LDSO)
BUILD_UCLIBC_LDSO=false