summaryrefslogtreecommitdiffstats
path: root/libpthread
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>
* libc: add hidden calls to pthread cleanup funcsMike Frysinger2009-11-092-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.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-1746-68/+38
| | | | 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-273-6/+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-252-13/+23
| | | | 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-238-46/+46
| | | | 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>
* sigwait: remove __sigwait and __GI_sigwait symbols - they are unusedDenys Vlasenko2009-09-181-6/+2
| | | | | | | | | sigwait is not called from any uclibc function, so "hidden symbol" trick is not needed on it. __sigwait also is never used, and it's not clear why it even existed. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-184-10/+2
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* trim Experimentally off and uncommented hiddenAustin Foxley2009-09-183-5/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failureDenys Vlasenko2009-09-181-3/+1
| | | | | | | | | | | | | text data bss dec hex filename - 370 0 0 370 172 libc/misc/dirent/opendir.o + 366 0 0 366 16e libc/misc/dirent/opendir.o - 375 4 0 379 17b libc/pwd_grp/lckpwdf.o + 356 4 0 360 168 libc/pwd_grp/lckpwdf.o - 248 0 0 248 f8 librt/shm.o + 209 0 0 209 d1 librt/shm.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* 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
|