summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix
Commit message (Collapse)AuthorAgeFilesLines
* nptl: fix buildsysBernhard Reutner-Fischer2010-07-0610-523/+250
| | | | | | | | | Now automatically picks the correct (arch and subarch specific) impls in favour of generic impls. make O=/tmp/objs PREFIX=/my/sysroot -j works now as expected (both out-of-tree as well as parallel-safe). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix subdirs handlingBernhard Reutner-Fischer2010-07-065-0/+48
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: simplify buildsysBernhard Reutner-Fischer2010-07-062-2/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm/nptl: Use the old C version of _Unwind_Resume in thumb mode.Khem Raj2010-06-292-1/+23
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nptl: arm: make it compile againBernhard Reutner-Fischer2010-06-242-0/+10
| | | | | | blame 6cbeaa5dd11a1b506a8a97b4dfb4e632240f9953 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* use uniform form of C99 keywordsBernhard Reutner-Fischer2010-06-2412-79/+79
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm/nptl: Sync unwinding with glibc.Khem Raj2010-06-232-94/+116
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* arm/nptl: sysdep-cancel.h needs syscall handing for EABIKhem Raj2010-06-231-25/+142
| | | | | | | * Synced with eabi version of sysdep-cancel.h from glibc. we have been using OABI version which does not work Signed-off-by: Khem Raj <raj.khem@gmail.com>
* avoid using c99 syntaxMirko Vogt2010-06-213-3/+6
| | | | | Signed-off-by: Mirko Vogt <dev@nanl.de> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: i386 needs atomic.h for atomic_exchange_acqBernhard Reutner-Fischer2010-06-171-0/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix symlinking headersBernhard Reutner-Fischer2010-06-131-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* silence some warnings about missing prototypesBernhard Reutner-Fischer2010-06-112-1/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* mips: Add vfork to libcKhem Raj2010-05-191-3/+10
| | | | | | | | | * When using NPTL get clone.o from nptl. * Only use vfork if syscall is there. * Add libc_a_SSRC to LINUX_LIBC_ARCH_OBJ. * Use CLEAN_* for clean target. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mips/bits/pthreadtypes.h: Re-include sgidefs.hKhem Raj2010-05-191-0/+1
| | | | | | | | * This was dropped accidently in last merge removal meant a lot of warnings about undefined _ABI64. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* powerpc: Add TLS and NPTL supportKhem Raj2010-05-0915-9/+107
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: use arch-specific pthread_cond_timedwait and pthread_cond_wait on x86_64Roman I Khimov2010-05-031-2/+3
| | | | | | | | | Generic ones were broken on x86_64, pthread/ex2 test failed while pthread/ex5 worked fine. So use arch-specific functions and fix linkage failure with __pthread_mutex_cond_lock_adjust. Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: use arch-specific cancellation routines for x86_64Roman I Khimov2010-05-032-17/+13
| | | | | | | | | They were present in sources, but not compiled in. Generic routines are broken badly on x86_64, even basic threading test like pthread/ex1 didn't work with them. Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: mips needs updated clone() implementationAndreas Schultz2010-04-273-1/+50
| | | | | Signed-off-by: Andreas Schultz <andreas.schultz@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* enable building __fcntl_nocancel, as it used unconditionally nowAustin Foxley2010-04-251-1/+0
| | | | | | also sync up not-cancel.h headers between all three thread libraries Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: Harmonize objects and headers makefile clean targetsnptl_mergeCarmelo Amoroso2010-04-255-12/+12
| | | | | | | Update all the nptl clean targets (both objects and headers) to use the new syntax using CLEAN_<full_path> and HEADER_<full_path>. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl: mark forwarded functions protectedTimo Teras2010-04-1629-0/+29
| | | | | | | | | The libc stubs should never override the libpthread provided functions inside libpthread, otherwise the struct pthread_functions that is used by the forwarder stubs goes bad. Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Revert "nptl: mark symbols with libc forwarder hidden"Timo Teras2010-04-1629-29/+0
| | | | | | | | | | This reverts most of commit 1610762362e651f86ca284ac59a1d7ec88034e4e. Marking the symbols hidden is wrong, because libc accesses the pthreads internal symbols for internal locking. Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: mark symbols with libc forwarder hiddenTimo Teräs2010-04-1429-0/+29
| | | | | | | | | | | | | Add attribute_hidden to all symbols having libc forwarder. This prevents recursive self calls which would happen if libc is before libpthread in linking order: the forwarder functions would call itself via the function table, since the libpthread symbols would get overwritten with libc ones. This has not been a problem in glibc since there these symbols are marked hidden with linker version-script. Since we don't use one, we need to mark these explicitly. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl/sysdeps/unix/sysv/linux/i386: cleanup -DUSE___THREADNatanael Copa2010-04-121-11/+5
| | | | | | | | | | Remove the -DUSE___THREAD from specific assembler files since its used everywhere anyway. This is a cleanup after 447a9d1cc181395c3e2ea77ea88e45dee4b30ce6 Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl/sysdeps/unix/sysv/linux/i386: enable USE___THREAD for assemblerTimo Teräs2010-04-121-0/+1
| | | | | | | | | | | NPTL defines errno as __thread variable. Define USE___THREAD so proper errno assignment is used in assembly files. This fixes segfault while building python. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* pthread_{attr_,}{s,g}etaffinity: cleanup symbol namesBernhard Reutner-Fischer2010-04-071-1/+1
| | | | | | | | fixes typo in a1ee5b32fc698297149c770417354441ee62701e which forgot to rename __pthread_attr_getaffinity_np to pthread_attr_getaffinity_np. Thanks to Andre DRASZIK for mentioning my omission. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* get rid of extra variables for nptl pregen altogetherAustin Foxley2010-02-231-1/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl/headers: Convert the makefile targets into variables.Khem Raj2010-02-221-1/+1
| | | | | | | | | | | | | | * Introduce pregen-headers-y which is list of generated headers during the build and add this to pregen target in top level makefile. Also add nptl_headers, nptl_arch_headers, nptl_linux_headers to this if compiling with nptl. * Replace pthread_pregen var with pregen-headers-y. * Make nptl_headers, nptl_arch_headers, nptl_linux_headers variables instead of sub targets. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Get x86_64 compile to succeed.Khem Raj2010-02-191-2/+2
| | | | | | * The changes to clone.S needs testing Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sparc: also needs generic version of lowlevelrobustlockAustin Foxley2010-02-191-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl_sh: Fix build problem with FUTEX_CLOCK_REALTIMECarmelo Amoroso2010-02-191-1/+1
| | | | | | | | | | This patch fixes a build problem into the lowlevellock.S when support FUTEX_CLOCK_REALTIME (kernel newer than 2.6.29). __have_futex_clock_realtime symbol is not defined when set __ASSUME_FUTEX_CLOCK_REALTIME. The same is on i386 arch. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* x86_64: compile pthread it's own version of __syscall_errorAustin Foxley2010-02-193-10/+6
| | | | | | also fix up clone.S from sync Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* more fixes for x86_64 nptlAustin Foxley2010-02-1915-19/+22
| | | | | | also cleanup some PIC (should be __PIC__) that snuck in Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fixes to get nptl compiling for x86_64Austin Foxley2010-02-198-41/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fixes to get nptl compiling for x86Khem Raj2010-02-192-1/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Fix typo in generated file names.Khem Raj2010-02-181-20/+20
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* x86_64: unify sysdep.hAustin Foxley2010-02-181-259/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: Fix clean target to remove generated filesCarmelo Amoroso2010-02-181-1/+1
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* include tcb-offsets.h in sysdep-cancel.h for arm.Khem Raj2010-02-181-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Get new nptl building on SH4Khem Raj2010-02-1710-6/+10
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compile fixes for i386 nptlAustin Foxley2010-02-1715-442/+14
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix nptl build for sparcAustin Foxley2010-02-171-1/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* move pthread_barrier_{init,destroy} to sysdeps/pthreadAustin Foxley2010-02-171-0/+1
| | | | | | for archs that implement their own like sparc and x86_64 Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fix nptl build for mipsKhem Raj2010-02-172-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sparc/nptl: typo fixesAustin Foxley2010-02-172-2/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc/nptl: fix wrong vfork hidden defAustin Foxley2010-02-171-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Add missing lowlevelrobustlock.cKhem Raj2010-02-171-0/+114
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fix typoAustin Foxley2010-02-171-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Assorted fixed to get nptl compiling on ARMKhem Raj2010-02-178-44/+105
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* a few more build fixes nptl syncAustin Foxley2010-02-165-23/+16
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>