summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | make tls and nptl test buildBernhard Reutner-Fischer2009-11-224-249/+257
| | | | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Look at HAVE_SHAREDBernhard Reutner-Fischer2009-11-221-1/+1
| | | | | | | | | | | | | | We do not have UCLIBC_STATIC (anymore) but !HAVE_SHARED Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | remove wait callbacks for non-cancelation funcsBernhard Reutner-Fischer2009-11-224-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | include string.h for memset()Bernhard Reutner-Fischer2009-11-221-0/+2
| | | | | | | | | | | | | | This avoids a warnings about implicit declaration of function 'memset'. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Makefile: fix indentationBernhard Reutner-Fischer2009-11-221-19/+18
| | | | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Simplify kconfig wording of thread supportBernhard Reutner-Fischer2009-11-091-46/+47
| | | | | | | | | | | | | | Use a choice for thread support selection. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | remove wrong default for choiceBernhard Reutner-Fischer2009-11-091-3/+0
| | | | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | support selecting which locales to buildBernhard Reutner-Fischer2009-11-092-16/+54
| | | | | | | | | | | | | | | | | | | | | | Introduce UCLIBC_BUILD_MINIMAL_LOCALES and if selected build only those locales. Based on a patch by Bernhard Reutner-Fischer. Signed-off-by: Marc Andre Tanner <mat@brain-dump.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | remember some TODOs for 0.9.31Bernhard Reutner-Fischer2009-11-091-7/+16
| | | | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | disable _POSIX_SPAWN defineMike Frysinger2009-11-091-0/+2
| | | | | | | | | | | | | | | | We don't provide spawn.h let alone any other spawn funcs/types, so don't set up the _POSIX_SPAWN define that some packages (like vlc) check. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | build with -fmerge-all-constantsMike Frysinger2009-11-091-0/+2
| | | | | | | | | | | | | | | | Glibc is already using this flag and it gives us a slight code shrink in a few functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/plt: add a script to find PLT usageMike Frysinger2009-11-092-0/+39
| | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.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>
* | regex: call memcpy() ourselvesMike Frysinger2009-11-091-1/+2
| | | | | | | | | | | | | | | | Call the hidden memcpy() ourselves otherwise gcc will emit a call to the public memcpy() which goes through the PLT. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sysctl: avoid inline initializationMike Frysinger2009-11-091-17/+9
| | | | | | | | | | | | | | | | | | Assign each field one by one rather than stack initialization as gcc will call memset() to zero out the rest of the structure -- which we don't care about as the field is unused and not seen outside of the libc. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | inet_ntop4: avoid inline initializationMike Frysinger2009-11-091-1/+3
| | | | | | | | | | | | | | | | We only need to set the first byte to 0, but gcc likes to zero out the rest of the string with memset() when using this initialization style. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sparc: use fputs to write to stderrMike Frysinger2009-11-091-1/+1
| | | | | | | | | | | | | | | | This also has the advantage of fputs() having a hidden alias while puts does not. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sparc: use HIDDEN_JUMPTARGET for errnoMike Frysinger2009-11-093-3/+3
| | | | | | | | | | 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-093-3/+3
| | | | | | | | | | | | __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>
* | Extend __gen_tempname with mode argumentMikhail Gusarov2009-11-0911-17/+22
| | | | | | | | | | | | | | | | | | | | sem_open(3) needs to create a temporary file in a way which can't be efficiently implemented in terms of POSIX API. Extend __gen_tempname with mode_t mode argument in order to ease sem_open implementation. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Rules.mak fix typo (qstrup -> qstrip)Austin Foxley2009-11-091-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | remove useless .gitignoreAustin Foxley2009-10-201-22/+0
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | whitespace fixesAustin Foxley2009-10-1764-130/+97
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | uClibc_main: add the needed support for nptlAustin Foxley2009-10-171-34/+75
| | | | | | | | | | | | | | | | * setup memory for the cancellation buffer * remove unneeded weak's * deallocation of tsd on main thread exit Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Config.in: don't attempt to disable lt.old automatically, just have the user ↵Austin Foxley2009-10-171-1/+1
| | | | | | | | | | | | get it right Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | librt additions that are now possible with nptlAustin Foxley2009-10-1711-54/+637
| | | | | | | | | | | | | | * clock_getcpuclockid, clock_gettime, clock_nanosleep, mq_receive, mq_send, mq_timedreceive, mq_timedsend, _SC_MONOTONIC_CLOCK Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | nptl provides sigaction and raiseAustin Foxley2009-10-171-0/+4
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | cancellation support for a large amount of the required syscallsAustin Foxley2009-10-1725-279/+1084
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | use *_not_cancel variants to avoid accidental cancellations with nptlAustin Foxley2009-10-179-36/+102
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | rework internal uClibc mutexes to support futex locking, and nptlAustin Foxley2009-10-1710-37/+119
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | build system changes needed for nptlAustin Foxley2009-10-177-11/+30
| | | | | | | | | | | | | | | | | | * add include dir for nptl * pregen nptl headers * add include dir to pick up subarchs * a few tweaks for test/* to match state of the code Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | arm specific bits needed for nptlAustin Foxley2009-10-175-8/+46
| | | | | | | | | | | | | | * SAVE_PID, RESTORE_PID in vfork.S * clone.S tweaks to allow for the pid to be reset Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | i386 specific bit for nptlAustin Foxley2009-10-175-4/+31
| | | | | | | | | | | | | | | | | | * RESET_PID support for clone.S * SAVE_PID, RESTORE_PID in vfork.S * fixup syscall assembly constraints to be a little less restrictive allows arbitrary variables to be used as the syscall nr Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | mips specific bits needed for nptlAustin Foxley2009-10-177-2/+259
| | | | | | | | | | | | | | * vfork impl with support for SAVE_PID, RESTORE_PID * sysdep.h assembly macros Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sh specific bits needed for nptlAustin Foxley2009-10-177-397/+378
| | | | | | | | | | | | | | | | | | * unified atomic.h compare and exchange macros * clone.S with RESET_PID support * sh specific versions of pread/pwrite with cancellation support * check SHARED instead of PIC Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sparc specific bits needed for nptlAustin Foxley2009-10-175-32/+511
| | | | | | | | | | | | | | * a tweaked clone.S with RESET_PID support * atomic.h with cmpxchg that works for v8 and beyond Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | some tweaks under libc/ needed for nptlAustin Foxley2009-10-178-18/+523
| | | | | | | | | | | | | | | | | | | | * updated kernel-features.h * system is provided by pt-system with nptl * _exit should do exit_group with nptl * tsd tls ptr in libc * rt_sigwaitinfo impl added Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/tls/: tests for thread local storage functionalityAustin Foxley2009-10-1745-0/+2911
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/nptl/: tests for NPTLAustin Foxley2009-10-17197-0/+26837
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | libpthread/nptl_db: debugging support for nptlAustin Foxley2009-10-1749-0/+3964
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | libpthread/nptl: core of the "Native Posix Threading Library" for uClibcAustin Foxley2009-10-17626-0/+55163
|/ | | | | | targetting arm,sh,i386,mips,sparc for now Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* add .gitignore for test/ and extra/Austin Foxley2009-10-172-0/+276
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* test/dlopen: use pthread_once directlyAustin Foxley2009-10-171-3/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* linuxthreads: check TLS_DTV_AT_TP define correctlyAustin Foxley2009-10-173-11/+11
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* mktemp does not depend on floatsAustin Foxley2009-10-171-1/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* gitignore: ignore install_dir/Austin Foxley2009-10-171-1/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Makerules: add a do_sed commandAustin Foxley2009-10-171-0/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: fixup missed variable rename ( tls_tpnt -> tpntp )Austin Foxley2009-10-161-2/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* remove readelf from helptextBernhard Reutner-Fischer2009-10-161-1/+1
| | | | | | readelf was removed Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>