summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix/sysv
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* mass sync with glibc nptlAustin Foxley2010-02-16174-4242/+9961
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc/sysdep: Unify sparc sysdep.hAustin Foxley2010-02-131-65/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* arm/sysdep: Unify arm sysdep.hKhem Raj2010-02-111-334/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mips/sysdep.h: Unify mips sysdep.hKhem Raj2010-02-111-302/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nptl: sysdep headers re-factoringCarmelo Amoroso2010-02-092-228/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch will re-factor and simplify sysdep headers handling for nptl branch. The reason is to use some useful macros in asm code (i.e. ENTRY()) that are available only into nptl branch because are defined in sysdep.h header under the nptl folder even if they are not related to NPTL at all (this was likely due to a bad choice done at the early stage of NPTL porting). This is a required steps for integrating into master branch some asm code available in nptl branch for sh4. The main changes are described below: nptl/sysdeps/generic/sysdep.h (moved) ---> libc/sysdeps/linux/common/sysdep.h nptl/sysdeps/arm/sysdep.h (moved) ---> libc/sysdeps/linux/arm/sysdep.h nptl/sysdeps/sh/sysdep.h ---------------------| nptl/sysdeps/unix/sh/sysdep.h ----------------| nptl/sysdeps/unix/sysv/linux/sh/sysdep.h -----| nptl/sysdeps/unix/sysv/linux/sh/sh4/sysdep.h -| |(merged) ---> libc/sysdeps/linux/sh nptl/sysdeps/unix/sysdep.h (deleted) Similarly the mips and arm sysdep.h should be merged and updated as for sh arch. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* pthread_{attr_,}{s,g}etaffinity: cleanup symbol namesBernhard Reutner-Fischer2010-02-054-13/+10
| | | | | | and hide __determine_cpumask_size. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>