From cccc549ced940c85039c8ce263c8bb571f244afd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Jan 2006 05:05:15 +0000 Subject: initial import of latest linuxthreads --- libpthread/linuxthreads/sysdeps/CVS/Entries | 14 + libpthread/linuxthreads/sysdeps/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/alpha/CVS/Entries | 4 + .../linuxthreads/sysdeps/alpha/CVS/Entries.Log | 2 + .../linuxthreads/sysdeps/alpha/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/alpha/CVS/Root | 1 + .../linuxthreads/sysdeps/alpha/elf/CVS/Entries | 2 + .../linuxthreads/sysdeps/alpha/elf/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Root | 1 + .../linuxthreads/sysdeps/alpha/elf/pt-initfini.c | 90 +++ libpthread/linuxthreads/sysdeps/alpha/pspinlock.c | 110 ++++ libpthread/linuxthreads/sysdeps/alpha/pt-machine.h | 128 ++++ libpthread/linuxthreads/sysdeps/alpha/tls.h | 134 ++++ libpthread/linuxthreads/sysdeps/arm/CVS/Entries | 4 + libpthread/linuxthreads/sysdeps/arm/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/arm/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/arm/pspinlock.c | 82 +++ libpthread/linuxthreads/sysdeps/arm/pt-machine.h | 55 ++ libpthread/linuxthreads/sysdeps/arm/tls.h | 172 +++++ libpthread/linuxthreads/sysdeps/cris/CVS/Entries | 3 + .../linuxthreads/sysdeps/cris/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/cris/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/cris/pspinlock.c | 72 +++ libpthread/linuxthreads/sysdeps/cris/pt-machine.h | 58 ++ libpthread/linuxthreads/sysdeps/hppa/CVS/Entries | 3 + .../linuxthreads/sysdeps/hppa/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/hppa/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/hppa/pspinlock.c | 81 +++ libpthread/linuxthreads/sysdeps/hppa/pt-machine.h | 62 ++ libpthread/linuxthreads/sysdeps/i386/CVS/Entries | 8 + .../linuxthreads/sysdeps/i386/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/i386/CVS/Root | 1 + .../linuxthreads/sysdeps/i386/i586/CVS/Entries | 2 + .../linuxthreads/sysdeps/i386/i586/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/i386/i586/CVS/Root | 1 + .../linuxthreads/sysdeps/i386/i686/CVS/Entries | 3 + .../linuxthreads/sysdeps/i386/i686/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/i386/i686/CVS/Root | 1 + .../linuxthreads/sysdeps/i386/i686/pt-machine.h | 79 +++ libpthread/linuxthreads/sysdeps/i386/pspinlock.c | 103 +++ libpthread/linuxthreads/sysdeps/i386/pt-machine.h | 115 ++++ .../linuxthreads/sysdeps/i386/tcb-offsets.sym | 7 + libpthread/linuxthreads/sysdeps/i386/tls.h | 229 +++++++ libpthread/linuxthreads/sysdeps/i386/useldt.h | 314 ++++++++++ libpthread/linuxthreads/sysdeps/ia64/CVS/Entries | 7 + .../linuxthreads/sysdeps/ia64/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/ia64/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/ia64/pspinlock.c | 79 +++ libpthread/linuxthreads/sysdeps/ia64/pt-machine.h | 133 ++++ .../linuxthreads/sysdeps/ia64/tcb-offsets.sym | 9 + libpthread/linuxthreads/sysdeps/ia64/tls.h | 145 +++++ libpthread/linuxthreads/sysdeps/m68k/CVS/Entries | 3 + .../linuxthreads/sysdeps/m68k/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/m68k/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/m68k/pspinlock.c | 82 +++ libpthread/linuxthreads/sysdeps/m68k/pt-machine.h | 69 +++ libpthread/linuxthreads/sysdeps/mips/CVS/Entries | 4 + .../linuxthreads/sysdeps/mips/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/mips/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/mips/pspinlock.c | 98 +++ libpthread/linuxthreads/sysdeps/mips/pt-machine.h | 92 +++ libpthread/linuxthreads/sysdeps/mips/tls.h | 170 +++++ .../linuxthreads/sysdeps/powerpc/CVS/Entries | 5 + .../linuxthreads/sysdeps/powerpc/CVS/Entries.Log | 2 + .../linuxthreads/sysdeps/powerpc/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/powerpc/CVS/Root | 1 + .../sysdeps/powerpc/powerpc32/CVS/Entries | 3 + .../sysdeps/powerpc/powerpc32/CVS/Repository | 1 + .../sysdeps/powerpc/powerpc32/CVS/Root | 1 + .../sysdeps/powerpc/powerpc32/pspinlock.c | 70 +++ .../sysdeps/powerpc/powerpc32/pt-machine.h | 120 ++++ .../sysdeps/powerpc/powerpc64/CVS/Entries | 3 + .../sysdeps/powerpc/powerpc64/CVS/Repository | 1 + .../sysdeps/powerpc/powerpc64/CVS/Root | 1 + .../sysdeps/powerpc/powerpc64/pspinlock.c | 70 +++ .../sysdeps/powerpc/powerpc64/pt-machine.h | 185 ++++++ .../linuxthreads/sysdeps/powerpc/pspinlock.c | 8 + .../linuxthreads/sysdeps/powerpc/pt-machine.h | 8 + .../linuxthreads/sysdeps/powerpc/tcb-offsets.sym | 19 + libpthread/linuxthreads/sysdeps/powerpc/tls.h | 165 +++++ libpthread/linuxthreads/sysdeps/pthread/.cvsignore | 2 + .../linuxthreads/sysdeps/pthread/CVS/Entries | 27 + .../linuxthreads/sysdeps/pthread/CVS/Entries.Log | 4 + .../linuxthreads/sysdeps/pthread/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/pthread/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/pthread/Subdirs | 1 + .../linuxthreads/sysdeps/pthread/bits/CVS/Entries | 6 + .../sysdeps/pthread/bits/CVS/Repository | 1 + .../linuxthreads/sysdeps/pthread/bits/CVS/Root | 1 + .../linuxthreads/sysdeps/pthread/bits/initspin.h | 28 + .../linuxthreads/sysdeps/pthread/bits/libc-lock.h | 409 ++++++++++++ .../linuxthreads/sysdeps/pthread/bits/libc-tsd.h | 59 ++ .../sysdeps/pthread/bits/pthreadtypes.h | 152 +++++ .../linuxthreads/sysdeps/pthread/bits/typesizes.h | 66 ++ .../linuxthreads/sysdeps/pthread/errno-loc.c | 45 ++ .../linuxthreads/sysdeps/pthread/flockfile.c | 33 + .../linuxthreads/sysdeps/pthread/ftrylockfile.c | 33 + .../linuxthreads/sysdeps/pthread/funlockfile.c | 33 + .../linuxthreads/sysdeps/pthread/getcpuclockid.c | 117 ++++ .../linuxthreads/sysdeps/pthread/herrno-loc.c | 43 ++ .../linuxthreads/sysdeps/pthread/kernel-features.h | 72 +++ libpthread/linuxthreads/sysdeps/pthread/list.h | 114 ++++ .../linuxthreads/sysdeps/pthread/malloc-machine.h | 67 ++ .../linuxthreads/sysdeps/pthread/not-cancel.h | 62 ++ .../linuxthreads/sysdeps/pthread/posix-timer.h | 204 ++++++ .../linuxthreads/sysdeps/pthread/pt-initfini.c | 124 ++++ .../sysdeps/pthread/pthread-functions.h | 95 +++ libpthread/linuxthreads/sysdeps/pthread/pthread.h | 689 +++++++++++++++++++++ .../linuxthreads/sysdeps/pthread/ptlongjmp.c | 39 ++ .../linuxthreads/sysdeps/pthread/res-state.c | 47 ++ .../linuxthreads/sysdeps/pthread/semaphore.h | 1 + .../linuxthreads/sysdeps/pthread/sigaction.c | 55 ++ .../linuxthreads/sysdeps/pthread/tcb-offsets.h | 1 + .../linuxthreads/sysdeps/pthread/timer_create.c | 170 +++++ .../linuxthreads/sysdeps/pthread/timer_delete.c | 70 +++ .../linuxthreads/sysdeps/pthread/timer_getoverr.c | 45 ++ .../linuxthreads/sysdeps/pthread/timer_gettime.c | 77 +++ .../linuxthreads/sysdeps/pthread/timer_routines.c | 573 +++++++++++++++++ .../linuxthreads/sysdeps/pthread/timer_settime.c | 137 ++++ .../linuxthreads/sysdeps/pthread/tst-timer.c | 114 ++++ .../linuxthreads/sysdeps/pthread/uClibc-glue.h | 50 ++ libpthread/linuxthreads/sysdeps/s390/CVS/Entries | 6 + .../linuxthreads/sysdeps/s390/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/s390/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/s390/pspinlock.c | 91 +++ .../linuxthreads/sysdeps/s390/s390-32/CVS/Entries | 2 + .../sysdeps/s390/s390-32/CVS/Repository | 1 + .../linuxthreads/sysdeps/s390/s390-32/CVS/Root | 1 + .../linuxthreads/sysdeps/s390/s390-32/pt-machine.h | 120 ++++ .../linuxthreads/sysdeps/s390/s390-64/CVS/Entries | 2 + .../sysdeps/s390/s390-64/CVS/Repository | 1 + .../linuxthreads/sysdeps/s390/s390-64/CVS/Root | 1 + .../linuxthreads/sysdeps/s390/s390-64/pt-machine.h | 125 ++++ .../linuxthreads/sysdeps/s390/tcb-offsets.sym | 4 + libpthread/linuxthreads/sysdeps/s390/tls.h | 145 +++++ libpthread/linuxthreads/sysdeps/sh/CVS/Entries | 6 + libpthread/linuxthreads/sysdeps/sh/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/sh/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/sh/pspinlock.c | 80 +++ libpthread/linuxthreads/sysdeps/sh/pt-machine.h | 81 +++ libpthread/linuxthreads/sysdeps/sh/tcb-offsets.sym | 10 + libpthread/linuxthreads/sysdeps/sh/tls.h | 159 +++++ libpthread/linuxthreads/sysdeps/sparc/CVS/Entries | 5 + .../linuxthreads/sysdeps/sparc/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/sparc/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/sparc/pspinlock.c | 14 + libpthread/linuxthreads/sysdeps/sparc/pt-machine.h | 8 + .../linuxthreads/sysdeps/sparc/sparc32/CVS/Entries | 3 + .../sysdeps/sparc/sparc32/CVS/Repository | 1 + .../linuxthreads/sysdeps/sparc/sparc32/CVS/Root | 1 + .../linuxthreads/sysdeps/sparc/sparc32/pspinlock.c | 88 +++ .../sysdeps/sparc/sparc32/pt-machine.h | 83 +++ .../sysdeps/sparc/sparc32/sparcv9/CVS/Entries | 3 + .../sysdeps/sparc/sparc32/sparcv9/CVS/Repository | 1 + .../sysdeps/sparc/sparc32/sparcv9/CVS/Root | 1 + .../sysdeps/sparc/sparc32/sparcv9/pspinlock.c | 94 +++ .../linuxthreads/sysdeps/sparc/sparc64/CVS/Entries | 4 + .../sysdeps/sparc/sparc64/CVS/Repository | 1 + .../linuxthreads/sysdeps/sparc/sparc64/CVS/Root | 1 + .../linuxthreads/sysdeps/sparc/sparc64/pspinlock.c | 93 +++ .../sysdeps/sparc/sparc64/pt-machine.h | 105 ++++ .../linuxthreads/sysdeps/sparc/tcb-offsets.sym | 4 + libpthread/linuxthreads/sysdeps/sparc/tls.h | 115 ++++ libpthread/linuxthreads/sysdeps/unix/CVS/Entries | 1 + .../linuxthreads/sysdeps/unix/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/unix/CVS/Root | 1 + .../linuxthreads/sysdeps/unix/sysv/CVS/Entries | 1 + .../linuxthreads/sysdeps/unix/sysv/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/unix/sysv/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/.cvsignore | 2 + .../sysdeps/unix/sysv/linux/CVS/Entries | 28 + .../sysdeps/unix/sysv/linux/CVS/Entries.Log | 2 + .../sysdeps/unix/sysv/linux/CVS/Repository | 1 + .../linuxthreads/sysdeps/unix/sysv/linux/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/allocalim.h | 26 + .../sysdeps/unix/sysv/linux/allocrtsig.c | 87 +++ .../sysdeps/unix/sysv/linux/alpha/CVS/Entries | 7 + .../sysdeps/unix/sysv/linux/alpha/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/alpha/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/alpha/aio_cancel.c | 33 + .../sysdeps/unix/sysv/linux/alpha/bits/CVS/Entries | 3 + .../unix/sysv/linux/alpha/bits/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/alpha/bits/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/alpha/bits/local_lim.h | 92 +++ .../sysdeps/unix/sysv/linux/alpha/bits/typesizes.h | 66 ++ .../sysdeps/unix/sysv/linux/alpha/pt-sigsuspend.S | 28 + .../sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h | 146 +++++ .../sysdeps/unix/sysv/linux/alpha/vfork.S | 70 +++ .../sysdeps/unix/sysv/linux/bits/CVS/Entries | 4 + .../sysdeps/unix/sysv/linux/bits/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/bits/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/bits/local_lim.h | 92 +++ .../sysdeps/unix/sysv/linux/bits/posix_opt.h | 181 ++++++ .../sysdeps/unix/sysv/linux/bits/sigthread.h | 38 ++ .../linuxthreads/sysdeps/unix/sysv/linux/execve.c | 73 +++ .../linuxthreads/sysdeps/unix/sysv/linux/fork.c | 30 + .../linuxthreads/sysdeps/unix/sysv/linux/fork.h | 59 ++ .../sysdeps/unix/sysv/linux/hppa/CVS/Entries | 5 + .../sysdeps/unix/sysv/linux/hppa/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/hppa/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/hppa/aio_cancel.c | 33 + .../sysdeps/unix/sysv/linux/hppa/bits/CVS/Entries | 2 + .../unix/sysv/linux/hppa/bits/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/hppa/bits/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/hppa/bits/initspin.h | 27 + .../sysdeps/unix/sysv/linux/hppa/malloc-machine.h | 73 +++ .../sysdeps/unix/sysv/linux/hppa/pt-initfini.c | 109 ++++ .../sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h | 189 ++++++ .../sysdeps/unix/sysv/linux/i386/CVS/Entries | 4 + .../sysdeps/unix/sysv/linux/i386/CVS/Entries.Log | 2 + .../sysdeps/unix/sysv/linux/i386/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/i386/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/i386/sysdep-cancel.h | 188 ++++++ .../sysdeps/unix/sysv/linux/i386/vfork.S | 95 +++ .../sysdeps/unix/sysv/linux/ia64/CVS/Entries | 9 + .../sysdeps/unix/sysv/linux/ia64/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/ia64/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/ia64/bits/CVS/Entries | 2 + .../unix/sysv/linux/ia64/bits/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/ia64/bits/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/ia64/bits/local_lim.h | 92 +++ .../sysdeps/unix/sysv/linux/ia64/fork.h | 25 + .../sysdeps/unix/sysv/linux/ia64/pt-initfini.c | 142 +++++ .../sysdeps/unix/sysv/linux/ia64/pt-sigsuspend.c | 33 + .../sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h | 144 +++++ .../sysdeps/unix/sysv/linux/ia64/vfork.S | 54 ++ .../sysdeps/unix/sysv/linux/jmp-unwind.c | 34 + .../sysdeps/unix/sysv/linux/m68k/CVS/Entries | 3 + .../sysdeps/unix/sysv/linux/m68k/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/m68k/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h | 129 ++++ .../sysdeps/unix/sysv/linux/m68k/vfork.S | 84 +++ .../sysdeps/unix/sysv/linux/mips/CVS/Entries | 4 + .../sysdeps/unix/sysv/linux/mips/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/mips/CVS/Root | 1 + .../unix/sysv/linux/mips/mips64/CVS/Entries | 2 + .../unix/sysv/linux/mips/mips64/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/mips/mips64/CVS/Root | 1 + .../unix/sysv/linux/mips/mips64/sysdep-cancel.h | 144 +++++ .../sysdeps/unix/sysv/linux/mips/sysdep-cancel.h | 143 +++++ .../sysdeps/unix/sysv/linux/mips/vfork.S | 104 ++++ .../sysdeps/unix/sysv/linux/mq_notify.c | 287 +++++++++ .../sysdeps/unix/sysv/linux/powerpc/CVS/Entries | 5 + .../sysdeps/unix/sysv/linux/powerpc/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/powerpc/CVS/Root | 1 + .../unix/sysv/linux/powerpc/powerpc32/CVS/Entries | 3 + .../sysv/linux/powerpc/powerpc32/CVS/Repository | 1 + .../unix/sysv/linux/powerpc/powerpc32/CVS/Root | 1 + .../sysv/linux/powerpc/powerpc32/sysdep-cancel.h | 159 +++++ .../unix/sysv/linux/powerpc/powerpc32/vfork.S | 86 +++ .../unix/sysv/linux/powerpc/powerpc64/CVS/Entries | 3 + .../sysv/linux/powerpc/powerpc64/CVS/Repository | 1 + .../unix/sysv/linux/powerpc/powerpc64/CVS/Root | 1 + .../sysv/linux/powerpc/powerpc64/sysdep-cancel.h | 127 ++++ .../unix/sysv/linux/powerpc/powerpc64/vfork.S | 91 +++ .../sysdeps/unix/sysv/linux/powerpc/ptlongjmp.c | 70 +++ .../sysdeps/unix/sysv/linux/pt-sigsuspend.c | 34 + .../linuxthreads/sysdeps/unix/sysv/linux/raise.c | 43 ++ .../sysdeps/unix/sysv/linux/register-atfork.c | 87 +++ .../sysdeps/unix/sysv/linux/s390/CVS/Entries | 3 + .../sysdeps/unix/sysv/linux/s390/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/s390/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/s390/bits/CVS/Entries | 2 + .../unix/sysv/linux/s390/bits/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/s390/bits/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/s390/bits/typesizes.h | 72 +++ .../unix/sysv/linux/s390/s390-32/CVS/Entries | 4 + .../unix/sysv/linux/s390/s390-32/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/s390/s390-32/CVS/Root | 1 + .../unix/sysv/linux/s390/s390-32/pt-initfini.c | 154 +++++ .../unix/sysv/linux/s390/s390-32/sysdep-cancel.h | 137 ++++ .../sysdeps/unix/sysv/linux/s390/s390-32/vfork.S | 69 +++ .../unix/sysv/linux/s390/s390-64/CVS/Entries | 5 + .../unix/sysv/linux/s390/s390-64/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/s390/s390-64/CVS/Root | 1 + .../unix/sysv/linux/s390/s390-64/pt-initfini.c | 137 ++++ .../unix/sysv/linux/s390/s390-64/pt-sigsuspend.c | 1 + .../unix/sysv/linux/s390/s390-64/sysdep-cancel.h | 116 ++++ .../sysdeps/unix/sysv/linux/s390/s390-64/vfork.S | 54 ++ .../sysdeps/unix/sysv/linux/sh/CVS/Entries | 5 + .../sysdeps/unix/sysv/linux/sh/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/sh/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/sh/pt-initfini.c | 143 +++++ .../linuxthreads/sysdeps/unix/sysv/linux/sh/smp.h | 24 + .../sysdeps/unix/sysv/linux/sh/sysdep-cancel.h | 227 +++++++ .../sysdeps/unix/sysv/linux/sh/vfork.S | 77 +++ .../linuxthreads/sysdeps/unix/sysv/linux/sigwait.c | 88 +++ .../linuxthreads/sysdeps/unix/sysv/linux/smp.h | 48 ++ .../sysdeps/unix/sysv/linux/sparc/CVS/Entries | 6 + .../sysdeps/unix/sysv/linux/sparc/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/sparc/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/sparc/aio_cancel.c | 33 + .../sysdeps/unix/sysv/linux/sparc/bits/CVS/Entries | 3 + .../unix/sysv/linux/sparc/bits/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/sparc/bits/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/sparc/bits/local_lim.h | 92 +++ .../sysdeps/unix/sysv/linux/sparc/bits/typesizes.h | 66 ++ .../sysdeps/unix/sysv/linux/sparc/fork.h | 34 + .../unix/sysv/linux/sparc/sparc32/CVS/Entries | 3 + .../unix/sysv/linux/sparc/sparc32/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/sparc/sparc32/CVS/Root | 1 + .../unix/sysv/linux/sparc/sparc32/sysdep-cancel.h | 102 +++ .../sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S | 65 ++ .../unix/sysv/linux/sparc/sparc64/CVS/Entries | 5 + .../unix/sysv/linux/sparc/sparc64/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/sparc/sparc64/CVS/Root | 1 + .../unix/sysv/linux/sparc/sparc64/pt-sigsuspend.c | 1 + .../unix/sysv/linux/sparc/sparc64/sysdep-cancel.h | 101 +++ .../sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S | 64 ++ .../sysdeps/unix/sysv/linux/unregister-atfork.c | 49 ++ .../sysdeps/unix/sysv/linux/x86_64/CVS/Entries | 5 + .../sysdeps/unix/sysv/linux/x86_64/CVS/Entries.Log | 2 + .../sysdeps/unix/sysv/linux/x86_64/CVS/Repository | 1 + .../sysdeps/unix/sysv/linux/x86_64/CVS/Root | 1 + .../sysdeps/unix/sysv/linux/x86_64/pt-sigsuspend.c | 1 + .../sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h | 132 ++++ .../sysdeps/unix/sysv/linux/x86_64/vfork.S | 62 ++ libpthread/linuxthreads/sysdeps/x86_64/CVS/Entries | 7 + .../linuxthreads/sysdeps/x86_64/CVS/Repository | 1 + libpthread/linuxthreads/sysdeps/x86_64/CVS/Root | 1 + libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c | 97 +++ .../linuxthreads/sysdeps/x86_64/pt-machine.h | 225 +++++++ .../linuxthreads/sysdeps/x86_64/tcb-offsets.sym | 4 + libpthread/linuxthreads/sysdeps/x86_64/tls.h | 134 ++++ 325 files changed, 15503 insertions(+) create mode 100644 libpthread/linuxthreads/sysdeps/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/alpha/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/alpha/CVS/Entries.Log create mode 100644 libpthread/linuxthreads/sysdeps/alpha/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/alpha/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/alpha/elf/pt-initfini.c create mode 100644 libpthread/linuxthreads/sysdeps/alpha/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/alpha/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/alpha/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/arm/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/arm/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/arm/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/arm/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/arm/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/arm/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/cris/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/cris/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/cris/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/cris/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/cris/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/hppa/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/hppa/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/hppa/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/hppa/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/hppa/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/i386/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/i386/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/i386/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/i386/i586/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/i386/i586/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/i386/i586/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/i386/i686/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/i386/i686/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/i386/i686/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/i386/i686/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/i386/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/i386/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/i386/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/i386/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/i386/useldt.h create mode 100644 libpthread/linuxthreads/sysdeps/ia64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/ia64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/ia64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/ia64/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/ia64/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/ia64/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/ia64/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/m68k/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/m68k/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/m68k/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/m68k/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/m68k/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/mips/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/mips/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/mips/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/mips/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/mips/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/mips/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/CVS/Entries.Log create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc32/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc32/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc32/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc32/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc32/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc64/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/powerpc64/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/powerpc/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/.cvsignore create mode 100644 libpthread/linuxthreads/sysdeps/pthread/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/pthread/CVS/Entries.Log create mode 100644 libpthread/linuxthreads/sysdeps/pthread/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/pthread/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/pthread/Subdirs create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/initspin.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/libc-lock.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/libc-tsd.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/bits/typesizes.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/errno-loc.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/flockfile.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/ftrylockfile.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/funlockfile.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/getcpuclockid.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/kernel-features.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/list.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/malloc-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/not-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/posix-timer.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/pt-initfini.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/pthread-functions.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/pthread.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/ptlongjmp.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/res-state.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/semaphore.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/sigaction.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/tcb-offsets.h create mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_create.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_delete.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_getoverr.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_gettime.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_routines.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/timer_settime.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/tst-timer.c create mode 100644 libpthread/linuxthreads/sysdeps/pthread/uClibc-glue.h create mode 100644 libpthread/linuxthreads/sysdeps/s390/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/s390/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/s390/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/s390/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-32/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-32/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-32/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-32/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/s390/s390-64/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/s390/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/s390/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/sh/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/sh/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/sh/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/sh/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/sh/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/sh/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/sh/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/sparc/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/sparc/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/sparc/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/sparc/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/sparc/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc64/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/sparc/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/sparc/tls.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/.cvsignore create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/CVS/Entries.Log create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocalim.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/aio_cancel.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/local_lim.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/typesizes.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/pt-sigsuspend.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/posix_opt.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/execve.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/fork.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/fork.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/aio_cancel.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/bits/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/bits/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/bits/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/bits/initspin.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/malloc-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/pt-initfini.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/CVS/Entries.Log create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/local_lim.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/fork.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/pt-initfini.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/pt-sigsuspend.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/ia64/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/jmp-unwind.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/mips64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/mips64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/mips64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/ptlongjmp.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/pt-sigsuspend.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/raise.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/register-atfork.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/bits/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/bits/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/bits/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/bits/typesizes.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/pt-sigsuspend.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/pt-initfini.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/smp.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sigwait.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/smp.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/aio_cancel.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/typesizes.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/fork.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/pt-sigsuspend.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/unregister-atfork.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/CVS/Entries.Log create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/pt-sigsuspend.c create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h create mode 100644 libpthread/linuxthreads/sysdeps/unix/sysv/linux/x86_64/vfork.S create mode 100644 libpthread/linuxthreads/sysdeps/x86_64/CVS/Entries create mode 100644 libpthread/linuxthreads/sysdeps/x86_64/CVS/Repository create mode 100644 libpthread/linuxthreads/sysdeps/x86_64/CVS/Root create mode 100644 libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c create mode 100644 libpthread/linuxthreads/sysdeps/x86_64/pt-machine.h create mode 100644 libpthread/linuxthreads/sysdeps/x86_64/tcb-offsets.sym create mode 100644 libpthread/linuxthreads/sysdeps/x86_64/tls.h (limited to 'libpthread/linuxthreads/sysdeps') diff --git a/libpthread/linuxthreads/sysdeps/CVS/Entries b/libpthread/linuxthreads/sysdeps/CVS/Entries new file mode 100644 index 000000000..f10fcd77e --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/CVS/Entries @@ -0,0 +1,14 @@ +D/alpha//// +D/cris//// +D/i386//// +D/ia64//// +D/m68k//// +D/mips//// +D/powerpc//// +D/pthread//// +D/s390//// +D/sh//// +D/sparc//// +D/unix//// +D/x86_64//// +D/hppa//// diff --git a/libpthread/linuxthreads/sysdeps/CVS/Repository b/libpthread/linuxthreads/sysdeps/CVS/Repository new file mode 100644 index 000000000..7d16804bc --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/CVS/Repository @@ -0,0 +1 @@ +ports/linuxthreads/sysdeps diff --git a/libpthread/linuxthreads/sysdeps/CVS/Root b/libpthread/linuxthreads/sysdeps/CVS/Root new file mode 100644 index 000000000..ca45c5d4d --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/CVS/Root @@ -0,0 +1 @@ +:pserver:anoncvs@sources.redhat.com:/cvs/glibc diff --git a/libpthread/linuxthreads/sysdeps/alpha/CVS/Entries b/libpthread/linuxthreads/sysdeps/alpha/CVS/Entries new file mode 100644 index 000000000..cce223786 --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/CVS/Entries @@ -0,0 +1,4 @@ +D/elf//// +/pspinlock.c/1.3/Tue Nov 15 14:20:47 2005// +/pt-machine.h/1.13/Tue Nov 15 14:20:47 2005// +/tls.h/1.6/Tue Nov 15 14:20:47 2005// diff --git a/libpthread/linuxthreads/sysdeps/alpha/CVS/Entries.Log b/libpthread/linuxthreads/sysdeps/alpha/CVS/Entries.Log new file mode 100644 index 000000000..bc1536e2e --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/CVS/Entries.Log @@ -0,0 +1,2 @@ +A D/bits//// +R D/bits//// diff --git a/libpthread/linuxthreads/sysdeps/alpha/CVS/Repository b/libpthread/linuxthreads/sysdeps/alpha/CVS/Repository new file mode 100644 index 000000000..5b2ecdbf1 --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/CVS/Repository @@ -0,0 +1 @@ +ports/linuxthreads/sysdeps/alpha diff --git a/libpthread/linuxthreads/sysdeps/alpha/CVS/Root b/libpthread/linuxthreads/sysdeps/alpha/CVS/Root new file mode 100644 index 000000000..ca45c5d4d --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/CVS/Root @@ -0,0 +1 @@ +:pserver:anoncvs@sources.redhat.com:/cvs/glibc diff --git a/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Entries b/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Entries new file mode 100644 index 000000000..b6d12dd6e --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Entries @@ -0,0 +1,2 @@ +/pt-initfini.c/1.4/Tue Nov 15 14:20:47 2005// +D diff --git a/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Repository b/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Repository new file mode 100644 index 000000000..4b96d3fd2 --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Repository @@ -0,0 +1 @@ +ports/linuxthreads/sysdeps/alpha/elf diff --git a/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Root b/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Root new file mode 100644 index 000000000..ca45c5d4d --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/elf/CVS/Root @@ -0,0 +1 @@ +:pserver:anoncvs@sources.redhat.com:/cvs/glibc diff --git a/libpthread/linuxthreads/sysdeps/alpha/elf/pt-initfini.c b/libpthread/linuxthreads/sysdeps/alpha/elf/pt-initfini.c new file mode 100644 index 000000000..ee2558210 --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/elf/pt-initfini.c @@ -0,0 +1,90 @@ +/* Special .init and .fini section support for Alpha. Linuxthreads version. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +/* This file is compiled into assembly code which is then munged by a sed + script into two files: crti.s and crtn.s. + + * crti.s puts a function prologue at the beginning of the .init and .fini + sections and defines global symbols for those addresses, so they can be + called as functions. + + * crtn.s puts the corresponding function epilogues in the .init and .fini + sections. + + This differs from what would be generated by the generic code in that + we save and restore the GP within the function. In order for linker + relaxation to work, the value in the GP register on exit from a function + must be valid for the function entry point. Normally, a function is + contained within one object file and this is not an issue, provided + that the function reloads the gp after making any function calls. + However, _init and _fini are constructed from pieces of many object + files, all of which may have different GP values. So we must reload + the GP value from crti.o in crtn.o. */ + +__asm__ (" \n\ +#include \"defs.h\" \n\ + \n\ +/*@HEADER_ENDS*/ \n\ + \n\ +/*@_init_PROLOG_BEGINS*/ \n\ + .section .init, \"ax\", @progbits \n\ + .globl _init \n\ + .type _init,@function \n\ + .usepv _init,std \n\ +_init: \n\ + ldgp $29, 0($27) \n\ + subq $30, 16, $30 \n\ + stq $26, 0($30) \n\ + stq $29, 8($30) \n\ + jsr $26, __pthread_initialize_minimal \n\ + ldq $29, 8($30) \n\ + .align 3 \n\ +/*@_init_PROLOG_ENDS*/ \n\ + \n\ +/*@_init_EPILOG_BEGINS*/ \n\ + .section .init, \"ax\", @progbits \n\ + ldq $26, 0($30) \n\ + ldq $29, 8($30) \n\ + addq $30, 16, $30 \n\ + ret \n\ +/*@_init_EPILOG_ENDS*/ \n\ + \n\ +/*@_fini_PROLOG_BEGINS*/ \n\ + .section .fini, \"ax\", @progbits \n\ + .globl _fini \n\ + .type _fini,@function \n\ + .usepv _fini,std \n\ +_fini: \n\ + ldgp $29, 0($27) \n\ + subq $30, 16, $30 \n\ + stq $26, 0($30) \n\ + stq $29, 8($30) \n\ + .align 3 \n\ +/*@_fini_PROLOG_ENDS*/ \n\ + \n\ +/*@_fini_EPILOG_BEGINS*/ \n\ + .section .fini, \"ax\", @progbits \n\ + ldq $26, 0($30) \n\ + ldq $29, 8($30) \n\ + addq $30, 16, $30 \n\ + ret \n\ +/*@_fini_EPILOG_ENDS*/ \n\ + \n\ +/*@TRAILER_BEGINS*/ \n\ +"); diff --git a/libpthread/linuxthreads/sysdeps/alpha/pspinlock.c b/libpthread/linuxthreads/sysdeps/alpha/pspinlock.c new file mode 100644 index 000000000..79b783629 --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/pspinlock.c @@ -0,0 +1,110 @@ +/* POSIX spinlock implementation. Alpha version. + Copyright (C) 2000 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + + The GNU C Library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include +#include +#include "internals.h" + + +/* This implementation is similar to the one used in the Linux kernel. + But the kernel is byte instructions for the memory access. This is + faster but unusable here. The problem is that only 128 + threads/processes could use the spinlock at the same time. If (by + a design error in the program) a thread/process would hold the + spinlock for a time long enough to accumulate 128 waiting + processes, the next one will find a positive value in the spinlock + and assume it is unlocked. We cannot accept that. */ + +int +__pthread_spin_lock (pthread_spinlock_t *lock) +{ + unsigned int tmp; + asm volatile + ("1: ldl_l %0,%1\n" + " blbs %0,2f\n" + " or %0,1,%0\n" + " stl_c %0,%1\n" + " beq %0,2f\n" + " mb\n" + ".subsection 2\n" + "2: ldl %0,%1\n" + " blbs %0,2b\n" + " br 1b\n" + ".previous" + : "=r" (tmp), "=m" (lock) + : "m" (lock)); + return 0; +} +weak_alias (__pthread_spin_lock, pthread_spin_lock) + + +int +__pthread_spin_trylock (pthread_spinlock_t *lock) +{ + unsigned long int oldval; + unsigned long int temp; + + asm volatile + ("1: ldl_l %0,%1\n" + " and %0,%3,%2\n" + " bne %2,2f\n" + " xor %0,%3,%0\n" + " stl_c %0,%1\n" + " beq %0,3f\n" + " mb\n" + "2:\n" + ".subsection 2\n" + "3: br 1b\n" + ".previous" + : "=&r" (temp), "=m" (*lock), "=&r" (oldval) + : "Ir" (1UL), "m" (*lock)); + + return oldval == 0 ? 0 : EBUSY; +} +weak_alias (__pthread_spin_trylock, pthread_spin_trylock) + + +int +__pthread_spin_unlock (pthread_spinlock_t *lock) +{ + asm volatile ("mb"); + return *lock = 0; +} +weak_alias (__pthread_spin_unlock, pthread_spin_unlock) + + +int +__pthread_spin_init (pthread_spinlock_t *lock, int pshared) +{ + /* We can ignore the `pshared' parameter. Since we are busy-waiting + all processes which can access the memory location `lock' points + to can use the spinlock. */ + *lock = 0; + return 0; +} +weak_alias (__pthread_spin_init, pthread_spin_init) + + +int +__pthread_spin_destroy (pthread_spinlock_t *lock) +{ + /* Nothing to do. */ + return 0; +} +weak_alias (__pthread_spin_destroy, pthread_spin_destroy) diff --git a/libpthread/linuxthreads/sysdeps/alpha/pt-machine.h b/libpthread/linuxthreads/sysdeps/alpha/pt-machine.h new file mode 100644 index 000000000..853ac6f04 --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/pt-machine.h @@ -0,0 +1,128 @@ +/* Machine-dependent pthreads configuration and inline functions. + Alpha version. + Copyright (C) 1996, 1997, 1998, 2000, 2002, 2003 + Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Richard Henderson . + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + + The GNU C Library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#ifndef _PT_MACHINE_H +#define _PT_MACHINE_H 1 + +#ifndef PT_EI +# define PT_EI extern inline __attribute__ ((always_inline)) +#endif + +#ifdef __linux__ +# include +#else +# include +#endif + +extern long int testandset (int *spinlock); +extern int __compare_and_swap (long int *p, long int oldval, long int newval); + +/* Get some notion of the current stack. Need not be exactly the top + of the stack, just something somewhere in the current frame. */ +#define CURRENT_STACK_FRAME stack_pointer +register char *stack_pointer __asm__("$30"); + + +/* Memory barrier; default is to do nothing */ +#define MEMORY_BARRIER() __asm__ __volatile__("mb" : : : "memory") +/* Write barrier. */ +#define WRITE_MEMORY_BARRIER() __asm__ __volatile__("wmb" : : : "memory") + + +/* Spinlock implementation; required. */ +PT_EI long int +testandset (int *spinlock) +{ + long int ret, temp; + + __asm__ __volatile__( + "/* Inline spinlock test & set */\n" + "1:\t" + "ldl_l %0,%3\n\t" + "bne %0,2f\n\t" + "or $31,1,%1\n\t" + "stl_c %1,%2\n\t" + "beq %1,1b\n" + "2:\tmb\n" + "/* End spinlock test & set */" + : "=&r"(ret), "=&r"(temp), "=m"(*spinlock) + : "m"(*spinlock) + : "memory"); + + return ret; +} + + +/* Begin allocating thread stacks at this address. Default is to allocate + them just below the initial program stack. */ +#define THREAD_STACK_START_ADDRESS 0x40000000000 + + +/* Return the thread descriptor for the current thread. */ +#define THREAD_SELF \ +({ \ + register pthread_descr __self __asm__("$0"); \ + __asm__ ("call_pal %1" : "=r"(__self) : "i"(PAL_rduniq)); \ + __self; \ +}) + +/* Initialize the thread-unique value. */ +#define INIT_THREAD_SELF(descr, nr) \ +{ \ + register pthread_descr __self __asm__("$16") = (descr); \ + __asm__ __volatile__ ("call_pal %1" : : "r"(__self), "i"(PAL_wruniq)); \ +} + + +/* Compare-and-swap for semaphores. */ + +#define HAS_COMPARE_AND_SWAP +PT_EI int +__compare_and_swap (long int *p, long int oldval, long int newval) +{ + long int ret; + + __asm__ __volatile__ ( + "/* Inline compare & swap */\n" + "1:\t" + "ldq_l %0,%4\n\t" + "cmpeq %0,%2,%0\n\t" + "beq %0,2f\n\t" + "mov %3,%0\n\t" + "stq_c %0,%1\n\t" + "beq %0,1b\n\t" + "2:\tmb\n" + "/* End compare & swap */" + : "=&r"(ret), "=m"(*p) + : "r"(oldval), "r"(newval), "m"(*p) + : "memory"); + + return ret; +} + +/* We want the OS to assign stack addresses. */ +#define FLOATING_STACKS 1 + +/* Maximum size of the stack if the rlimit is unlimited. */ +#define ARCH_STACK_MAX_SIZE 32*1024*1024 + +#endif /* pt-machine.h */ diff --git a/libpthread/linuxthreads/sysdeps/alpha/tls.h b/libpthread/linuxthreads/sysdeps/alpha/tls.h new file mode 100644 index 000000000..3eb9438ce --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/alpha/tls.h @@ -0,0 +1,134 @@ +/* Definitions for thread-local data handling. linuxthreads/Alpha version. + Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#ifndef _TLS_H +#define _TLS_H + +#ifndef __ASSEMBLER__ + +# include +# include +# include + +/* Type for the dtv. */ +typedef union dtv +{ + size_t counter; + struct + { + void *val; + bool is_static; + } pointer; +} dtv_t; + + +typedef struct +{ + dtv_t *dtv; + + /* Reserved for the thread implementation. Unused in LinuxThreads. */ + void *private; +} tcbhead_t; +#endif + + +#ifdef HAVE_TLS_SUPPORT + +/* Signal that TLS support is available. */ +# define USE_TLS 1 + +# ifndef __ASSEMBLER__ +/* Get system call information. */ +# include + +/* This is the size of the initial TCB. */ +# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t) + +/* Alignment requirements for the initial TCB. */ +# define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t) + +/* This is the size of the TCB. */ +# define TLS_TCB_SIZE sizeof (tcbhead_t) + +/* Alignment requirements for the TCB. */ +# define TLS_TCB_ALIGN __alignof__ (tcbhead_t) + +/* This is the size we need before TCB. */ +# define TLS_PRE_TCB_SIZE sizeof (struct _pthread_descr_struct) + +/* The DTV is allocated at the TP; the TCB is placed elsewhere. */ +# define TLS_DTV_AT_TP 1 + +/* Install the dtv pointer. The pointer passed is to the element with + index -1 which contain the length. */ +# define INSTALL_DTV(TCBP, DTVP) \ + (((tcbhead_t *) (TCBP))->dtv = (DTVP) + 1) + +/* Install new dtv for current thread. */ +# define INSTALL_NEW_DTV(DTV) \ + (((tcbhead_t *)__builtin_thread_pointer ())->dtv = (DTV)) + +/* Return dtv of given thread descriptor. */ +# define GET_DTV(TCBP) \ + (((tcbhead_t *) (TCBP))->dtv) + +/* Code to initially initialize the thread pointer. This might need + special attention since 'errno' is not yet available and if the + operation can cause a failure 'errno' must not be touched. */ +# define TLS_INIT_TP(TCBP, SECONDCALL) \ + (__builtin_set_thread_pointer (TCBP), 0) + +/* Return the address of the dtv for the current thread. */ +# define THREAD_DTV() \ + (((tcbhead_t *)__builtin_thread_pointer ())->dtv) + +/* Return the thread descriptor for the current thread. */ +# undef THREAD_SELF +# define THREAD_SELF \ + ((pthread_descr)__builtin_thread_pointer () - 1) + +# undef INIT_THREAD_SELF +# define INIT_THREAD_SELF(DESCR, NR) \ + __builtin_set_thread_pointer ((struct _pthread_descr_struct *)(DESCR) + 1) + +/* Get the thread descriptor definition. */ +# include + +/* ??? Generic bits of LinuxThreads may call these macros with + DESCR set to NULL. We are expected to be able to reference + the "current" value. + + In our case, we'd really prefer to use DESCR, since lots of + PAL_code calls would be expensive. We can only trust that + the compiler does its job and unifies the multiple + __builtin_thread_pointer instances. */ + +#define THREAD_GETMEM(descr, member) \ + ((void) sizeof (descr), THREAD_SELF->member) +#define THREAD_GETMEM_NC(descr, member) \ + ((void) sizeof (descr), THREAD_SELF->member) +#define THREAD_SETMEM(descr, member, value) \ + ((void) sizeof (descr), THREAD_SELF->member = (value)) +#define THREAD_SETMEM_NC(descr, member, value) \ + ((void) sizeof (descr), THREAD_SELF->member = (value)) + +# endif /* HAVE_TLS_SUPPORT */ +#endif /* __ASSEMBLER__ */ + +#endif /* tls.h */ diff --git a/libpthread/linuxthreads/sysdeps/arm/CVS/Entries b/libpthread/linuxthreads/sysdeps/arm/CVS/Entries new file mode 100644 index 000000000..eb84e2d5f --- /dev/null +++ b/libpthread/linuxthreads/sysdeps/arm/CVS/Entries @@ -0,0 +1,4 @@ +/pspinlock.c/1.3/Wed Nov 16 21:06:54 2005// +/pt-machine.h/1.7/Wed Nov 16 21:06:54 2005// +/tls.h/1.1/Wed Nov 16 21:06:54 2005// +D diff --git a/libpthread/linuxthreads/sysdeps/arm/CVS/Repository b/libpthread/linuxthreads/sysde