summaryrefslogtreecommitdiffstats
path: root/libpthread
Commit message (Collapse)AuthorAgeFilesLines
...
* | compile fixes for i386 nptlAustin Foxley2010-02-1716-446/+16
| | | | | | | | 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-175-1/+7
| | | | | | | | | | | | 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-173-2/+24
| | | | | | | | 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>
* | update nptl gitignoreAustin Foxley2010-02-171-7/+8
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.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-1719-62/+196
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | a few more build fixes nptl syncAustin Foxley2010-02-166-25/+17
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | mass sync with glibc nptlAustin Foxley2010-02-16296-5383/+18461
| | | | | | | | 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-112-412/+0
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | nptl: sysdep headers update for i386, mips and x86_64Carmelo Amoroso2010-02-093-3/+3
| | | | | | | | | | | | | | | | Update the arch specific sysdep headers to include the common header under libc/sysdeps/linux/common instead of libpthread/nptl/sysdeps/generic. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | nptl: sysdep headers re-factoringCarmelo Amoroso2010-02-097-630/+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>
* | TLS_TCB_AT_TP: avoid warning about undef cpp tokenBernhard Reutner-Fischer2010-02-051-1/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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>
* | Add -DNOT_IN_libc=1 -DIS_IN_libpthread=1 to some sources in nptl/libpthread ↵Khem Raj2010-02-011-0/+1
| | | | | | | | | | | | | | | | | | build. * This will prevent use of internal __libc* symbols in libpthread which should be hidden for libc only use. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Makefile.arch: On ARM and MIPS pass -DNOT_IN_libc=1 -DIS_IN_libpthread=1Khem Raj2010-01-252-0/+2
| | | | | | | | | | | | | | * This will prevent it using internal __libc* symbols in pthread which should be hidden for libc only use. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | mips/dl-tls.h: Adjust TLS_TPREL_VALUE and TLS_DTPREL_VALUEKhem Raj2010-01-251-4/+4
| | | | | | | | | | | | | | * Symbol values are passed in directly into these macros instead of the symbol structure. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | nptl: timer_routines.c (timer_helper_thread):Austin Foxley2010-01-232-8/+6
| | | | | | | | | | | | | | | | | | Use sigfillset. Document that sigfillset does the right thing wrt to SIGSETXID. Sync with glibc Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: need to build generic timer_* functions for x86_64 and sparcAustin Foxley2010-01-231-2/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: fix a few more old style prototypesAustin Foxley2010-01-232-6/+6
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Merge commit 'origin/master' into nptlAustin Foxley2009-12-191-1/+1
|\| | | | | | | | | | | | | | | Conflicts: libc/signal/sigpause.c libc/string/x86_64/memset.S Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * check if USE_TLS is defined before useHans-Christian Egtvedt2009-12-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | This patch will convert all the #ifdef USE_TLS and #if USE_TLS to #if defined(USE_TLS) && USE_TLS. By checking if the USE_TLS is defined before checking its value will result in correct behavior for architectures not defining this config symbol. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> Acked-by: Carmelo AMOROSO <carmelo.amoroso@st.com>
| * build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso2009-12-168-21/+21
| | | | | | | | | | | | | | Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | check if USE_TLS is defined before useHans-Christian Egtvedt2009-12-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | This patch will convert all the #ifdef USE_TLS and #if USE_TLS to #if defined(USE_TLS) && USE_TLS. By checking if the USE_TLS is defined before checking its value will result in correct behavior for architectures not defining this config symbol. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> Acked-by: Carmelo AMOROSO <carmelo.amoroso@st.com>
* | x86_64: fix up the rest of the includes and aliases for nptlAustin Foxley2009-12-1612-11/+24
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | x86_64: add missing includes to sem_*.SAustin Foxley2009-12-162-0/+4
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | fix multiple definitions of pthread_once for x86_64Austin Foxley2009-12-162-4/+2
| | | | | | | | | | | | also add a missing weak for clone Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | x86_64: no waitpid syscall exists, so use wait4Austin Foxley2009-12-161-5/+6
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso2009-12-1627-55/+55
| | | | | | | | | | | | | | Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | fix typo that sneaked in with 9a7506Natanael Copa2009-12-151-1/+1
| | | | | | | | | | Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | Go back to using nptl_arch_headersAustin Foxley2009-12-111-1/+2
| | | | | | | | | | | | this is part of the revert of 641e7e36ad0a9 Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Revert "nptl: make build depend directly on nptl headers"Austin Foxley2009-12-117-28/+37
| | | | | | | | | | | | This reverts commit 641e7e36ad0a9b2899b04f256c5b243ada7da279. Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | get x86_64 nptl buildingAustin Foxley2009-12-1144-312/+1223
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: fix even more old style declarationsAustin Foxley2009-12-119-26/+20
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: fix a few more old style declerationsAustin Foxley2009-12-094-15/+12
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: fix old style function declerationsAustin Foxley2009-12-0998-282/+234
| | | | | | | | | | | | also fix a few shadowed local warnings Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: make build depend directly on nptl headersAustin Foxley2009-12-097-37/+28
| | | | | | | | | | | | | | | | | | gets rid of nptl_headers,nptl_arch_headers,nptl_linux_headers targets also, clean up extra slashes in i386/sparc and unify the implementation of nptl header generation between all archs Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | i386 nptl: add missing weak_alias for pthread_cond_signalAustin Foxley2009-12-041-0/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | generate nptl headers without a recursive make callAustin Foxley2009-11-291-0/+2
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | don't use __i686 in symbol names as it seems gcc can define itAustin Foxley2009-11-296-32/+33
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | PIC fixes for hardenedTimo Teräs2009-11-273-7/+10
| | | | | | | | | | | | 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>
* | Merge remote branch 'origin/master' into nptl_mergeAustin Foxley2009-11-222-4/+0
|\| | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * Revert "libc: add hidden calls to pthread cleanup funcs"Austin Foxley2009-11-222-4/+0
| | | | | | | | | | | | | | | | This reverts commit e0ac4efbdb498319f03a2a95d75d061ab6c68491. Was causing segfaults on every pthread linked executable Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * libc: add hidden calls to pthread cleanup funcsMike Frysinger2009-10-222-0/+4
| | | | | | | | | | | | | | | | | | A lot of libc code calls the pthread cleanup funcs implicitly (for stdio) which currently goes through the PLT. Since we already have forwarding symbols for these funcs, it's safe to declare the internal libc usage hidden as a loaded libpthread will have the real symbols found. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | remove wait callbacks for non-cancelation funcsBernhard Reutner-Fischer2009-11-224-24/+0
| | | | | | | | | | | | | | | | No need to install a cancellation handler, these are no cancellation point. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>