From 6b6ede3d15f04fe825cfa9f697507457e3640344 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 14 Feb 2015 23:00:19 -0600 Subject: resolve merge --- libpthread/linuxthreads.old/Makefile | 13 - libpthread/linuxthreads.old/Makefile.in | 119 -- libpthread/linuxthreads.old/attr.c | 240 --- libpthread/linuxthreads.old/cancel.c | 219 --- libpthread/linuxthreads.old/condvar.c | 304 ---- libpthread/linuxthreads.old/debug.h | 40 - libpthread/linuxthreads.old/errno.c | 35 - libpthread/linuxthreads.old/events.c | 36 - libpthread/linuxthreads.old/forward.c | 173 --- libpthread/linuxthreads.old/internals.h | 529 ------- libpthread/linuxthreads.old/join.c | 231 --- libpthread/linuxthreads.old/libc_pthread_init.c | 43 - libpthread/linuxthreads.old/linuxthreads.texi | 1627 -------------------- libpthread/linuxthreads.old/locale.c | 57 - libpthread/linuxthreads.old/lockfile.c | 42 - libpthread/linuxthreads.old/manager.c | 933 ----------- libpthread/linuxthreads.old/mutex.c | 362 ----- libpthread/linuxthreads.old/pt-machine.c | 21 - libpthread/linuxthreads.old/ptfork.c | 167 -- libpthread/linuxthreads.old/pthread.c | 1165 -------------- libpthread/linuxthreads.old/ptlongjmp.c | 67 - libpthread/linuxthreads.old/queue.h | 60 - libpthread/linuxthreads.old/restart.h | 50 - libpthread/linuxthreads.old/rwlock.c | 485 ------ libpthread/linuxthreads.old/semaphore.c | 299 ---- libpthread/linuxthreads.old/semaphore.h | 97 -- libpthread/linuxthreads.old/signals.c | 246 --- libpthread/linuxthreads.old/specific.c | 198 --- libpthread/linuxthreads.old/spinlock.c | 720 --------- libpthread/linuxthreads.old/spinlock.h | 218 --- .../linuxthreads.old/sysdeps/alpha/pt-machine.h | 126 -- .../linuxthreads.old/sysdeps/arc/pt-machine.h | 42 - .../linuxthreads.old/sysdeps/arm/pt-machine.h | 110 -- .../linuxthreads.old/sysdeps/avr32/pt-machine.h | 73 - .../linuxthreads.old/sysdeps/bfin/pt-machine.h | 75 - .../linuxthreads.old/sysdeps/c6x/pt-machine.h | 63 - .../linuxthreads.old/sysdeps/cris/pt-machine.h | 69 - .../linuxthreads.old/sysdeps/frv/pt-machine.h | 69 - .../linuxthreads.old/sysdeps/h8300/pt-machine.h | 57 - .../linuxthreads.old/sysdeps/i386/pt-machine.h | 146 -- libpthread/linuxthreads.old/sysdeps/i386/tls.h | 184 --- libpthread/linuxthreads.old/sysdeps/i386/useldt.h | 306 ---- .../linuxthreads.old/sysdeps/ia64/pt-machine.h | 134 -- libpthread/linuxthreads.old/sysdeps/ia64/tls.h | 138 -- .../linuxthreads.old/sysdeps/m68k/pt-machine.h | 74 - .../sysdeps/microblaze/pt-machine.h | 106 -- .../sysdeps/microblaze/sigcontextinfo.h | 17 - .../linuxthreads.old/sysdeps/mips/pt-machine.h | 105 -- .../linuxthreads.old/sysdeps/nios/pt-machine.h | 67 - .../linuxthreads.old/sysdeps/nios2/pt-machine.h | 57 - .../linuxthreads.old/sysdeps/powerpc/pt-machine.h | 101 -- .../sysdeps/pthread/bits/libc-lock.h | 415 ----- .../sysdeps/pthread/bits/libc-tsd.h | 69 - .../sysdeps/pthread/bits/pthreadtypes.h | 145 -- .../linuxthreads.old/sysdeps/pthread/not-cancel.h | 113 -- .../sysdeps/pthread/pthread-functions.h | 113 -- .../linuxthreads.old/sysdeps/pthread/pthread.h | 710 --------- libpthread/linuxthreads.old/sysdeps/pthread/tls.h | 80 - .../linuxthreads.old/sysdeps/sh/pt-machine.h | 81 - libpthread/linuxthreads.old/sysdeps/sh/tls.h | 116 -- .../linuxthreads.old/sysdeps/sh64/Makefile.arch | 30 - .../linuxthreads.old/sysdeps/sh64/pt-machine.c | 46 - .../linuxthreads.old/sysdeps/sh64/pt-machine.h | 38 - .../linuxthreads.old/sysdeps/sparc/pt-machine.h | 82 - .../linuxthreads.old/sysdeps/sparc/tcb-offsets.h | 1 - .../linuxthreads.old/sysdeps/v850/pt-machine.h | 52 - .../linuxthreads.old/sysdeps/x86_64/pt-machine.h | 87 -- libpthread/linuxthreads.old/sysdeps/x86_64/tls.h | 133 -- .../linuxthreads.old/sysdeps/xtensa/pt-machine.h | 79 - libpthread/linuxthreads.old/wrapsyscall.c | 246 --- libpthread/linuxthreads.old_db/Banner | 1 - libpthread/linuxthreads.old_db/Makefile | 13 - libpthread/linuxthreads.old_db/Makefile.in | 78 - libpthread/linuxthreads.old_db/Versions | 24 - libpthread/linuxthreads.old_db/proc_service.h | 69 - libpthread/linuxthreads.old_db/td_init.c | 32 - libpthread/linuxthreads.old_db/td_log.c | 31 - libpthread/linuxthreads.old_db/td_symbol_list.c | 60 - libpthread/linuxthreads.old_db/td_ta_clear_event.c | 50 - libpthread/linuxthreads.old_db/td_ta_delete.c | 57 - .../linuxthreads.old_db/td_ta_enable_stats.c | 34 - libpthread/linuxthreads.old_db/td_ta_event_addr.c | 72 - .../linuxthreads.old_db/td_ta_event_getmsg.c | 127 -- .../linuxthreads.old_db/td_ta_get_nthreads.c | 41 - libpthread/linuxthreads.old_db/td_ta_get_ph.c | 35 - libpthread/linuxthreads.old_db/td_ta_get_stats.c | 34 - libpthread/linuxthreads.old_db/td_ta_map_id2thr.c | 77 - libpthread/linuxthreads.old_db/td_ta_map_lwp2thr.c | 89 -- libpthread/linuxthreads.old_db/td_ta_new.c | 148 -- libpthread/linuxthreads.old_db/td_ta_reset_stats.c | 34 - libpthread/linuxthreads.old_db/td_ta_set_event.c | 50 - .../linuxthreads.old_db/td_ta_setconcurrency.c | 34 - libpthread/linuxthreads.old_db/td_ta_thr_iter.c | 172 --- libpthread/linuxthreads.old_db/td_ta_tsd_iter.c | 54 - .../linuxthreads.old_db/td_thr_clear_event.c | 59 - libpthread/linuxthreads.old_db/td_thr_dbresume.c | 29 - libpthread/linuxthreads.old_db/td_thr_dbsuspend.c | 29 - .../linuxthreads.old_db/td_thr_event_enable.c | 54 - .../linuxthreads.old_db/td_thr_event_getmsg.c | 64 - libpthread/linuxthreads.old_db/td_thr_get_info.c | 82 - libpthread/linuxthreads.old_db/td_thr_getfpregs.c | 57 - libpthread/linuxthreads.old_db/td_thr_getgregs.c | 57 - libpthread/linuxthreads.old_db/td_thr_getxregs.c | 29 - .../linuxthreads.old_db/td_thr_getxregsize.c | 29 - libpthread/linuxthreads.old_db/td_thr_set_event.c | 59 - libpthread/linuxthreads.old_db/td_thr_setfpregs.c | 46 - libpthread/linuxthreads.old_db/td_thr_setgregs.c | 46 - libpthread/linuxthreads.old_db/td_thr_setprio.c | 29 - .../linuxthreads.old_db/td_thr_setsigpending.c | 30 - libpthread/linuxthreads.old_db/td_thr_setxregs.c | 29 - libpthread/linuxthreads.old_db/td_thr_sigsetmask.c | 29 - .../linuxthreads.old_db/td_thr_tls_get_addr.c | 68 - libpthread/linuxthreads.old_db/td_thr_tsd.c | 80 - libpthread/linuxthreads.old_db/td_thr_validate.c | 68 - libpthread/linuxthreads.old_db/thread_db.h | 458 ------ libpthread/linuxthreads.old_db/thread_dbP.h | 108 -- libpthread/linuxthreads/Makefile.in | 87 +- libpthread/linuxthreads/alloca_cutoff.c | 35 - libpthread/linuxthreads/attr.c | 377 +---- libpthread/linuxthreads/barrier.c | 127 -- libpthread/linuxthreads/cancel.c | 90 +- libpthread/linuxthreads/condvar.c | 60 +- libpthread/linuxthreads/debug.h | 40 + libpthread/linuxthreads/descr.h | 268 ---- libpthread/linuxthreads/errno.c | 15 +- libpthread/linuxthreads/events.c | 14 +- libpthread/linuxthreads/forward.c | 31 +- libpthread/linuxthreads/internals.h | 636 ++++---- libpthread/linuxthreads/join.c | 57 +- libpthread/linuxthreads/libc-cancellation.c | 60 - libpthread/linuxthreads/libc_pthread_init.c | 15 +- libpthread/linuxthreads/linuxthreads.texi | 1627 ++++++++++++++++++++ libpthread/linuxthreads/locale.c | 57 + libpthread/linuxthreads/lockfile.c | 29 +- libpthread/linuxthreads/manager.c | 829 ++++------ libpthread/linuxthreads/mutex.c | 57 +- libpthread/linuxthreads/pt-machine.c | 15 +- libpthread/linuxthreads/ptcleanup.c | 74 - libpthread/linuxthreads/ptclock_gettime.c | 67 - libpthread/linuxthreads/ptclock_settime.c | 53 - libpthread/linuxthreads/ptfork.c | 173 ++- libpthread/linuxthreads/pthandles.c | 5 - libpthread/linuxthreads/pthread.c | 1318 +++++++--------- libpthread/linuxthreads/pthread_atfork.c | 62 - libpthread/linuxthreads/pthread_setegid.c | 27 - libpthread/linuxthreads/pthread_seteuid.c | 27 - libpthread/linuxthreads/pthread_setgid.c | 27 - libpthread/linuxthreads/pthread_setregid.c | 27 - libpthread/linuxthreads/pthread_setresgid.c | 27 - libpthread/linuxthreads/pthread_setresuid.c | 27 - libpthread/linuxthreads/pthread_setreuid.c | 27 - libpthread/linuxthreads/pthread_setuid.c | 27 - libpthread/linuxthreads/ptlongjmp.c | 67 + libpthread/linuxthreads/queue.h | 1 - libpthread/linuxthreads/restart.h | 3 +- libpthread/linuxthreads/rwlock.c | 250 +-- libpthread/linuxthreads/semaphore.c | 18 +- libpthread/linuxthreads/semaphore.h | 2 +- libpthread/linuxthreads/sighandler.c | 71 - libpthread/linuxthreads/signals.c | 137 +- libpthread/linuxthreads/specific.c | 223 ++- libpthread/linuxthreads/spinlock.c | 24 +- libpthread/linuxthreads/spinlock.h | 8 +- .../linuxthreads/sysdeps/alpha/elf/pt-initfini.c | 89 -- libpthread/linuxthreads/sysdeps/alpha/pspinlock.c | 109 -- libpthread/linuxthreads/sysdeps/alpha/tls.h | 133 -- libpthread/linuxthreads/sysdeps/arc/pt-machine.h | 42 + libpthread/linuxthreads/sysdeps/arm/pspinlock.c | 81 - libpthread/linuxthreads/sysdeps/arm/pt-machine.h | 69 +- .../linuxthreads/sysdeps/arm/sysdep-cancel.h | 8 - libpthread/linuxthreads/sysdeps/arm/tls.h | 171 -- libpthread/linuxthreads/sysdeps/bfin/pt-machine.h | 75 + libpthread/linuxthreads/sysdeps/c6x/pt-machine.h | 63 + libpthread/linuxthreads/sysdeps/cris/pspinlock.c | 71 - libpthread/linuxthreads/sysdeps/cris/pt-machine.h | 21 +- libpthread/linuxthreads/sysdeps/frv/pt-machine.h | 69 + libpthread/linuxthreads/sysdeps/h8300/pt-machine.h | 57 + libpthread/linuxthreads/sysdeps/hppa/pspinlock.c | 80 - libpthread/linuxthreads/sysdeps/hppa/pt-machine.h | 59 - .../linuxthreads/sysdeps/i386/i686/pt-machine.h | 78 - libpthread/linuxthreads/sysdeps/i386/pspinlock.c | 102 -- libpthread/linuxthreads/sysdeps/i386/pt-machine.h | 93 +- .../linuxthreads/sysdeps/i386/tcb-offsets.sym | 7 - libpthread/linuxthreads/sysdeps/i386/tls.h | 84 +- libpthread/linuxthreads/sysdeps/i386/useldt.h | 19 +- libpthread/linuxthreads/sysdeps/ia64/pspinlock.c | 78 - libpthread/linuxthreads/sysdeps/ia64/pt-machine.h | 6 +- .../linuxthreads/sysdeps/ia64/tcb-offsets.sym | 9 - libpthread/linuxthreads/sysdeps/ia64/tls.h | 6 - libpthread/linuxthreads/sysdeps/m68k/pspinlock.c | 91 -- libpthread/linuxthreads/sysdeps/m68k/pt-machine.h | 8 +- .../linuxthreads/sysdeps/microblaze/pt-machine.h | 106 ++ .../sysdeps/microblaze/sigcontextinfo.h | 17 + libpthread/linuxthreads/sysdeps/mips/pspinlock.c | 95 -- libpthread/linuxthreads/sysdeps/mips/pt-machine.h | 41 +- libpthread/linuxthreads/sysdeps/mips/tls.h | 169 -- libpthread/linuxthreads/sysdeps/nios/pt-machine.h | 67 + libpthread/linuxthreads/sysdeps/nios2/pt-machine.h | 57 + .../sysdeps/powerpc/powerpc32/pspinlock.c | 69 - .../sysdeps/powerpc/powerpc32/pt-machine.h | 119 -- .../sysdeps/powerpc/powerpc64/pspinlock.c | 69 - .../sysdeps/powerpc/powerpc64/pt-machine.h | 184 --- .../linuxthreads/sysdeps/powerpc/pspinlock.c | 8 - .../linuxthreads/sysdeps/powerpc/pt-machine.h | 103 +- .../linuxthreads/sysdeps/powerpc/tcb-offsets.sym | 19 - libpthread/linuxthreads/sysdeps/powerpc/tls.h | 164 -- .../linuxthreads/sysdeps/pthread/bits/initspin.h | 27 - .../linuxthreads/sysdeps/pthread/bits/libc-lock.h | 65 +- .../linuxthreads/sysdeps/pthread/bits/libc-tsd.h | 14 +- .../sysdeps/pthread/bits/pthreadtypes.h | 12 +- .../linuxthreads/sysdeps/pthread/bits/typesizes.h | 65 - .../linuxthreads/sysdeps/pthread/errno-loc.c | 44 - .../linuxthreads/sysdeps/pthread/flockfile.c | 32 - .../linuxthreads/sysdeps/pthread/ftrylockfile.c | 32 - .../linuxthreads/sysdeps/pthread/funlockfile.c | 32 - .../linuxthreads/sysdeps/pthread/getcpuclockid.c | 116 -- .../linuxthreads/sysdeps/pthread/herrno-loc.c | 44 - libpthread/linuxthreads/sysdeps/pthread/list.h | 113 -- .../linuxthreads/sysdeps/pthread/malloc-machine.h | 66 - .../linuxthreads/sysdeps/pthread/not-cancel.h | 4 +- .../linuxthreads/sysdeps/pthread/posix-timer.h | 203 --- .../linuxthreads/sysdeps/pthread/pt-initfini.c | 123 -- .../sysdeps/pthread/pthread-functions.h | 14 +- libpthread/linuxthreads/sysdeps/pthread/pthread.h | 46 +- .../linuxthreads/sysdeps/pthread/ptlongjmp.c | 32 - .../linuxthreads/sysdeps/pthread/res-state.c | 46 - .../linuxthreads/sysdeps/pthread/semaphore.h | 1 - .../linuxthreads/sysdeps/pthread/sigaction.c | 56 - .../linuxthreads/sysdeps/pthread/tcb-offsets.h | 1 - .../linuxthreads/sysdeps/pthread/timer_create.c | 169 -- .../linuxthreads/sysdeps/pthread/timer_delete.c | 69 - .../linuxthreads/sysdeps/pthread/timer_getoverr.c | 44 - .../linuxthreads/sysdeps/pthread/timer_gettime.c | 76 - .../linuxthreads/sysdeps/pthread/timer_routines.c | 572 ------- .../linuxthreads/sysdeps/pthread/timer_settime.c | 136 -- libpthread/linuxthreads/sysdeps/pthread/tls.h | 80 + .../linuxthreads/sysdeps/pthread/tst-timer.c | 113 -- .../linuxthreads/sysdeps/pthread/uClibc-glue.h | 47 - libpthread/linuxthreads/sysdeps/sh/pspinlock.c | 79 - libpthread/linuxthreads/sysdeps/sh/tcb-offsets.sym | 10 - libpthread/linuxthreads/sysdeps/sh/tls.h | 140 +- libpthread/linuxthreads/sysdeps/sh64/Makefile.arch | 30 + libpthread/linuxthreads/sysdeps/sh64/pt-machine.c | 46 + libpthread/linuxthreads/sysdeps/sh64/pt-machine.h | 38 + libpthread/linuxthreads/sysdeps/sparc/pspinlock.c | 87 -- .../linuxthreads/sysdeps/sparc/tcb-offsets.h | 1 + .../linuxthreads/sysdeps/sparc/tcb-offsets.sym | 4 - libpthread/linuxthreads/sysdeps/sparc/tls.h | 114 -- .../sysdeps/unix/sysv/linux/allocalim.h | 25 - .../sysdeps/unix/sysv/linux/allocrtsig.c | 88 -- .../sysdeps/unix/sysv/linux/alpha/aio_cancel.c | 33 - .../sysdeps/unix/sysv/linux/alpha/bits/local_lim.h | 91 -- .../sysdeps/unix/sysv/linux/alpha/bits/typesizes.h | 65 - .../sysdeps/unix/sysv/linux/alpha/pt-sigsuspend.S | 27 - .../sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h | 145 -- .../sysdeps/unix/sysv/linux/alpha/vfork.S | 69 - .../sysdeps/unix/sysv/linux/arm/sysdep-cancel.h | 129 -- .../sysdeps/unix/sysv/linux/arm/vfork.S | 77 - .../linuxthreads/sysdeps/unix/sysv/linux/execve.c | 39 - .../linuxthreads/sysdeps/unix/sysv/linux/fork.c | 29 - .../linuxthreads/sysdeps/unix/sysv/linux/fork.h | 57 - .../sysdeps/unix/sysv/linux/hppa/aio_cancel.c | 33 - .../sysdeps/unix/sysv/linux/hppa/bits/initspin.h | 26 - .../sysdeps/unix/sysv/linux/hppa/malloc-machine.h | 72 - .../sysdeps/unix/sysv/linux/hppa/pt-initfini.c | 108 -- .../sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h | 188 --- .../sysdeps/unix/sysv/linux/i386/sysdep-cancel.h | 186 --- .../sysdeps/unix/sysv/linux/i386/vfork.S | 94 -- .../sysdeps/unix/sysv/linux/ia64/bits/local_lim.h | 91 -- .../sysdeps/unix/sysv/linux/ia64/fork.h | 24 - .../sysdeps/unix/sysv/linux/ia64/pt-initfini.c | 141 -- .../sysdeps/unix/sysv/linux/ia64/pt-sigsuspend.c | 32 - .../sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h | 143 -- .../sysdeps/unix/sysv/linux/ia64/vfork.S | 53 - .../sysdeps/unix/sysv/linux/jmp-unwind.c | 34 - .../sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h | 128 -- .../sysdeps/unix/sysv/linux/m68k/vfork.S | 83 - .../unix/sysv/linux/mips/mips64/sysdep-cancel.h | 143 -- .../sysdeps/unix/sysv/linux/mips/sysdep-cancel.h | 143 -- .../sysdeps/unix/sysv/linux/mips/vfork.S | 104 -- .../sysdeps/unix/sysv/linux/mq_notify.c | 284 ---- .../sysv/linux/powerpc/powerpc32/sysdep-cancel.h | 158 -- .../unix/sysv/linux/powerpc/powerpc32/vfork.S | 85 - .../sysv/linux/powerpc/powerpc64/sysdep-cancel.h | 126 -- .../unix/sysv/linux/powerpc/powerpc64/vfork.S | 90 -- .../sysdeps/unix/sysv/linux/powerpc/ptlongjmp.c | 70 - .../sysdeps/unix/sysv/linux/pt-sigsuspend.c | 32 - .../linuxthreads/sysdeps/unix/sysv/linux/raise.c | 41 - .../sysdeps/unix/sysv/linux/register-atfork.c | 86 -- .../sysdeps/unix/sysv/linux/sh/pt-initfini.c | 142 -- .../linuxthreads/sysdeps/unix/sysv/linux/sh/smp.h | 23 - .../sysdeps/unix/sysv/linux/sh/sysdep-cancel.h | 226 --- .../sysdeps/unix/sysv/linux/sh/vfork.S | 77 - .../linuxthreads/sysdeps/unix/sysv/linux/sigwait.c | 82 - .../linuxthreads/sysdeps/unix/sysv/linux/smp.h | 47 - .../sysdeps/unix/sysv/linux/sparc/aio_cancel.c | 33 - .../sysdeps/unix/sysv/linux/sparc/bits/local_lim.h | 91 -- .../sysdeps/unix/sysv/linux/sparc/bits/typesizes.h | 65 - .../sysdeps/unix/sysv/linux/sparc/fork.h | 20 - .../sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h | 100 -- .../sysdeps/unix/sysv/linux/sparc/vfork.S | 64 - .../sysdeps/unix/sysv/linux/unregister-atfork.c | 48 - .../sysdeps/unix/sysv/linux/x86_64/pt-sigsuspend.c | 1 - .../sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h | 131 -- .../sysdeps/unix/sysv/linux/x86_64/vfork.S | 61 - libpthread/linuxthreads/sysdeps/v850/pt-machine.h | 52 + libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c | 96 -- .../linuxthreads/sysdeps/x86_64/pt-machine.h | 156 +- .../linuxthreads/sysdeps/x86_64/tcb-offsets.sym | 4 - .../linuxthreads/sysdeps/xtensa/pt-machine.h | 79 + libpthread/linuxthreads/wrapsyscall.c | 246 +++ libpthread/linuxthreads_db/ChangeLog | 467 ------ libpthread/linuxthreads_db/Makefile.in | 16 +- libpthread/linuxthreads_db/Makefile.old | 56 - libpthread/linuxthreads_db/shlib-versions | 2 - libpthread/linuxthreads_db/td_init.c | 3 +- libpthread/linuxthreads_db/td_ta_clear_event.c | 2 +- libpthread/linuxthreads_db/td_ta_event_getmsg.c | 1 - libpthread/linuxthreads_db/td_ta_map_id2thr.c | 1 - libpthread/linuxthreads_db/td_ta_map_lwp2thr.c | 1 - libpthread/linuxthreads_db/td_ta_set_event.c | 2 +- libpthread/linuxthreads_db/td_ta_thr_iter.c | 5 +- libpthread/linuxthreads_db/td_ta_tsd_iter.c | 1 - libpthread/linuxthreads_db/td_thr_clear_event.c | 2 +- libpthread/linuxthreads_db/td_thr_tls_get_addr.c | 36 +- libpthread/linuxthreads_db/td_thr_tlsbase.c | 70 - libpthread/linuxthreads_db/td_thr_tsd.c | 1 - libpthread/linuxthreads_db/td_thr_validate.c | 1 - libpthread/linuxthreads_db/thread_dbP.h | 2 +- 329 files changed, 5260 insertions(+), 30837 deletions(-) delete mode 100644 libpthread/linuxthreads.old/Makefile delete mode 100644 libpthread/linuxthreads.old/Makefile.in delete mode 100644 libpthread/linuxthreads.old/attr.c delete mode 100644 libpthread/linuxthreads.old/cancel.c delete mode 100644 libpthread/linuxthreads.old/condvar.c delete mode 100644 libpthread/linuxthreads.old/debug.h delete mode 100644 libpthread/linuxthreads.old/errno.c delete mode 100644 libpthread/linuxthreads.old/events.c delete mode 100644 libpthread/linuxthreads.old/forward.c delete mode 100644 libpthread/linuxthreads.old/internals.h delete mode 100644 libpthread/linuxthreads.old/join.c delete mode 100644 libpthread/linuxthreads.old/libc_pthread_init.c delete mode 100644 libpthread/linuxthreads.old/linuxthreads.texi delete mode 100644 libpthread/linuxthreads.old/locale.c delete mode 100644 libpthread/linuxthreads.old/lockfile.c delete mode 100644 libpthread/linuxthreads.old/manager.c delete mode 100644 libpthread/linuxthreads.old/mutex.c delete mode 100644 libpthread/linuxthreads.old/pt-machine.c delete mode 100644 libpthread/linuxthreads.old/ptfork.c delete mode 100644 libpthread/linuxthreads.old/pthread.c delete mode 100644 libpthread/linuxthreads.old/ptlongjmp.c delete mode 100644 libpthread/linuxthreads.old/queue.h delete mode 100644 libpthread/linuxthreads.old/restart.h delete mode 100644 libpthread/linuxthreads.old/rwlock.c delete mode 100644 libpthread/linuxthreads.old/semaphore.c delete mode 100644 libpthread/linuxthreads.old/semaphore.h delete mode 100644 libpthread/linuxthreads.old/signals.c delete mode 100644 libpthread/linuxthreads.old/specific.c delete mode 100644 libpthread/linuxthreads.old/spinlock.c delete mode 100644 libpthread/linuxthreads.old/spinlock.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/alpha/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/arc/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/arm/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/bfin/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/c6x/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/cris/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/h8300/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/i386/tls.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/i386/useldt.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/ia64/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/ia64/tls.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/m68k/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/microblaze/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/microblaze/sigcontextinfo.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/nios/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/nios2/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/powerpc/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-tsd.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/pthread/bits/pthreadtypes.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/pthread/not-cancel.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/pthread/pthread-functions.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/pthread/pthread.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/pthread/tls.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/sh/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/sh/tls.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/sh64/Makefile.arch delete mode 100644 libpthread/linuxthreads.old/sysdeps/sh64/pt-machine.c delete mode 100644 libpthread/linuxthreads.old/sysdeps/sh64/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/sparc/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/sparc/tcb-offsets.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/v850/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/x86_64/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/x86_64/tls.h delete mode 100644 libpthread/linuxthreads.old/sysdeps/xtensa/pt-machine.h delete mode 100644 libpthread/linuxthreads.old/wrapsyscall.c delete mode 100644 libpthread/linuxthreads.old_db/Banner delete mode 100644 libpthread/linuxthreads.old_db/Makefile delete mode 100644 libpthread/linuxthreads.old_db/Makefile.in delete mode 100644 libpthread/linuxthreads.old_db/Versions delete mode 100644 libpthread/linuxthreads.old_db/proc_service.h delete mode 100644 libpthread/linuxthreads.old_db/td_init.c delete mode 100644 libpthread/linuxthreads.old_db/td_log.c delete mode 100644 libpthread/linuxthreads.old_db/td_symbol_list.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_clear_event.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_delete.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_enable_stats.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_event_addr.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_event_getmsg.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_get_nthreads.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_get_ph.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_get_stats.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_map_id2thr.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_map_lwp2thr.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_new.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_reset_stats.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_set_event.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_setconcurrency.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_thr_iter.c delete mode 100644 libpthread/linuxthreads.old_db/td_ta_tsd_iter.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_clear_event.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_dbresume.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_dbsuspend.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_event_enable.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_event_getmsg.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_get_info.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_getfpregs.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_getgregs.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_getxregs.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_getxregsize.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_set_event.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_setfpregs.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_setgregs.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_setprio.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_setsigpending.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_setxregs.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_sigsetmask.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_tls_get_addr.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_tsd.c delete mode 100644 libpthread/linuxthreads.old_db/td_thr_validate.c delete mode 100644 libpthread/linuxthreads.old_db/thread_db.h delete mode 100644 libpthread/linuxthreads.old_db/thread_dbP.h delete mode 100644 libpthread/linuxthreads/alloca_cutoff.c delete mode 100644 libpthread/linuxthreads/barrier.c create mode 100644 libpthread/linuxthreads/debug.h delete mode 100644 libpthread/linuxthreads/descr.h delete mode 100644 libpthread/linuxthreads/libc-cancellation.c create mode 100644 libpthread/linuxthreads/linuxthreads.texi create mode 100644 libpthread/linuxthreads/locale.c delete mode 100644 libpthread/linuxthreads/ptcleanup.c delete mode 100644 libpthread/linuxthreads/ptclock_gettime.c delete mode 100644 libpthread/linuxthreads/ptclock_settime.c delete mode 100644 libpthread/linuxthreads/pthandles.c delete mode 100644 libpthread/linuxthreads/pthread_atfork.c delete mode 100644 libpthread/linuxthreads/pthread_setegid.c delete mode 100644 libpthread/linuxthreads/pthread_seteuid.c delete mode 100644 libpthread/linuxthreads/pthread_setgid.c delete mode 100644 libpthread/linuxthreads/pthread_setregid.c delete mode 100644 libpthread/linuxthreads/pthread_setresgid.c delete mode 100644 libpthread/linuxthreads/pthread_setresuid.c delete mode 100644 libpthread/linuxthreads/pthread_setreuid.c delete mode 100644 libpthread/linuxthreads/pthread_setuid.c create mode 100644 libpthread/linuxthreads/ptlongjmp.c delete mode 100644 libpthread/linuxthreads/sighandler.c delete mode 100644 libpthread/linuxthreads/sysdeps/alpha/elf/pt-initfini.c delete mode 100644 libpthread/linuxthreads/sysdeps/alpha/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/alpha/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/arc/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/arm/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/arm/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/arm/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/bfin/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/c6x/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/cris/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/frv/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/h8300/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/hppa/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/hppa/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/i386/i686/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/i386/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/i386/tcb-offsets.sym delete mode 100644 libpthread/linuxthreads/sysdeps/ia64/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/ia64/tcb-offsets.sym delete mode 100644 libpthread/linuxthreads/sysdeps/m68k/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/microblaze/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/microblaze/sigcontextinfo.h delete mode 100644 libpthread/linuxthreads/sysdeps/mips/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/mips/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/nios/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/nios2/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc32/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc32/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc64/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc64/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/powerpc/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/powerpc/tcb-offsets.sym delete mode 100644 libpthread/linuxthreads/sysdeps/powerpc/tls.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/initspin.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/typesizes.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/errno-loc.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/flockfile.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/ftrylockfile.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/funlockfile.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/getcpuclockid.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/list.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/malloc-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/posix-timer.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/pt-initfini.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/ptlongjmp.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/res-state.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/semaphore.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/sigaction.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/tcb-offsets.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_create.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_delete.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_getoverr.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_gettime.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_routines.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_settime.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/tls.h delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/tst-timer.c delete mode 100644 libpthread/linuxthreads/sysdeps/pthread/uClibc-glue.h delete mode 100644 libpthread/linuxthreads/sysdeps/sh/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/sh/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/sh64/Makefile.arch create mode 100644 libpthread/linuxthreads/sysdeps/sh64/pt-machine.c create mode 100644 libpthread/linuxthreads/sysdeps/sh64/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/sparc/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/sparc/tcb-offsets.h delete mode 100644 libpthread/linuxthreads/sysdeps/sparc/tcb-offsets.sym delete mode 100644 libpthread/linuxthreads/sysdeps/sparc/tls.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocalim.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/aio_cancel.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/local_lim.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/typesizes.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/pt-sigsuspend.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/arm/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/execve.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/fork.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/fork.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/aio_cancel.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/bits/initspin.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/malloc-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/pt-initfini.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/local_lim.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/fork.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/pt-initfini.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/pt-sigsuspend.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/jmp-unwind.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/ptlongjmp.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/pt-sigsuspend.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/raise.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/register-atfork.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/pt-initfini.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/smp.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sigwait.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/smp.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/aio_cancel.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/typesizes.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/fork.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/vfork.S delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/unregister-atfork.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/pt-sigsuspend.c delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h delete mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/v850/pt-machine.h delete mode 100644 libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c delete mode 100644 libpthread/linuxthreads/sysdeps/x86_64/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/xtensa/pt-machine.h create mode 100644 libpthread/linuxthreads/wrapsyscall.c delete mode 100644 libpthread/linuxthreads_db/ChangeLog delete mode 100644 libpthread/linuxthreads_db/Makefile.old delete mode 100644 libpthread/linuxthreads_db/shlib-versions delete mode 100644 libpthread/linuxthreads_db/td_thr_tlsbase.c (limited to 'libpthread') diff --git a/libpthread/linuxthreads.old/Makefile b/libpthread/linuxthreads.old/Makefile deleted file mode 100644 index f9100219a..000000000 --- a/libpthread/linuxthreads.old/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# Makefile for uClibc -# -# Copyright (C) 2000-2005 Erik Andersen -# -# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -# - -top_srcdir=../../ -top_builddir=../../ -include $(top_builddir)Rules.mak -all: libs -include Makefile.in -include $(top_srcdir)Makerules diff --git a/libpthread/linuxthreads.old/Makefile.in b/libpthread/linuxthreads.old/Makefile.in deleted file mode 100644 index 6be2099d2..000000000 --- a/libpthread/linuxthreads.old/Makefile.in +++ /dev/null @@ -1,119 +0,0 @@ -# Makefile for uClibc -# -# Copyright (C) 2003 Paul Mundt -# Copyright (C) 2000-2008 Erik Andersen -# -# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -# - -subdirs += libpthread/linuxthreads.old - -CFLAGS-dir_linuxthreads.old := -DNOT_IN_libc -DIS_IN_libpthread -CFLAGS-libpthread/linuxthreads.old := $(CFLAGS-dir_linuxthreads.old) $(SSP_ALL_CFLAGS) - -ifeq ($(PTHREADS_DEBUG_SUPPORT),y) -LDFLAGS-libpthread.so := $(LDFLAGS_NOSTRIP) -Wl,-z,defs -else -LDFLAGS-libpthread.so := $(LDFLAGS) -endif -LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libpthread.so := -Wl,--dsbt-index=10 - -LIBS-libpthread.so := $(LIBS) $(ldso) - -START_FILE-libpthread.so := $(SHARED_START_FILES) -END_FILE-libpthread.so := $(SHARED_END_FILES) - -libpthread_FULL_NAME := libpthread-$(VERSION).so - -libpthread_DIR := $(top_srcdir)libpthread/linuxthreads.old -libpthread_OUT := $(top_builddir)libpthread/linuxthreads.old - --include $(libpthread_DIR)/sysdeps/$(TARGET_ARCH)/Makefile.arch - -libpthread_SRC := \ - attr.c cancel.c condvar.c errno.c events.c join.c lockfile.c manager.c \ - mutex.c pt-machine.c ptfork.c pthread.c ptlongjmp.c \ - rwlock.c semaphore.c signals.c specific.c spinlock.c wrapsyscall.c -ifeq ($(UCLIBC_HAS_XLOCALE),y) -libpthread_SRC += locale.c -endif - -# remove generic sources, if arch specific version is present -ifneq ($(strip $(libpthread_ARCH_SRC)),) -libpthread_SRC := $(filter-out $(patsubst %.c,$(libpthread_DIR)/%.c,$(notdir $(libpthread_ARCH_SRC))),$(libpthread_SRC)) -endif - -libpthread_SRC := $(patsubst %,$(libpthread_DIR)/%,$(libpthread_SRC)) - -libpthread_OBJ := $(patsubst $(libpthread_DIR)/%.c,$(libpthread_OUT)/%.o,$(libpthread_SRC)) - -# -# Stuff that goes into libc.so, not libpthread.so -# -CFLAGS-OMIT-forward.c := $(CFLAGS-dir_linuxthreads.old) -CFLAGS-OMIT-libc_pthread_init.c := $(CFLAGS-dir_linuxthreads.old) -libpthread_libc_CSRC := forward.c libc_pthread_init.c -libpthread_libc_OBJ := $(patsubst %.c, $(libpthread_OUT)/%.o,$(libpthread_libc_CSRC)) -libc-static-y += $(libpthread_OUT)/libc_pthread_init.o -libc-shared-y += $(libpthread_libc_OBJ:.o=.oS) - -ifeq ($(DOPIC),y) -libpthread-a-y += $(libpthread_OBJ:.o=.os) -else -libpthread-a-y += $(libpthread_OBJ) -endif -libpthread-so-y += $(libpthread_OBJ:.o=.oS) - -lib-a-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.a -lib-so-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.so - -#ifeq ($(DOMULTI),n) -$(top_builddir)lib/libpthread.so: $(libpthread_OUT)/libpthread_so.a $(libc.depend) - $(call link.so,$(libpthread_FULL_NAME),$(ABI_VERSION)) -#else -#$(top_builddir)lib/libpthread.so: $(libpthread_OUT)/libpthread.oS | $(libc.depend) -# $(call linkm.so,$(libpthread_FULL_NAME),$(ABI_VERSION)) -#endif - -ifeq ($(PTHREADS_DEBUG_SUPPORT),y) -$(libpthread_OUT)/libpthread_so.a: STRIP_FLAGS:=$(STRIP_FLAGS:-x=-X --strip-debug) -endif -$(libpthread_OUT)/libpthread_so.a: $(libpthread-so-y) - $(Q)$(RM) $@ - $(do_ar) - -ifeq ($(PTHREADS_DEBUG_SUPPORT),y) -$(libpthread_OUT)/libpthread.oS: STRIP_FLAGS:=$(STRIP_FLAGS:-x=-X --strip-debug) -endif -$(libpthread_OUT)/libpthread.oS: $(libpthread_SRC) - $(Q)$(RM) $@ - $(compile-m) - -ifeq ($(PTHREADS_DEBUG_SUPPORT),y) -$(top_builddir)lib/libpthread.a: STRIP_FLAGS:=$(STRIP_FLAGS:-x=-X --strip-debug) -endif -$(top_builddir)lib/libpthread.a: $(libpthread-a-y) - $(Q)$(INSTALL) -d $(dir $@) - $(Q)$(RM) $@ - $(do_ar) - -$(top_builddir)include/pthread.h: - $(do_ln) $(call rel_srcdir)$(PTDIR)/sysdeps/pthread/$(@F) $@ -$(top_builddir)include/semaphore.h: - $(do_ln) $(call rel_srcdir)$(PTDIR)/$(@F) $@ -$(top_builddir)include/bits/pthreadtypes.h: | $(top_builddir)include/bits - $(do_ln) $(call rel_srcdir)$(PTDIR)/sysdeps/pthread/bits/$(@F) $@ - -linuxthreads_headers := $(top_builddir)include/pthread.h \ - $(top_builddir)include/semaphore.h \ - $(top_builddir)include/bits/pthreadtypes.h -$(linuxthreads_headers): $(wildcard $(addprefix $(top_builddir)include/config/linuxthreads/,old.h new.h)) -headers-$(UCLIBC_HAS_THREADS) += $(linuxthreads_headers) - -objclean-y += CLEAN_libpthread/linuxthreads.old -headers_clean-y += HEADERCLEAN_libpthread/linuxthreads.old -HEADERCLEAN_libpthread/linuxthreads.old: - $(do_rm) $(linuxthreads_headers) - -CLEAN_libpthread/linuxthreads.old: - $(do_rm) $(addprefix $(libpthread_OUT)/*., o os oS a) diff --git a/libpthread/linuxthreads.old/attr.c b/libpthread/linuxthreads.old/attr.c deleted file mode 100644 index 8465c234c..000000000 --- a/libpthread/linuxthreads.old/attr.c +++ /dev/null @@ -1,240 +0,0 @@ -/* Linuxthreads - a simple clone()-based implementation of Posix */ -/* threads for Linux. */ -/* Copyright (C) 1996 Xavier Leroy (Xavier.Leroy@inria.fr) */ -/* */ -/* This program is free software; you can redistribute it and/or */ -/* modify it under the terms of the GNU Library General Public License */ -/* as published by the Free Software Foundation; either version 2 */ -/* of the License, or (at your option) any later version. */ -/* */ -/* This program is distributed in the hope that it will be useful, */ -/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ -/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ -/* GNU Library General Public License for more details. */ - -/* changed for uClibc */ -#define __sched_get_priority_min sched_get_priority_min -#define __sched_get_priority_max sched_get_priority_max - -/* Handling of thread attributes */ - -#include -#include -#include -#include -#include "pthread.h" -#include "internals.h" - -libpthread_hidden_proto(pthread_attr_destroy) -libpthread_hidden_proto(pthread_attr_init) -libpthread_hidden_proto(pthread_attr_getdetachstate) -libpthread_hidden_proto(pthread_attr_setdetachstate) -libpthread_hidden_proto(pthread_attr_getinheritsched) -libpthread_hidden_proto(pthread_attr_setinheritsched) -libpthread_hidden_proto(pthread_attr_setschedparam) -libpthread_hidden_proto(pthread_attr_getschedparam) -libpthread_hidden_proto(pthread_attr_getschedpolicy) -libpthread_hidden_proto(pthread_attr_setschedpolicy) -libpthread_hidden_proto(pthread_attr_getscope) -libpthread_hidden_proto(pthread_attr_setscope) - -/* NOTE: With uClibc I don't think we need this versioning stuff. - * Therefore, define the function pthread_attr_init() here using - * a strong symbol. */ - -/*int __pthread_attr_init_2_1(pthread_attr_t *attr)*/ -int pthread_attr_init(pthread_attr_t *attr) -{ - size_t ps = getpagesize (); - - attr->__detachstate = PTHREAD_CREATE_JOINABLE; - attr->__schedpolicy = SCHED_OTHER; - attr->__schedparam.sched_priority = 0; - attr->__inheritsched = PTHREAD_EXPLICIT_SCHED; - attr->__scope = PTHREAD_SCOPE_SYSTEM; - attr->__guardsize = ps; - attr->__stackaddr = NULL; - attr->__stackaddr_set = 0; - attr->__stacksize = STACK_SIZE - ps; - return 0; -} -libpthread_hidden_def(pthread_attr_init) - -/* uClibc: leave out this for now. */ -#if defined DO_PTHREAD_VERSIONING_WITH_UCLIBC -#if defined __PIC__ && defined DO_VERSIONING -default_symbol_version (__pthread_attr_init_2_1, pthread_attr_init, GLIBC_2.1); - -int __pthread_attr_init_2_0(pthread_attr_t *attr) -{ - attr->__detachstate = PTHREAD_CREATE_JOINABLE; - attr->__schedpolicy = SCHED_OTHER; - attr->__schedparam.sched_priority = 0; - attr->__inheritsched = PTHREAD_EXPLICIT_SCHED; - attr->__scope = PTHREAD_SCOPE_SYSTEM; - return 0; -} -symbol_version (__pthread_attr_init_2_0, pthread_attr_init, GLIBC_2.0); -#else -strong_alias (__pthread_attr_init_2_1, pthread_attr_init) -#endif -#endif /* DO_PTHREAD_VERSIONING_WITH_UCLIBC */ - -int pthread_attr_destroy(pthread_attr_t *attr attribute_unused) -{ - return 0; -} -libpthread_hidden_def(pthread_attr_destroy) - - -int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate) -{ - if (detachstate < PTHREAD_CREATE_JOINABLE || - detachstate > PTHREAD_CREATE_DETACHED) - return EINVAL; - attr->__detachstate = detachstate; - return 0; -} -libpthread_hidden_def(pthread_attr_setdetachstate) - -int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) -{ - *detachstate = attr->__detachstate; - return 0; -} -libpthread_hidden_def(pthread_attr_getdetachstate) - -int pthread_attr_setschedparam(pthread_attr_t *attr, - const struct sched_param *param) -{ - int max_prio = __sched_get_priority_max(attr->__schedpolicy); - int min_prio = __sched_get_priority_min(attr->__schedpolicy); - - if (param->sched_priority < min_prio || param->sched_priority > max_prio) - return EINVAL; - memcpy (&attr->__schedparam, param, sizeof (struct sched_param)); - return 0; -} -libpthread_hidden_def(pthread_attr_setschedparam) - -int pthread_attr_getschedparam(const pthread_attr_t *attr, - struct sched_param *param) -{ - memcpy (param, &attr->__schedparam, sizeof (struct sched_param)); - return 0; -} -libpthread_hidden_def(pthread_attr_getschedparam) - -int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) -{ - if (policy != SCHED_OTHER && policy != SCHED_FIFO && policy != SCHED_RR) - return EINVAL; - attr->__schedpolicy = policy; - return 0; -} -libpthread_hidden_def(pthread_attr_setschedpolicy) - -int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy) -{ - *policy = attr->__schedpolicy; - return 0; -} -libpthread_hidden_def(pthread_attr_getschedpolicy) - -int pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit) -{ - if (inherit != PTHREAD_INHERIT_SCHED && inherit != PTHREAD_EXPLICIT_SCHED) - return EINVAL; - attr->__inheritsched = inherit; - return 0; -} -libpthread_hidden_def(pthread_attr_setinheritsched) - -int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit) -{ - *inherit = attr->__inheritsched; - return 0; -} -libpthread_hidden_def(pthread_attr_getinheritsched) - -int pthread_attr_setscope(pthread_attr_t *attr, int scope) -{ - switch (scope) { - case PTHREAD_SCOPE_SYSTEM: - attr->__scope = scope; - return 0; - case PTHREAD_SCOPE_PROCESS: - return ENOTSUP; - default: - return EINVAL; - } -} -libpthread_hidden_def(pthread_attr_setscope) - -int pthread_attr_getscope(const pthread_attr_t *attr, int *scope) -{ - *scope = attr->__scope; - return 0; -} -libpthread_hidden_def(pthread_attr_getscope) - -int __pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize) -{ - size_t ps = getpagesize (); - - /* First round up the guard size. */ - guardsize = roundup (guardsize, ps); - - /* The guard size must not be larger than the stack itself */ - if (guardsize >= attr->__stacksize) return EINVAL; - - attr->__guardsize = guardsize; - - return 0; -} -weak_alias (__pthread_attr_setguardsize, pthread_attr_setguardsize) - -int __pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize) -{ - *guardsize = attr->__guardsize; - return 0; -} -weak_alias (__pthread_attr_getguardsize, pthread_attr_getguardsize) - -#if 0 /* uClibc: deprecated stuff disabled */ -int __pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr) -{ - attr->__stackaddr = stackaddr; - attr->__stackaddr_set = 1; - return 0; -} -weak_alias (__pthread_attr_setstackaddr, pthread_attr_setstackaddr) - -int __pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr) -{ - /* XXX This function has a stupid definition. The standard specifies - no error value but what is if no stack address was set? We simply - return the value we have in the member. */ - *stackaddr = attr->__stackaddr; - return 0; -} -weak_alias (__pthread_attr_getstackaddr, pthread_attr_getstackaddr) -#endif - -int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize) -{ - /* We don't accept value smaller than PTHREAD_STACK_MIN. */ - if (stacksize < PTHREAD_STACK_MIN) - return EINVAL; - - attr->__stacksize = stacksize; - return 0; -} -weak_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize) - -int __pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize) -{ - *stacksize = attr->__stacksize; - return 0; -} -weak_alias (__pthread_attr_getstacksize, pthread_attr_getstacksize) diff --git a/libpthread/linuxthreads.old/cancel.c b/libpthread/linuxthreads.old/cancel.c deleted file mode 100644 index 392d1d586..000000000 --- a/libpthread/linuxthreads.old/cancel.c +++ /dev/null @@ -1,219 +0,0 @@ -/* Linuxthreads - a simple clone()-based implementation of Posix */ -/* threads for Linux. */ -/* Copyright (C) 1996 Xavier Leroy (Xavier.Leroy@inria.fr) */ -/* */ -/* This program is free software; you can redistribute it and/or */ -/* modify it under the terms of the GNU Library General Public License */ -/* as published by the Free Software Foundation; either version 2 */ -/* of the License, or (at your option) any later version. */ -/* */ -/* This program is distributed in the hope that it will be useful, */ -/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ -/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ -/* GNU Library General Public License for more details. */ - -/* Thread cancellation */ - -#include -#include "pthread.h" -#include "internals.h" -#include "spinlock.h" -#include "restart.h" -#ifdef __UCLIBC_HAS_RPC__ -#include -extern void __rpc_thread_destroy(void); -#endif -#include - -#include - -#ifdef _STACK_GROWS_DOWN -# define FRAME_LEFT(frame, other) ((char *) frame >= (char *) other) -#elif defined _STACK_GROWS_UP -# define FRAME_LEFT(frame, other) ((char *) frame <= (char *) other) -#else -# error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP" -#endif - -libpthread_hidden_proto(pthread_setcancelstate) -libpthread_hidden_proto(pthread_setcanceltype) - -int pthread_setcancelstate(int state, int * oldstate) -{ - pthread_descr self = thread_self(); - if (state < PTHREAD_CANCEL_ENABLE || state > PTHREAD_CANCEL_DISABLE) - return EINVAL; - if (oldstate != NULL) *oldstate = THREAD_GETMEM(self, p_cancelstate); - THREAD_SETMEM(self, p_cancelstate, state); - if (THREAD_GETMEM(self, p_canceled) && - THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE && - THREAD_GETMEM(self, p_canceltype) == PTHREAD_CANCEL_ASYNCHRONOUS) - __pthread_do_exit(PTHREAD_CANCELED, CURRENT_STACK_FRAME); - return 0; -} -libpthread_hidden_def(pthread_setcancelstate) - -int pthread_setcanceltype(int type, int * oldtype) -{ - pthread_descr self = thread_self(); - if (type < PTHREAD_CANCEL_DEFERRED || type > PTHREAD_CANCEL_ASYNCHRONOUS) - return EINVAL; - if (oldtype != NULL) *oldtype = THREAD_GETMEM(self, p_canceltype); - THREAD_SETMEM(self, p_canceltype, type); - if (THREAD_GETMEM(self, p_canceled) && - THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE && - THREAD_GETMEM(self, p_canceltype) == PTHREAD_CANCEL_ASYNCHRONOUS) - __pthread_do_exit(PTHREAD_CANCELED, CURRENT_STACK_FRAME); - return 0; -} -libpthread_hidden_def(pthread_setcanceltype) - -int pthread_cancel(pthread_t thread) -{ - pthread_handle handle = thread_handle(thread); - int pid; - int dorestart = 0; - pthread_descr th; - pthread_extricate_if *pextricate; - int already_canceled; - - __pthread_lock(&handle->h_lock, NULL); - if (invalid_handle(handle, thread)) { - __pthread_unlock(&handle->h_lock); - return ESRCH; - } - - th = handle->h_descr; - - already_canceled = th->p_canceled; - th->p_canceled = 1; - - if (th->p_cancelstate == PTHREAD_CANCEL_DISABLE || already_canceled) { - __pthread_unlock(&handle->h_lock); - return 0; - } - - pextricate = th->p_extricate; - pid = th->p_pid; - - /* If the thread has registered an extrication interface, then - invoke the interface. If it returns 1, then we succeeded in - dequeuing the thread from whatever waiting object it was enqueued - with. In that case, it is our responsibility to wake it up. - And also to set the p_woken_by_cancel flag so the woken thread - can tell that it was woken by cancellation. */ - - if (pextricate != NULL) { - dorestart = pextricate->pu_extricate_func(pextricate->pu_object, th); - th->p_woken_by_cancel = dorestart; - } - - __pthread_unlock(&handle->h_lock); - - /* If the thread has suspended or is about to, then we unblock it by - issuing a restart, instead of a cancel signal. Otherwise we send - the cancel signal to unblock the thread from a cancellation point, - or to initiate asynchronous cancellation. The restart is needed so - we have proper accounting of restarts; suspend decrements the thread's - resume count, and restart() increments it. This also means that suspend's - handling of the cancel signal is obsolete. */ - - if (dorestart) - restart(th); - else - kill(pid, __pthread_sig_cancel); - - return 0; -} - -void pthread_testcancel(void) -{ - pthread_descr self = thread_self(); - if (THREAD_GETMEM(self, p_canceled) - && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE) - __pthread_do_exit(PTHREAD_CANCELED, CURRENT_STACK_FRAME); -} - -void _pthread_cleanup_push(struct _pthread_cleanup_buffer * buffer, - void (*routine)(void *), void * arg) -{ - pthread_descr self = thread_self(); - buffer->__routine = routine; - buffer->__arg = arg; - buffer->__prev = THREAD_GETMEM(self, p_cleanup); - if (buffer->__prev != NULL && FRAME_LEFT (buffer, buffer->__prev)) - buffer->__prev = NULL; - THREAD_SETMEM(self, p_cleanup, buffer); -} - -void _pthread_cleanup_pop(struct _pthread_cleanup_buffer * buffer, - int execute) -{ - pthread_descr self = thread_self(); - if (execute) buffer->__routine(buffer->__arg); - THREAD_SETMEM(self, p_cleanup, buffer->__prev); -} - -void _pthread_cleanup_push_defer(struct _pthread_cleanup_buffer * buffer, - void (*routine)(void *), void * arg) -{ - pthread_descr self = thread_self(); - buffer->__routine = routine; - buffer->__arg = arg; - buffer->__canceltype = THREAD_GETMEM(self, p_canceltype); - buffer->__prev = THREAD_GETMEM(self, p_cleanup); - if (buffer->__prev != NULL && FRAME_LEFT (buffer, buffer->__prev)) - buffer->__prev = NULL; - THREAD_SETMEM(self, p_canceltype, PTHREAD_CANCEL_DEFERRED); - THREAD_SETMEM(self, p_cleanup, buffer); -} -strong_alias(_pthread_cleanup_push_defer,__pthread_cleanup_push_defer) - -void _pthread_cleanup_pop_restore(struct _pthread_cleanup_buffer * buffer, - int execute) -{ - pthread_descr self = thread_self(); - if (execute) buffer->__routine(buffer->__arg); - THREAD_SETMEM(self, p_cleanup, buffer->__prev); - THREAD_SETMEM(self, p_canceltype, buffer->__canceltype); - if (THREAD_GETMEM(self, p_canceled) && - THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE && - THREAD_GETMEM(self, p_canceltype) == PTHREAD_CANCEL_ASYNCHRONOUS) - __pthread_do_exit(PTHREAD_CANCELED, CURRENT_STACK_FRAME); -} -strong_alias(_pthread_cleanup_pop_restore,__pthread_cleanup_pop_restore) - - -void __pthread_perform_cleanup(char *currentframe) -{ - pthread_descr self = thread_self(); - struct _pthread_cleanup_buffer * c; - - for (c = THREAD_GETMEM(self, p_cleanup); c != NULL; c = c->__prev) - { -#ifdef _STACK_GROWS_DOWN - if ((char *) c <= currentframe) - break; -#elif defined _STACK_GROWS_UP - if ((char *) c >= currentframe) - break; -#else -# error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP" -#endif - c->__routine(c->__arg); - } - -#ifdef __UCLIBC_HAS_RPC__ - /* And the TSD which needs special help. */ - if (THREAD_GETMEM(self, p_libc_specific[_LIBC_TSD_KEY_RPC_VARS]) != NULL) - __rpc_thread_destroy (); -#endif -} - -#ifndef __PIC__ -/* We need a hook to force the cancellation wrappers to be linked in when - static libpthread is used. */ -extern const char __pthread_provide_wrappers; -static const char *const __pthread_require_wrappers = - &__pthread_provide_wrappers; -#endif diff --git a/libpthread/linuxthreads.old/condvar.c b/libpthread/linuxthreads.old/condvar.c deleted file mode 100644 index 35daacf15..000000000 --- a/libpthread/linuxthreads.old/condvar.c +++ /dev/null @@ -1,304 +0,0 @@ -/* Linuxthreads - a simple clone()-based implementation of Posix */ -/* threads for Linux. */ -/* Copyright (C) 1996 Xavier Leroy (Xavier.Leroy@inria.fr) */ -/* and Pavel Krauz (krauz@fsid.cvut.cz). */ -/* */ -/* This program is free software; you can redistribute it and/or */ -/* modify it under the terms of the GNU Library General Public License */ -/* as published by the Free Software Foundation; either version 2 */ -/* of the License, or (at your option) any later version. */ -/* */ -/* This program is distributed in the hope that it will be useful, */ -/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ -/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ -/* GNU Library General Public License for more details. */ - -/* Condition variables */ - -#include -#include -#include -#include -#include "pthread.h" -#include "internals.h" -#include "spinlock.h" -#include "queue.h" -#include "restart.h" - -int pthread_cond_init(pthread_cond_t *cond, - const pthread_condattr_t *cond_attr attribute_unused) -{ - __pthread_init_lock(&cond->__c_lock); - cond->__c_waiting = NULL; - return 0; -} -libpthread_hidden_def(pthread_cond_init) - -int pthread_cond_destroy(pthread_cond_t *cond) -{ - if (cond->__c_waiting != NULL) return EBUSY; - return 0; -} -libpthread_hidden_def(pthread_cond_destroy) - -/* Function called by pthread_cancel to remove the thread from - waiting on a condition variable queue. */ - -static int cond_extricate_func(void *obj, pthread_descr th) -{ - volatile pthread_descr self = thread_self(); - pthread_cond_t *cond = obj; - int did_remove = 0; - - __pthread_lock(&cond->__c_lock, self); - did_remove = remove_from_queue(&cond->__c_waiting, th); - __pthread_unlock(&cond->__c_lock); - - return did_remove; -} - -int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) -{ - volatile pthread_descr self = thread_self(); - pthread_extricate_if extr; - int already_canceled = 0; - int spurious_wakeup_count; - - /* Check whether the mutex is locked and owned by this thread. */ - if (mutex->__m_kind != PTHREAD_MUTEX_TIMED_NP - && mutex->__m_kind != PTHREAD_MUTEX_ADAPTIVE_NP - && mutex->__m_owner != self) - return EINVAL; - - /* Set up extrication interface */ - extr.pu_object = cond; - extr.pu_extricate_func = cond_extricate_func; - - /* Register extrication interface */ - THREAD_SETMEM(self, p_condvar_avail, 0); - __pthread_set_own_extricate_if(self, &extr); - - /* Atomically enqueue thread for waiting, but only if it is not - canceled. If the thread is canceled, then it will fall through the - suspend call below, and then call pthread_exit without - having to worry about whether it is still on the condition variable queue. - This depends on pthread_cancel setting p_canceled before calling the - extricate function. */ - - __pthread_lock(&cond->__c_lock, self); - if (!(THREAD_GETMEM(self, p_canceled) - && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE)) - enqueue(&cond->__c_waiting, self); - else - already_canceled = 1; - __pthread_unlock(&cond->__c_lock); - - if (already_canceled) { - __