summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old
Commit message (Collapse)AuthorAgeFilesLines
* prettify make cleanBernhard Reutner-Fischer2010-03-252-6/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* check if USE_TLS is defined before useHans-Christian Egtvedt2009-12-171-3/+3
| | | | | | | | | | | This patch will convert all the #ifdef USE_TLS and #if USE_TLS to #if defined(USE_TLS) && USE_TLS. By checking if the USE_TLS is defined before checking its value will result in correct behavior for architectures not defining this config symbol. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> Acked-by: Carmelo AMOROSO <carmelo.amoroso@st.com>
* Revert "libc: add hidden calls to pthread cleanup funcs"Austin Foxley2009-11-222-4/+0
| | | | | | | | This reverts commit e0ac4efbdb498319f03a2a95d75d061ab6c68491. Was causing segfaults on every pthread linked executable Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* libc: add hidden calls to pthread cleanup funcsMike Frysinger2009-10-222-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>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-183-5/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-2/+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>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-11/+14
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* linuxthreads.old: define pthread_yield to sched_yieldMike Frysinger2009-07-261-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>
* linuxthreads.old: fix crash in debug codeMike Frysinger2009-07-211-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>
* libpthread: add format attribute to __pthread_message()Mike Frysinger2009-07-212-3/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* linuxthreads.old: extend workaround for asm rename warningsMike Frysinger2009-07-202-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>
* Don't shadow the mask parameter with a local variable in the same functionRon2009-07-051-2/+2
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Check #if feature test macros are defined where they may not beRon2009-07-055-9/+9
| | | | | | | | | 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>
* Provide token prototypes for functions that are external but have no headerRon2009-07-051-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>
* Add noreturn attributes to some functions that won't ever do soRon2009-07-051-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>
* The attached patches fixes the problems found bringing up uclibc on coldfire Khem Raj2009-04-091-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>
* Reinstate __libc_foo's needed for linuxthreads.old.Denis Vlasenko2009-02-253-10/+11
| | | | | Now they are only enabled if linuxthreads.old are selected.
* - commentary typo fixBernhard Reutner-Fischer2009-01-211-1/+1
|
* - fix typo in r24594Bernhard Reutner-Fischer2009-01-121-2/+2
|
* - whitespace cleanup; no obj-code changesBernhard Reutner-Fischer2008-12-291-1/+1
|
* - pthread_attr_{g,s}etstacksize would depend on SUSv3 legacy but are notBernhard Reutner-Fischer2008-12-292-0/+4
| | | | implemented anyway.
* remove one forgotten '##'. Heeds:Denis Vlasenko2008-12-191-1/+1
| | | | | warning: type defaults to 'int' in declaration of 'intfcntl'
* heed compiler warnings about checking non-defined variables in #if directivesDenis Vlasenko2008-12-143-3/+3
|
* make all "XXXhidden_proto(" consistently not use a space before '('Denis Vlasenko2008-12-131-1/+1
|
* get rid of __libc_* symbols. Some whitespace cleanups.Khem Raj2008-12-111-27/+27
|
* *: remove some __libc_XXX functions:Denis Vlasenko2008-12-105-29/+21
| | | | | | | | | | | | __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-012-8/+0
|
* optimize signal mask ops. comment out "impossible" errorsDenis Vlasenko2008-12-013-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* - cosmetic tidy up of clean targetBernhard Reutner-Fischer2008-11-251-2/+2
|
* signal ops: avoid calls through PLT for __sigXXX opsDenis Vlasenko2008-11-221-5/+4
| | | | | linuxthreads.old/manager: pointless style fixes, no code changes
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-182-2/+3
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-072-5/+5
|
* 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>
* - 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)),)
* - 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-032-8/+9
| | | | Closes issue #5194
* 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>
* 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-2310-43/+43
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-239-27/+27
|
* - 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-171-3/+0
|
* - Improve prerequisites and avoid spurious reconfigurations.Bernhard Reutner-Fischer2008-06-091-6/+10
| | | | More details: http://uclibc.org/lists/uclibc/2008-June/019509.html
* - strip the targets and not prerequisitesBernhard Reutner-Fischer2008-06-041-14/+11
| | | | | | - 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-011-2/+2
| | | | | | | | | 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.