summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* clean up O_CLOEXEC handlingMike Frysinger2009-10-1622-47/+32
| | | | | | | | Drop the "#ifndef O_CLOEXEC" cruft, enable O_CLOEXEC in most fcntl.h headers, and import __ASSUME_O_CLOEXEC from glibc. Signed-off-by: Mike Frysinger <vapier@gentoo.org> 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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* malloc: handle size overflows in realloc()Mike Frysinger2009-10-161-0/+3
| | | | | | | | | | The malloc() code checks the incoming size to make sure the header adjustment doesn't cause overflow in the size storage. Add the same check to realloc() to catch stupid stuff like realloc(..., -1). Reported-by: James Coleman <james.coleman@ubicom.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc qops: unify & shrinkMike Frysinger2009-10-161-51/+40
| | | | | | | | | | We don't really need to know the exact symbol that caused a failure as long as we know where to start looking. So unify the duplicate code between all funcs and between the sparc variants. This gives us a nice code shrink of ~95%. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fcntl.h: drop unused/dead O_STREAMINGMike Frysinger2009-10-1610-10/+0
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: use MAP_FAILED with ld.so.cacheMike Frysinger2009-10-161-5/+5
| | | | | | | | Rather than use our own custom casted -1 value, just use the MAP_FAILED that common code already sets up for us for mmap(). Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix coding styleBernhard Reutner-Fischer2009-10-161-25/+16
| | | | | | | TODO: use likely/unlikely Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* commentary typo fixBernhard Reutner-Fischer2009-10-161-2/+2
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* trim whitespaceBernhard Reutner-Fischer2009-10-161-10/+10
| | | | | | | and wrap superlong line. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* whitespace cleanupBernhard Reutner-Fischer2009-10-161-4/+4
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc: add stubs for more of the _Q* opsAustin Foxley2009-10-161-0/+12
| | | | | | Thanks to Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* descriptive error messageBernhard Reutner-Fischer2009-10-161-1/+1
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sh: Align sh clone implementation with glibcCarmelo Amoroso2009-10-101-8/+7
| | | | | | | | | Align sh clone implementation with glibc one that incorporated time ago a patch provided by me slightly modified. The glibc code indeed avoids to load the r3 register if the 2nd function argument is NULL (r5). No functional change. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh4: Reorder code in memmove.cCarmelo Amoroso2009-10-101-32/+30
| | | | | | | Remove forward declaration for service routine. Reorder code and keep hidden_def right after the respective function. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix building arm EABIBernhard Reutner-Fischer2009-10-082-1/+2
| | | | | | | | | | | | | | | The syscall() impl on aeabi comes from syscall-eabi.S thus we do not need the generic syscall() impl. Fixes: AS libc/sysdeps/linux/arm/syscall-eabi.os CC libc/sysdeps/linux/common/syscall.os libc/libc_so.a(syscall.os): In function `syscall': syscall.c:(.text+0x0): multiple definition of `syscall' libc/libc_so.a(syscall-eabi.os):(.text+0x0): first defined here Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mips nptl: Cleanup up _ABI64 warningsAustin Foxley2009-09-273-1/+5
| | | | | 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>
* sh: Add new optimisation to the SH4 memcpyGiuseppe Cavallaro2009-09-271-2/+107
| | | | | | | | | | | | | | | | | | This optimization is based on prefetching and 64bit data transfer via FPU (only for the little endianess) Tests shows that: ---------------------------------------- Memory bandwidth | Gain | sh4-300 | sh4-200 ---------------------------------------- 512 bytes to 16KiB | ~20% | ~25% from 32KiB to 16MiB | ~190% | ~5% ---------------------------------------- Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: add assembly strcpy and strncpyGiuseppe Cavallaro2009-09-272-0/+71
| | | | | | | | | | | | | | | | | This patch adds the strcpy and strncpy assembly routines. Benchmarks showed the following gains: ~7% for strcpy ~30% for strncpy Note: uClibc string tests pass without any failures. These functions have been only tested on SH4, for this reason I've voluntarily added them within the sh4 sub-folder. If somebody would like to test them on other SH CPUs, these can be moved on sh common folder. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: add assembly strlen from KernelGiuseppe Cavallaro2009-09-271-0/+75
| | | | | | | | Faster assembly implementation of strlen taken from Linux kernel. Adapted to uClibc. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: add assembly memchr from KernelGiuseppe Cavallaro2009-09-271-0/+30
| | | | | | | | Faster assembly implementation of memchr taken from Linux kernel. Adapted to uClibc. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: add a new memmove optimised for SH4Giuseppe Cavallaro2009-09-271-0/+119
| | | | | | | | | | | | | | | This patch adds the memmove fuction for SH4. By default, it used the generic implementation. This new code uses the memcpy for BWD copies and implements FWD copy when required (see comment within the code itself). The idea behind is to get advantage of using the optimised memcpy for SH4 and use the FPU for FWD copies (for big sizes) as well. LMBench bw_mem test showed a significant improvement on uClibc because bcopy invokes memmove, directly. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: add assembly memset from Kernel and optimise it for SH4Giuseppe Cavallaro2009-09-271-0/+146
| | | | | | | | | | | This patch adds the SH memset assembly implementation currenlty included into the Kernel. It also adds, only for little endian mode, the 64bit data transfer via FPU (using single paired precision mode). Tests shows that on SH4-300 we gain ~100% for size greater than 1KiB. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* build C files within arch subfolders.Giuseppe Cavallaro2009-09-271-1/+4
| | | | | Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Revert part of ecd7069ac6Austin Foxley2009-09-252-0/+5
| | | | | | This seemingly harmless warning fix causes mutex use in libc to crash... Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc specific bits/socket.hAustin Foxley2009-09-251-0/+356
| | | | | | | use socketcall for sparc32 since it does not have the individual socket syscalls 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>
* use correct define to guard non tls errnoAustin Foxley2009-09-232-17/+1
| | | | | | also cleanup errno.c to match master tls patch 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>
* add i386 ldso tls supportAustin Foxley2009-09-232-3/+31
| | | | | | only for the basic reloc types for now Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* tls: test for DTV vs TCB at TP correctlyAustin Foxley2009-09-2312-59/+59
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* doc/: typo fixAustin Foxley2009-09-231-1/+1
| | | | | | noted by Carlo Zinato <c.zinato@viscount.it> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* spent this morning beating i386 nptl into shapeAustin Foxley2009-09-2249-500/+824
| | | | | | 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-223-3/+5
| | | | 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>
* add timerfd syscall and headerStephan Raue2009-09-214-1/+94
| | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com> Signed-off-by: Stephan Raue <mailinglists@openelec.tv>
* not-cancel: use *_not_cancel variants directlyAustin Foxley2009-09-2111-144/+37
| | | | | | add a no threads version of not-cancel.h to fallback on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* uClibc_mutex.h: define non-thread versions of all the io-mutex macrosAustin Foxley2009-09-211-5/+12
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc/Makefile.arch: add back missing fork/vfork for non threads caseAustin Foxley2009-09-211-3/+6
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* librt/: fix build for no threads caseAustin Foxley2009-09-211-3/+3
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* warning fixesAustin Foxley2009-09-215-9/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc sigaction.c: fix the noted bugs by syncing up with glibcAustin Foxley2009-09-211-30/+16
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* add a __resp ptr for the no threads caseAustin Foxley2009-09-202-0/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* guard sysdep-cancel.h include under defineAustin Foxley2009-09-201-0/+6
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* guard tls.h includeAustin Foxley2009-09-201-0/+3
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* TLS only even builds for nptl, so restrict it to thatAustin Foxley2009-09-201-1/+1
| | | | 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>
* guard sysdep.h include with correct defineAustin Foxley2009-09-201-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>