summaryrefslogtreecommitdiffstats
path: root/libpthread
Commit message (Collapse)AuthorAgeFilesLines
* support building out-of-treeBernhard Reutner-Fischer2009-08-195-34/+46
| | | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* linuxthreads.old: define pthread_yield to sched_yieldMike Frysinger2009-08-191-0/+5
| | | | | | | | | The pthread_yield() function in linuxthreads does the same thing as the standardized sched_yield() function, so add a simple define for it to make porting GNU apps easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* linuxthreads.old: fix crash in debug codeMike Frysinger2009-08-191-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: Austin Foxley <austinf@cetoncorp.com>
* libpthread: add format attribute to __pthread_message()Mike Frysinger2009-08-192-3/+4
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* linuxthreads.old: extend workaround for asm rename warningsMike Frysinger2009-08-192-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: Austin Foxley <austinf@cetoncorp.com>
* undef INTERNAL_SYSCALL_NCS before redefining to quash build warnings.Khem Raj2009-08-022-1/+3
| | | | | | Pass LDFLAGS using -Wl now gcc is used as LD. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* build: use $(do_sed) command for pretty printingCarmelo Amoroso2009-07-295-9/+9
| | | | | | | Use the $(do_sed) command instead of plain @sed for pretty printing target generation by sed. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Don't shadow the mask parameter with a local variable in the same functionRon2009-07-091-2/+2
| | | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Check #if feature test macros are defined where they may not beRon2009-07-096-10/+10
| | | | | | | | | | Once again all of these reduce the noise from gcc-4.4. Replaces a few more (USE_TLS && HAVE___THREAD) with USE___THREAD while we need to mess with them for this anyhow. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Provide token prototypes for functions that are external but have no headerRon2009-07-091-2/+2
| | | | | | | | This cuts down on a lot of noise from gcc-4.4 Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Add noreturn attributes to some functions that won't ever do soRon2009-07-091-2/+2
| | | | | | | | | | usage() is also made static in answer to warnings about no prototype. In __pthread_manager_event() we also have to drop the return statement, else gcc will in turn complain about a non-returning function having one. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* git: Added/Modified .gitignoreFilippo Arcidiacono2009-07-021-0/+13
| | | | | | | Added .gitignore files to exclude others generated files. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: fix a wrong "#if" condition within the sysdep.h file.Giuseppe Cavallaro2009-07-021-1/+1
| | | | | | | | This fixes a wrong "#if" condition within the sysdep.h header for SH. This also avoids many warning while compiling. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* git: Add missing .gitignore for nptlCarmelo Amoroso2009-07-021-0/+6
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh_nptl: Fix pthread_barrier_wait epilog to properly restore r9Carmelo Amoroso2009-07-022-3/+3
| | | | | | | | | | | | | | In the pthread_barrier_wait function's epilog implementation do not use the macro ret (that is defined as rts; nop) to correctly execute in the delay slot the instruction "mov.l @r15+, r9" that will restore the r9 register to the previous value saved on the stack and as side effect will restore the stack pointer register back to the correct value. Same fix is applied to __lll_mutex_lock_wait, even if in the delay slot we have actually a nop, so using the macro would be safe here. Signed-off-by: Christian Bruel <christian.bruel@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* fix compilation of linuxthreads for sparc64Austin Foxley2009-05-212-3/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Get sparc64 nptl compilingAustin Foxley2009-05-215-60/+69
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Only use fstat64 when LFS is enabledAustin Foxley2009-05-201-0/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Merged revisions 26033 via svnmerge from Khem Raj2009-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.uclibc.org/svn/trunk/uClibc ........ r26033 | kraj | 2009-04-09 00:38:04 -0700 (Thu, 09 Apr 2009) | 13 lines The attached patches fixes the problems found bringing up uclibc on coldfire 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> ........
* sparc nptl needs it's own lowlevellock.caustinf2009-03-214-4/+157
| | | | | * Since sparc < v9 doesn't have a real compare exchange instruction, we implement it with a test and set.
* Merged revisions 25744 via svnmerge from Khem Raj2009-03-195-16/+15
| | | | | | | | | | | svn+ssh://kraj@svn.uclibc.org/svn/trunk/uClibc ........ r25744 | austinf | 2009-03-18 16:05:54 -0700 (Wed, 18 Mar 2009) | 3 lines fix compilation of linuxthreads for sparc add myself to MAINTAINERS for sparc ........
* sparc32 nptl functionalaustinf2009-03-1920-152/+414
| | | | | | | | | * pulled updated asm and headers from glibc for sparc32 * probably no cancellation support yet * no shared TLS relocs yet, since ldso is hosed on sparc still note: didn't use TARGET_SUBARCH method of includes since that would cause other parts of libc to fail currently. Will need to be fixed later.
* Always compile fork.S in arm mode. Make _Unwind_Resume arm onlyKhem Raj2009-03-182-1/+13
| | | | even when compiling in thumb mode.
* Use __asm__ and __volatile__. SYS_ify is not required here because its usedKhem Raj2009-03-181-6/+6
| | | | in calling macro already.
* add linuxthreads support for arm. By Will Newton (will.newton AT gmail.com)Denis Vlasenko2009-03-122-0/+208
|
* linuxthreads fixes from Will Newton (will.newton AT gmail.com):Denis Vlasenko2009-03-127-29/+46
| | | | | | | | | | | * share Sys 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)
* reinstate __libc_foo for linuxthreads.oldDenis Vlasenko2009-02-253-10/+11
|
* Synch build system with trunk.Carmelo Amoroso2009-01-291-1/+1
| | | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Added sysdep.h and sysdep-cancel.h for linuxthreads ARMCarmelo Amoroso2009-01-282-0/+145
| | | | | Signed-off-by: Will Wagner <will_wagner@carallon.com>
* Synch with trunk: miscellaneous changes, mostly cleanup,Carmelo Amoroso2009-01-222-2/+2
| | | | | | | code styling, comments. No object-code changes. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - pull r24786 from trunkBernhard Reutner-Fischer2009-01-121-2/+2
|
* - whitespace cleanup; no obj-code changes (r24600)Bernhard Reutner-Fischer2008-12-291-1/+1
|
* - pull r24593:24596 from trunkBernhard Reutner-Fischer2008-12-293-0/+6
|
* Merges from trunkKhem Raj2008-12-221-1/+1
|
* Merge linuxthread.old from trunk.Khem Raj2008-12-154-4/+4
|
* Merge Linuxthreads from Trunk.Khem Raj2008-12-153-49/+17
|
* Fix kernl-features.h include path.Carmelo Amoroso2008-12-1126-26/+26
| | | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synch with trunk @ 24379Carmelo Amoroso2008-12-111-437/+0
| | | | Step 23: move kernel-features.h
* Synch with trunk @ 24379Carmelo Amoroso2008-12-116-56/+48
| | | | Step 21: merge linuxthreads.old directory
* Synch with trunk @ 24379Carmelo Amoroso2008-12-1113-97/+12
| | | | Step 20: merge linuxthreads directory
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-12-107-21/+119
| | | | Update pthread_mutex_t definition and initializations.
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-12-093-42/+42
| | | | | | This patch makes mips nptl port compile again Replace remaining instances of asm by __asm__ and volatile by __volatile__ include bits/errno.h instead of obsolete bits/errno_values.h
* Fix some nptl clean target removing bash-like globs to be compliantCarmelo Amoroso2008-12-032-8/+6
| | | | with other shell, as pointed out by Bernhard.
* Rework nptl build system for cleaning headers and objectsCarmelo Amoroso2008-12-037-31/+31
| | | | | | | | | | | | | | | | | | | | | | to be compliant with all other Makefile. The output of the make clean (silent mode) will be as follows: CLEAN ld-uClibc CLEAN libdl <....> CLEAN nptl_pthread_generic CLEAN nptl_pthread CLEAN nptl_arch CLEAN nptl_linux CLEAN nptl_linux_arch CLEAN libthread_db <....> CLEAN nptl_headers CLEAN nptl_arch_headers CLEAN nptl_linux_headers CLEAN nptl_db_headers Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synch with trunk @ 24242Carmelo Amoroso2008-12-037-34/+25
| | | | | Step 18: some more synch: hidden_proto, size reduction and signal handling changes.
* Synch with trunk @ 24165Carmelo Amoroso2008-11-271-5/+4
| | | | | Step 17: libc_hidden_proto removal (almost all). and other minor changes (inline keyword, extra character)
* Synch with trunk @ 24160Carmelo Amoroso2008-11-271-2/+2
| | | | Step 13: build system updates.
* Synch with trunk @ 24087Carmelo Amoroso2008-11-184-4/+5
| | | | Step 10: libc_hidden_removal
* Synch with trunk @ 24071.Carmelo Amoroso2008-11-1720-77/+169
| | | | | Step 1 linuxthreads - linuxthreads_db - linuxthread.old - linuxthreads.old_db
* Fixes posix_fadvise[64] functions to return the Carmelo Amoroso2008-09-182-147/+2
| | | | | | | | | | error number in case of failure instead of -1 and setting errno, according to SuSv3 (IEEE Std 1003.1 2004 edition) specification. Also refactor sysdep.h and syscalls.h moving INTERNAL_SYSCALL macro to the latter (as other archs do in uclibc). Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>