summaryrefslogtreecommitdiffstats
path: root/libpthread
Commit message (Collapse)AuthorAgeFilesLines
* LT pthread_atfork: unhideHenning Heinold2010-02-212-11/+4
| | | | | | | | | | | | Trying to compile perl with uClibc new linuxthreads on arm. I run into the problem that pthread_atfork is not available. The problem was that it was synced with the glibc version, which has compat ifdefs we do not need in uClibc. The inital checked in version is right and works. So either revert the commit 2 years ago or patch it with the patch attached I made for openembedded. Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* linuxthreads.old: fix crash in debug codeMike Frysinger2009-10-121-1/+1
| | | | | | | | If pthread_join() is called and there is nothing to join, then the debug code will attempt to dereference a NULL pointer. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* linuxthreads.old: extend workaround for asm rename warningsMike Frysinger2009-10-122-0/+12
| | | | | | | | The libc_pthread_init.c needs the include workaround like forward.c, and forward.c needs more includes now. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix compilation of linuxthreads for sparc64Austin Foxley2009-10-122-3/+0
| | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* The attached patches fixes the problems found bringing up uclibc on coldfire ↵Khem Raj2009-10-121-1/+1
| | | | | | | | | | | | | | M5485 processor 1. Disable mmap2() if we're compiling for coldfire and fall back to mmap(). It seems to map a different file area on a 2.6.25 linux kernel. 2. Uses pc-relative addresing[1], computes ADDR_ALIGN, PAGE_ALIGN and OFFSET_ALIGN relatively to _dl_pagesize[3]. On coldfire/M5485 _dl_pagesize is 0x2000. Signed-off-by: Groleo Marius <groleo@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix compilation of linuxthreads for sparc add myself to MAINTAINERS for sparcaustinf2009-10-125-16/+15
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* add linuxthreads support for arm. By Will Newton (will.newton AT gmail.com)Denis Vlasenko2009-10-122-0/+208
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* linuxthreads fixes from Will Newton (will.newton AT gmail.com): * share Sys ↵Denis Vlasenko2009-10-127-29/+46
| | | | | | V semaphores in order to get appropriate SEM_UNDO semantics. * correct guardaddr in pthread_free() for TLS case * move spinlock unlocking before restart() * When exit was called from a signal handler, the restart from the manager processing the exit request instead restarted the thread in pthread_cond_timedwait. (see http://sources.redhat.com/ml/libc-ports/2006-05/msg00000.html) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Move kernel-features.h header from the linuxthread directory to a common one ↵Carmelo Amoroso2009-10-1211-90/+10
| | | | | | | (libc/sysdeps/linux/common/bits) so that any function can access to supported kernel feature (i.e. getdents). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* - pull r24948 from trunk (commentary typo)Bernhard Reutner-Fischer2009-01-212-2/+2
|
* - sync with LTBernhard Reutner-Fischer2008-11-181-29/+12
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-075-14/+14
|
* Resync pt-machine.h for AVR32 linuxthreads and linuxthreads.oldHans-Christian Egtvedt2008-10-311-2/+2
| | | | | | | | This patch synchronizes the AVR32 specific pt-machine.h header file for linuxthreads and linuxthreads.old implementation. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* Replace inline with __inline__ in AVR32 pt-machine.h header fileHans-Christian Egtvedt2008-10-312-2/+2
| | | | | | | This patch replaces inline with __inline__ to be more ANSI compatible. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* - tidy up inline:Bernhard Reutner-Fischer2008-10-241-1/+1
| | | | ldso and syscalls are __always_inline (the latter would need more cleanup)
* - do not list non-existing files in the threads prerequisitesBernhard Reutner-Fischer2008-10-184-8/+4
|
* - fix toggling thread implementation.Bernhard Reutner-Fischer2008-10-174-24/+36
| | | | | | | | | Previously the old headers were left in include/ leading to spurious compile failures. This is ugly as it can get (we resort to sneaking -L in for the moment) but good enough for now. The worst thing which can happen is that we ln these headers once per invocation of make, nothing more. If some installation of make(1) complains about the "-L" then wrap it in ifneq ($(findstring check-symlink,$(.FEATURES)),)
* - guard socket calls with UCLIBC_HAS_SOCKETBernhard Reutner-Fischer2008-10-171-1/+2
|
* Fix bug 4994 hangs on read(). I have tested the patch extensibly on ARM/LT.old.Khem Raj2008-10-112-8/+80
| | | | | Thank you Chase Douglas for reporting it and for the patch.
* - silence warningBernhard Reutner-Fischer2008-10-061-1/+1
|
* - use c89-style commentsBernhard Reutner-Fischer2008-10-034-13/+14
| | | | Closes issue #5194
* - remove some duplicate includesBernhard Reutner-Fischer2008-09-301-2/+0
|
* - add prototypesBernhard Reutner-Fischer2008-09-251-2/+1
|
* - if we only have socket support then there is no resolver state:Bernhard Reutner-Fischer2008-09-251-2/+9
| | | | In function `__pthread_reset_main_thread': undefined reference to `_res'
* Add globally __stringify macro in libc-symbols.h.Carmelo Amoroso2008-09-252-6/+2
| | | | | | Remove all other duplicated definitions. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Use __SH_SYSCALL_TRAP_BASE for pthread vfork trap, as it willPaul Mundt2008-09-241-1/+2
| | | | | change depending on ABI.
* Use getdents syscall if kernel provide supports for thisCarmelo Amoroso2008-09-091-0/+8
| | | | | | | instead of relying upon getdents64. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix up an msync() redefinition for linuxthreads + nommu systems,Paul Mundt2008-08-211-1/+2
| | | | | | common case depends on __ARCH_USE_MMU__, falling back on the include/sys/mman.h:msync() stub otherwise.
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-2313-48/+48
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-2326-82/+82
|
* - fix asm and volatile keywordsBernhard Reutner-Fischer2008-07-231-2/+2
|
* - move stripping into do_ar resp compile-m for the sake of simplicityBernhard Reutner-Fischer2008-06-174-12/+0
|
* - Improve prerequisites and avoid spurious reconfigurations.Bernhard Reutner-Fischer2008-06-092-12/+20
| | | | More details: http://uclibc.org/lists/uclibc/2008-June/019509.html
* - strip the targets and not prerequisitesBernhard Reutner-Fischer2008-06-044-32/+26
| | | | | | - tidy up PTHREADS_DEBUG_SUPPORT by using per-target STRIP_FLAGS for the few This fixes the spurious rebuilds bernd and vda were seeing with libpthreads.
* A slight improvement over my previous commit which ensured we always rebuildBernd Schmidt2008-06-014-10/+10
| | | | | | | | | libc when one of the source files changes. Since there are more places which want to depend on $(libc), fix them all to use a new variable $(libc.depend), which contains the filename for which we have a rule.
* - pull commentary fixes from upstreamBernhard Reutner-Fischer2008-05-282-11/+25
|
* convert two more static ints used as flags to smallintsDenis Vlasenko2008-05-221-1/+1
|
* add an URL to relevant gcc bugzilla entryDenis Vlasenko2008-05-201-2/+3
|
* suppress "asm declaration ignored due to conflict with previous rename"Denis Vlasenko2008-05-201-0/+20
| | | | | warning. It seems to be bogus. Comment contains extended description.
* - remove old-style definitions. No object-code changes.Bernhard Reutner-Fischer2008-05-203-6/+4
|
* - avoid warning due to undefined preprocessor tokenBernhard Reutner-Fischer2008-05-201-1/+1
|
* - avoid warning due to undefined preprocessor tokenBernhard Reutner-Fischer2008-05-201-18/+2
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-192-2/+2
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* make sure we store the function pointers to the real push/pop functions ↵Mike Frysinger2008-05-151-2/+2
| | | | | | | | | | | rather than the public weak ones so that the libc->libpthread forwarding code is able to work properly this should fix the case where libpthread.so is not linked directly, but rather via another library: app -> links to libfoo.so -> links to libpthread.so and any function (like readdir_r) that does: __UCLIBC_MUTEX_LOCK() __UCLIBC_MUTEX_UNLOCK()
* Remove gcc warning due to missing prototype for 'testandset'Carmelo Amoroso2008-05-072-0/+4
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - cleanup by manually expanding the helpers.Bernhard Reutner-Fischer2008-05-031-13/+14
| | | | Saves several 100 bytes
* - fixup asm. No object-code changesBernhard Reutner-Fischer2008-04-246-15/+15
|
* Fix segfault in __pthread_initialize_minimal in linuxthreadsCarmelo Amoroso2008-04-221-1/+1
| | | | | implementation when built without SHARED flag as reported by Will Newton <will.newton@gmail.com>
* Fix whitespace damage in AVR32 pt-machine.h in libpthread, linuxthreads and ↵Hans-Christian Egtvedt2008-04-162-46/+46
| | | | linuxthreads.old.
* use the __extern_always_inline define from cdefs.h instead of duplicating ↵Mike Frysinger2008-01-0639-159/+39
| | | | gcc version checking in every pt-machine.h header ... while __extern_always_inline should work fine, i think what is intended is __extern_inline ... should double check later