summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads
Commit message (Collapse)AuthorAgeFilesLines
* remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and ↵Peter S. Mazinger2011-03-031-1/+0
| | | | | | | | | | STRICT_HEADERS Remove ucontext.h if SUSV4_LEGACY is not set and fix it's references. Guard sigstack structure with SUSV4_LEGACY and STRICT_HEADERS. Disable sigstack function prototype, it is not provided by uClibc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* avoid warnings on _STACK_GROWS_* usagePeter S. Mazinger2011-03-034-10/+10
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* linuxthreads: Fix compilation breakageMatt Fleming2010-12-231-7/+4
| | | | | | | | | With commit "resolv.c: add support for per thread res_state" (aab4df0fb51660300559f5f29290709db2f7bfee) _res symbol is now marked as hidden in an attempt to make the resolver per-thread. Signed-off-by: Matt Fleming <matthew.fleming@imgtec.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* mips: fix errno setting after syscallAlexander Gordeev2010-10-271-1/+2
| | | | | | | | | | | | | | | If there was an error during syscall then after it's completion a3 register holds a non-zero value and v0 holds an actual error code which should be saved in errno. This can be achieved by calling __syscall_error with the value from v0 as a parameter. So this value should be stored in a0, but the appropriate assembly instructions are missing. Fixed this now by adding "move a0, v0". I think it was once fixed by 58c5f8ba4cdf62342d05a546d15404cbbb3c4e07 but then something went wrong. Again... Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix race condition when generating linker scriptsBernhard Reutner-Fischer2010-06-241-2/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* enable building __fcntl_nocancel, as it used unconditionally nowAustin Foxley2010-04-251-4/+47
| | | | | | also sync up not-cancel.h headers between all three thread libraries Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Merge commit 'origin/master' into nptlAustin Foxley2010-04-231-0/+11
|\ | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * linuxthreads.new: initialize stdio lockingTimo Teräs2010-04-141-0/+11
| | | | | | | | | | | | | | | | uClibc requires the threading library to enable locking for stdio, or the locking is not done at all. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl: proper soname handlingNatanael Copa2010-04-221-3/+3
|/ | | | | | | | | | | Since sublevel releases are not ABI compatible we need to adjust the soname to include the sublevel version. This makes it possible to install ABI incompatible versions of the library side by side so clean upgrades are possible. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* prettify make cleanBernhard Reutner-Fischer2010-03-251-4/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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>
* linuxthreads: check TLS_DTV_AT_TP define correctlyAustin Foxley2009-10-172-9/+9
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sigwait: remove __sigwait and __GI_sigwait symbols - they are unusedDenys Vlasenko2009-09-191-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>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-181-5/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-182-3/+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: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failureDenys Vlasenko2009-09-051-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>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-11/+16
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix compilation of linuxthreads for sparc64Austin Foxley2009-05-212-3/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix compilation of linuxthreads for sparcaustinf2009-03-185-16/+15
| | | | add myself to MAINTAINERS for sparc
* 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)
* Added sysdep.h and sysdep-cancel.h for linuxthreads ARMCarmelo Amoroso2009-01-282-0/+145
| | | | | Signed-off-by: Will Wagner <will_wagner@carallon.com>
* - commentary typo fixBernhard Reutner-Fischer2009-01-211-1/+1
|
* - pthread_attr_{g,s}etstacksize would depend on SUSv3 legacy but are notBernhard Reutner-Fischer2008-12-291-0/+2
| | | | implemented anyway.
* sigaction overhaul as described in docs/sigaction.txtDenis Vlasenko2008-12-151-0/+2
| | | | | Run tested on i386.
* Remove the rest of "bounded pointers" scaffolding. gcc website says"Denis Vlasenko2008-12-132-4/+2
| | | | | | "Bounds Checking Projects... This project has been abandoned" for four years at least.
* *: remove vestiges of gcc's "bounded pointers" feature,Denis Vlasenko2008-12-122-45/+13
| | | | | | it is dead (not supported by gcc) for years. (more of it remains in multiple copies of sigaction.c)
* Move kernel-features.h header from the linuxthread directoryCarmelo Amoroso2008-12-1111-90/+10
| | | | | | | | to a common one (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>
* *: remove some __libc_XXX functions:Denis Vlasenko2008-12-102-7/+2
| | | | | | | | | | | | __libc_accept __libc_close __libc_connect __libc_creat __libc_creat64 __libc_fsync __libc_lseek __libc_lseek64 __libc_msync __libc_nanosleep __libc_open __libc_open64 __libc_pause __libc_read __libc_readv __libc_recv __libc_recvfrom __libc_recvmsg __libc_send __libc_sendmsg __libc_sendto __libc_tcdrain __libc_wait __libc_waitpid __libc_write __libc_writev They were removed from glibc 1 May 2004: http://sources.redhat.com/ml/libc-hacker/2004-05/msg00001.html
* hostid: improve extremely unreadable partsDenis Vlasenko2008-12-011-2/+1
| | | | | | | | | | | | | | | | | | | | *: remove checks of sigaction and sigprocmask results in cases where they clearly can't fail: sigaction(known_good_sig) sigprocmask(known_good_how) text data bss dec hex filename - 393 4 0 397 18d libc/pwd_grp/lckpwdf.o + 382 4 0 386 182 libc/pwd_grp/lckpwdf.o - 56 0 0 56 38 libc/signal/sigblock.o + 44 0 0 44 2c libc/signal/sigblock.o - 211 0 0 211 d3 libc/signal/sigset.o + 202 0 0 202 ca libc/signal/sigset.o - 56 0 0 56 38 libc/signal/sigsetmask.o + 44 0 0 44 2c libc/signal/sigsetmask.o - 309 0 0 309 135 libc/unistd/sleep.o + 256 0 0 256 100 libc/unistd/sleep.o
* on Bernd's request, remove commented-out code snippetsDenis Vlasenko2008-12-011-7/+1
|
* optimize signal mask ops. comment out "impossible" errorsDenis Vlasenko2008-12-014-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | text data bss dec hex filename - 1179 13 2 1194 4aa libc/misc/syslog/syslog.o + 1165 13 2 1180 49c libc/misc/syslog/syslog.o - 435 4 0 439 1b7 libc/pwd_grp/lckpwdf.o + 393 4 0 397 18d libc/pwd_grp/lckpwdf.o - 38 0 0 38 26 libc/signal/sigandset.o + 32 0 0 32 20 libc/signal/sigandset.o - 63 0 0 63 3f libc/signal/sigblock.o + 56 0 0 56 38 libc/signal/sigblock.o - 22 0 0 22 16 libc/signal/sigempty.o + 20 0 0 20 14 libc/signal/sigempty.o - 25 0 0 25 19 libc/signal/sigfillset.o + 20 0 0 20 14 libc/signal/sigfillset.o - 34 0 0 34 22 libc/signal/sigisempty.o + 16 0 0 16 10 libc/signal/sigisempty.o - 38 0 0 38 26 libc/signal/sigorset.o + 32 0 0 32 20 libc/signal/sigorset.o - 119 0 0 119 77 libc/signal/sigpause.o + 113 0 0 113 71 libc/signal/sigpause.o - 215 0 0 215 d7 libc/signal/sigset.o + 211 0 0 211 d3 libc/signal/sigset.o - 63 0 0 63 3f libc/signal/sigsetmask.o + 56 0 0 56 38 libc/signal/sigsetmask.o - 194 0 1 195 c3 libc/stdlib/abort.o + 183 0 1 184 b8 libc/stdlib/abort.o - 323 0 0 323 143 libc/unistd/sleep.o + 309 0 0 309 135 libc/unistd/sleep.o
* shring sugnal-relared stuff a bit. BTW why constant memset is not inlined by ↵Denis Vlasenko2008-11-291-3/+5
| | | | | | | | | | | gcc? text data bss dec hex filename - 38015 18096 8636 64747 fceb lib/libpthread-0.9.30-svn.so + 38001 18096 8636 64733 fcdd lib/libpthread-0.9.30-svn.so - 274842 1835 19012 295689 48309 lib/libuClibc-0.9.30-svn.so + 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-182-2/+2
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-071-3/+3
|
* 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-311-1/+1
| | | | | | | 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-181-2/+1
|
* - fix toggling thread implementation.Bernhard Reutner-Fischer2008-10-171-7/+8
| | | | | | | | | 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)),)
* - use c89-style commentsBernhard Reutner-Fischer2008-10-032-5/+5
| | | | 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-251-3/+1
| | | | | | 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>
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-233-5/+5
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-2315-53/+53
|
* - move stripping into do_ar resp compile-m for the sake of simplicityBernhard Reutner-Fischer2008-06-171-3/+0
|