summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl
Commit message (Collapse)AuthorAgeFilesLines
* remove wait callbacks for non-cancelation funcsBernhard Reutner-Fischer2009-11-174-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>
* Makefile: fix indentationBernhard Reutner-Fischer2009-11-171-19/+18
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* make the sem_open changes actually compileAustin Foxley2009-11-091-1/+1
| | | | | | __gen_tempname now needs to not be hidden so libpthread can get at it Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Unbreak sem_open when UCLIBC_SUSV3_LEGACY is not definedMikhail Gusarov2009-11-091-32/+5
| | | | | | | | | sem_open uses mktemp to create temporary file. Reimplement it using __gen_tmpname, removing ugly while(1) loop. As a side-effect remove the potential source of EAGAIN errors. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* whitespace fixesAustin Foxley2009-10-1745-67/+37
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* mips nptl: Cleanup up _ABI64 warningsAustin Foxley2009-09-271-0/+2
| | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com> Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
* nptl_db: Reinstate version.h for nptlCarmelo Amoroso2009-09-272-2/+2
| | | | | | This time do not create the header file at each build Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Revert part of ecd7069ac6Austin Foxley2009-09-251-0/+3
| | | | | | This seemingly harmless warning fix causes mutex use in libc to crash... Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* support O= for nptl tooAustin Foxley2009-09-251-9/+17
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* i386 nptl: fix PSEUDO_ENDAustin Foxley2009-09-231-11/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* i386/arm nptl warning fixesAustin Foxley2009-09-238-11/+11
| | | | | | | | * fix some "USE___THREAD not defined" warnings * get rid of remnant glibc versioned symbols * fix RTLD_PRIVATE_ERRNO define usage Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* tls: test for DTV vs TCB at TP correctlyAustin Foxley2009-09-234-33/+33
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* spent this morning beating i386 nptl into shapeAustin Foxley2009-09-2238-492/+780
| | | | | | Got it compiling thus far, still working on getting it to run Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc nptl: make sure correct clone.S and pt-vfork.S get in libpthreadAustin Foxley2009-09-222-1/+3
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl/: fix .dep files not working for libpthread.aAustin Foxley2009-09-2211-4/+45
| | | | | | | the variable libpthread-a-y was holding %.o instead of %.os, so the .dep make rules were rebuilding the whole lib every time Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* nptl/: no need to regen these headers every makeAustin Foxley2009-09-215-10/+4
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* warning fixesAustin Foxley2009-09-214-7/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* only try to build nptl libpthread if UCLIBC_HAS_THREADSAustin Foxley2009-09-201-2/+2
| | | | 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>
* 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>
* 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>
* 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.
* 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.
* Synch build system with trunk.Carmelo Amoroso2009-01-291-1/+1
| | | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* 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
* 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-036-27/+27
| | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* Make sure that multi-threaded statically linked applications use the realCarmelo Amoroso2008-09-031-0/+5
| | | | | | | | | | locking implementations instead of the empty stubs from libc.a. Removed also old work-around added to opendir, due to wrong pthread_mutex_init (from libc.a) used in static binaries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* __asm__ and __volatile__ conversion for arm.Khem Raj2008-08-152-3/+3
|
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-314-50/+50
| | | | | | | Basically trailing whitespaces removal, fix non standard keywords asm -> __asm__ inline -> __inline__ and some minor changes on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Update sh4 pthread_mutex_t definitionCarmelo Amoroso2008-07-311-3/+13
|
* Removed duplicated file (already moved into libc/misc/elf)Carmelo Amoroso2008-07-291-68/+0
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Undefine some of redundant syscalls not used by EABI kernels. So uclibc ↵Khem Raj2008-07-141-2/+1
| | | | | | could use alternative implementations for them. include sys/syscalls.h in pt-gettimeofday.c
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-111-4/+1
| | | | | We have pt-sleep.c now no need to create link and worse make clean deletes the proper pt-sleep.c file.
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-112-11/+11
| | | | | | | | | | | | Hush compiler for extern inline warnings by using __extern_inline macro, this also makes gcc 4.3 happy. warning: C99 inline functions are not supported; using GNU89 warning: to disable this warning use -fgnu89-inline or the gnu Also fix this other warning. warning: missing braces around initializer warning: (near initialization for '_stdio_streams[0].__lock.__
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-113-20/+11
| | | | Fix ARM specific makefiles for NPTL build.
* Fix some __UCLIBC_IO_MUTEX_XXXX macro to be used without FUTEX support. ↵Carmelo Amoroso2008-07-111-10/+3
| | | | Thanks Khem for pointing this out
* Exclude some files for ARM NPTL, Do not use _libc_fatalKhem Raj2008-07-102-3/+12
|
* Fix __USE_STDIO_FUTEXES__ falloutKhem Raj2008-07-101-4/+11
|