summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl
Commit message (Collapse)AuthorAgeFilesLines
...
* nptl: _POSIX_IPV6 depends on UCLIBC_HAS_IPV6Bernhard Reutner-Fischer2010-08-021-0/+8
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix LFS handlingBernhard Reutner-Fischer2010-07-301-1/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: do not define _POSIX_SPAWN since its not implementedNatanael Copa2010-07-301-0/+2
| | | | | | | | Building things like vlc checks if _POSIX_SPAWN is defined. Since posix_spawn is not implemented we dont define it. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
* nptl: (librt) powerpc32's PSEUDO_RET needs __syscall_errorBernhard Reutner-Fischer2010-07-151-0/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: remove superfluous =1 from definesBernhard Reutner-Fischer2010-07-1413-84/+84
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: x86_64: fix compilation of unwinderBernhard Reutner-Fischer2010-07-142-1/+221
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl i686: fix pthread_cond_wait.S compilationRoman I Khimov2010-07-141-0/+1
| | | | | | | | | | | | | | __i686 is a gcc-defined macro, so i686 build failed with: libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S: Assembler messages: libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:572: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:573: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:574: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:575: Error: junk at end of line, first unrecognized character is `.' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:576: Error: junk at end of line, first unrecognized character is `1' libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:579: Error: expected comma after name `' in .size directive Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: disregard generated tcb-offsets.cBernhard Reutner-Fischer2010-07-061-1/+1
| | | | | | thanks to khem for noticing Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: Filter out gen_tcb-offsets.c from CSRC for libpthread.Khem Raj2010-07-061-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nptl: fix buildsysBernhard Reutner-Fischer2010-07-0625-1015/+573
| | | | | | | | | 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-0611-5/+70
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: simplify buildsysBernhard Reutner-Fischer2010-07-0612-306/+66
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* mips/syscall-error: Choose the correct version for setting up errno.Khem Raj2010-06-301-0/+1
| | | | | | | | | | | * Current function is a C protype and PSEUDO macro does not transfer syscall return parameters to correct argument registers for a C function. This causes problem with syscalls setting wrong value for errno when they encounter an error. * Fixes PR/2089 for mips/nptl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nptl/errno: Use a separate __errno_location for libpthread.Khem Raj2010-06-302-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nptl/generic: Build generic libc-tls.c for non-mips architectures.Khem Raj2010-06-301-2/+3
| | | | | | | | * mips has it own variant. * we dont need to build dl-tls.c here its already built as part of ldso. Signed-off-by: Khem Raj <raj.khem@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>
* test/nptl: move eintr.c to where it belongsBernhard Reutner-Fischer2010-06-251-89/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@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-2429-159/+159
| | | | 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-216-6/+12
| | | | | 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-132-22/+17
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: avoid spurious rebuilds of libpthread*.aBernhard Reutner-Fischer2010-06-121-2/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: handle PTHREADS_DEBUG_SUPPORT properlyBernhard Reutner-Fischer2010-06-121-4/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix race condition when generating libpthread.soBernhard Reutner-Fischer2010-06-121-3/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: remove relocation in pthread_rwlock_init()Bernhard Reutner-Fischer2010-06-111-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* silence some warnings about missing prototypesBernhard Reutner-Fischer2010-06-114-5/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: fix clean vs. headercleanBernhard Reutner-Fischer2010-06-111-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix for !ipv4 && !ipv6Bernhard Reutner-Fischer2010-06-082-7/+8
| | | | 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/Makefile.arch: Add objclean and headers_clean targets for NPTL.Khem Raj2010-05-091-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* powerpc: Add TLS and NPTL supportKhem Raj2010-05-0921-37/+180
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* mips/Makefile.arch: Remove -f option to $(do_awk)Khem Raj2010-05-071-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nptl: use arch-specific pthread_cond_timedwait and pthread_cond_wait on x86_64Roman I Khimov2010-05-032-3/+4
| | | | | | | | | 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-033-17/+23
| | | | | | | | | 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: fix sem_open with O_CREATRoman I Khimov2010-05-031-1/+2
| | | | | | | | | | Temporary file name template passed to __gen_tempname had no "XXXXXX" in it, so __gen_tempname returned EINVAL which led to sem_open failure. Fixes NPTL tests tst-sem4, tst-sem7, tst-sem8, tst-sem9. 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>
* libpthread/x86_64: fix cleanRoman I Khimov2010-04-271-1/+1
| | | | | Signed-off-by: Roman I Khimov <khimov@altell.ru> 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-2512-34/+34
| | | | | | | 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: Remove compiler warning due to old-style function definitionCarmelo Amoroso2010-04-251-2/+1
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl: fix dynamic initialization of libpthreadTimo Teräs2010-04-222-1/+7
| | | | | | | | | | | | | | If libpthread get's pulled in via dlopen(), we need to do libpthread initialization in dlopen(). Achieve this by making initializer function out of __pthread_initialize_minimal_internal. Add the proper linker flags and make it callable multiple times. Add also nodelete flag which ensures that libpthread will not get unmapped after it's been loading. Though, ld.so does not yet support this. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: fix libc internal, dynamically enabled lockingTimo Teräs2010-04-221-4/+16
| | | | | | | | | | | | | | | | | | | | | Final iteration to fix libc internal locking if libpthread is pulled in by dlopen call (directly or indirectly). We cannot really use the weak symbol trick for shared build, since the symbols won't get refreshed if libpthread is pulled in dynamically. In glibc, they have #ifdef SHARED magic to either use pthread_functions table, or weaks. But as we shared object files with both builds, this does not sounds good either. The reintroduces the libc weaks.c, but uses them now only with static build. For dynamic build, we still use the symbols with same name, but provide weaks in forward.c so they end up dereferencing the pthread_functions table indirectly if we are not linked to libpthread. Mutex initialization is hard coded as inline, as it needs to happen even if libpthread is not initially loaded. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: fix warnings of shadowing __selfTimo Teräs2010-04-221-6/+6
| | | | | | | | | | | | Stdio locking macroes do: void *__self = THREAD_SELF; But THREAD_SELF uses __self also internally which causes shadowing warnings. Just rename the outer variable for now. Might be an idea to convert the macroes to static inline functions. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: proper soname handlingNatanael Copa2010-04-221-2/+2
| | | | | | | | | | | Since sublevel releases are not ABI compatible we need to adjust the soname to include the sublevel version. This makes it possible to install ABI incompatible versions of the library side by side so clean upgrades are possible. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl: mark forwarded functions protectedTimo Teras2010-04-1669-0/+70
| | | | | | | | | 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>
* libc: remove libc weak __pthreads_* wrappersTimo Teras2010-04-161-4/+2
| | | | | | | | | | | | | | | | | It is not possible to override for libpthread to override the weak libc definitions. This has never worked in uclibc, and does no longer work in glibc either (unless you use LD_DYNAMIC_WEAK). The proper thing to do is have weak prototypes in libc, and definitions in libpthread only. This way libc runs even if those functions are not defined, but just needs to protect against the NULL values (done by implementing __uclibc_maybe_call). This fix the problems if libc is linked before libpthread or if libpthread is pulled by a dependency library. Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>