summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix indentation of comment in AVR32 memmove assembler optimization file.Hans-Christian Egtvedt2008-04-241-1/+1
|
* Fix whitespace damage in AVR32 in libc sysdeps AVR32 specific Linux files.Hans-Christian Egtvedt2008-04-2415-252/+252
|
* Fix whitespace damage in AVR32 libc sysdeps sys header files.Hans-Christian Egtvedt2008-04-244-77/+77
|
* Fix whitespace damage in AVR32 libc bits header files.Hans-Christian Egtvedt2008-04-2410-398/+398
|
* Cleanup INTERNAL_SYSCALL macros for ARM.Khem Raj2008-04-231-80/+35
|
* Added support for error_print_progname as proposedCarmelo Amoroso2008-04-221-3/+9
| | | | by Will Newton <will.newton@gmail.com>
* Fix mmap64 undefined on arm oabi with pure thumb1 patchset. Thanks Tobias ↵Khem Raj2008-04-201-0/+1
| | | | Poschwatta
* Fix whitespace damage in AVR32 string assembler optimized functions.Hans-Christian Egtvedt2008-04-169-363/+363
|
* amd64 string ops: use alignment more carefully, and comment it.Denis Vlasenko2008-04-158-30/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By capping max padding to not be bigger than three next insns, we avoid having ridiculously big NOPs like this one: 53:66 66 66 66 2e 0f 1f nopw %cs:0x0(%rax,%rax,1) 5a:84 00 00 00 00 00 which was bigger than next three insns combined! Size changes: text data bss dec hex filename 102 0 0 102 66 x86_64/memcpy.o 102 0 0 102 66 x86_64.old/memcpy.o 90 0 0 90 5a x86_64/mempcpy.o 102 0 0 102 66 x86_64.old/mempcpy.o 210 0 0 210 d2 x86_64/memset.o 242 0 0 242 f2 x86_64.old/memset.o 213 0 0 213 d5 x86_64/stpcpy.o 220 0 0 220 dc x86_64.old/stpcpy.o 428 0 0 428 1ac x86_64/strcat.o 444 0 0 444 1bc x86_64.old/strcat.o 417 0 0 417 1a1 x86_64/strchr.o 418 0 0 418 1a2 x86_64.old/strchr.o 33 0 0 33 21 x86_64/strcmp.o 33 0 0 33 21 x86_64.old/strcmp.o 213 0 0 213 d5 x86_64/strcpy.o 220 0 0 220 dc x86_64.old/strcpy.o 135 0 0 135 87 x86_64/strcspn.o 151 0 0 151 97 x86_64.old/strcspn.o 225 0 0 225 e1 x86_64/strlen.o 233 0 0 233 e9 x86_64.old/strlen.o 140 0 0 140 8c x86_64/strpbrk.o 156 0 0 156 9c x86_64.old/strpbrk.o 135 0 0 135 87 x86_64/strspn.o 151 0 0 151 97 x86_64.old/strspn.o Also, a few files got their .text alignment relaxed from 16 to 8 bytes, which reduces padding at link time.
* amd64 string ops: replace some instructions by smaller ones,Denis Vlasenko2008-04-155-13/+12
| | | | | e.g. testb $0xff, %cl -> testb %cl, %cl
* Functions should be either exported in public .h filesDenis Vlasenko2008-04-125-12/+5
| | | | | | | | | | | | | and marked with libc_hidden_proto/def(), or not be exported in .h files and be hidden (or even static if possible). We have five functions which violate this. Fixing: netdb.h: export ruserpass() rpc/rpc.h: export xdr_accepted_reply() and xdr_rejected_reply() make inet_ntoa_r static function (it is not exported in any .h file) make _time_tzset hidden function (it is not exported in any .h file)
* remove "register" from _vf[w]printf_internal declarations tooDenis Vlasenko2008-04-101-2/+2
|
* even more fixes for vda-made breakage in vXXXfprintfDenis Vlasenko2008-04-103-15/+12
| | | | | (pointed out by Peter S.Mazinger)
* fix breakage in old_vfprintf caseDenis Vlasenko2008-04-093-1/+26
|
* restore erroneously removed hidden_def for vdprintfDenis Vlasenko2008-04-091-0/+1
|
* Remove vestigial locking init from sprintf routines.Denis Vlasenko2008-04-093-12/+3
|
* Factor out the core of vprintf() into separate functionDenis Vlasenko2008-04-099-55/+124
| | | | | | | | | | | | vprintf_internal, so that: * vprintf() does locking and __STDIO_STREAM_TRANS_TO_WRITE thing, then calls vprintf_internal * vsnprintf, vdprintf.c, vasprintf.c use vprintf_internal directly This makes sprintf faster (since it doesn't do any locking) and stops it from pulling in fseek in static compile.
* Fix remap_file_pages prototype and use mman.h headerCarmelo Amoroso2008-04-011-3/+3
|
* Paul Brook writes:Bernhard Reutner-Fischer2008-03-2623-22/+757
| | | | | | | | | | | | | | | The attached patch adds support for compiling arm uClibc as pure Thumb code. This is needed because some recent ARM codes do not implement traditional ARM mode. Specifically: * Cortex-M1 - An extremely minimal FPGA based core that only implements Thumb-1 (aka ARMv6-M). * Cortex-M3 - A Thumb-2 only ARMv7-M core. Most of uClibc already builds in Thumb mode, all that is left are a handful of assembly bits. Tested on arm-uclinuxeabi.
* Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>Carmelo Amoroso2008-03-211-0/+16
|
* michael_d writes in [#2064]: fix building on linux-2.0 systemsMike Frysinger2008-03-214-6/+21
|
* avr32: Use HIDDEN_JUMPTARGET() macro in bzero.SHaavard Skinnemoen2008-03-132-6/+1
| | | | | Also, remove the hidden __memset symbol from memset.S
* From: Geoffrey Wossum <geoffrey@pager.net>Haavard Skinnemoen2008-03-131-0/+2
| | | | | Found a problem with the AVR32 optimized bzero() code. Due to a missing #include, it actually generated no code.
* Fix file permissionsCarmelo Amoroso2008-02-281-0/+0
|
* Added support for ether_line, ether_ntohost and ether_hostton.Carmelo Amoroso2008-02-282-1/+123
| | | | | | | Added related test cases. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Hacked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Ricard Wanderlof writes:Mike Frysinger2008-02-231-9/+0
| | | | | | | The following definitions in getaddrinfo.c seem redundant as they _are_ defined in the public netdb.h header, contrary to the comment. AI_DEFAULT is not, however it is not used in the file either so can be safely removed.
* xtensa: the size of the elf_gregset_t array is actually 128.Chris Zankel2008-02-201-1/+1
| | | | Signed-off-by: Chris Zankel <chris@zankel.net>
* Use HIDDEN_JUMPTARGET define instead of __GI_ directly in AVR32 filesHans-Christian Egtvedt2008-02-204-4/+4
| | | | | | | This patch uses the HIDDEN_JUMPTARGET instead of the __GI_ prefix in AVR32 assembler files. This is done to follow the code style in uClibc. Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
* Xtensa: Provide an architecture specific sigaction and sa_restorer function ↵Chris Zankel2008-02-203-3/+81
| | | | | | in libc to avoid having to place executable code on stack. Signed-off-by: Chris Zankel <chris@zankel.net>
* posix_fadvise64 on 64bit systems take 5 arguments, not 6, as pointed out by ↵Mike Frysinger2008-02-161-1/+1
| | | | skinkie in #2194
* fix typo pointed out by skinkie in #2194Mike Frysinger2008-02-161-1/+1
|
* add hidden_proto's for __uc_mallocDenis Vlasenko2008-02-1212-0/+13
| | | | | (patch by Bernd Schmidt <bernds_cb1 at t-online.de>)
* Omit adding 'OUTPUT_FORMAT' to the libc.so linker script if the architectureChris Zankel2008-02-111-2/+2
| | | | | | didn't provide one (Xtensa, for example, is such an architecture). Signed-off-by: Chris Zankel <chris@zankel.net>
* Added AI_NUMERICSERV flag and check if the string is not just a numberCarmelo Amoroso2008-02-071-2/+6
| | | | | | when AI_NUMERICSERV flag set. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Fix stack overflow in _ppfs_parsespecCarmelo Amoroso2008-02-071-1/+1
|
* give execlp() its own cache on no-mmu to avoid recursive cache fightingMike Frysinger2008-01-231-37/+57
|
* L1 memory support for the Blackfin. A couple new syscalls to manage L1Bernd Schmidt2008-01-187-13/+69
| | | | | allocations, dma_memcpy to move stuff between L1 and main memory, and a new structure to describe the global data in L1 scratchpad memory.
* - fix compilation:Bernhard Reutner-Fischer2008-01-171-0/+3
| | | | | In file included from toolchain_build_i386/gcc-3.4.6/libiberty/hashtab.c:49: build_i386/staging_dir/i386-linux-uclibc/sys-include/malloc.h:193: error: ISO C forbids data definition with no type or storage class
* - fix linking.Bernhard Reutner-Fischer2008-01-171-1/+1
| | | | We use the compiler-driver and not ld.
* A patch from our Blackfin repository, originally from Jie Zhang. This fixesBernd Schmidt2008-01-1728-81/+4
| | | | | | | | | | | | | a problem where the linker was trying to use the wrong symbol name for the init function. Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960, microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets which define SYMBOL_PREFIX as _. Remove defines and undefs from uClibc_arch_features.h of each target. Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
* Use poll() rather than select() if the former is available to wait inPeter Kjellerstedt2008-01-111-0/+26
| | | | | __dns_lookup(). This avoids segmentation faults when more than 1024 file descriptors are used by an application.
* - Fix compilation: semtimedop has 4 args (and not 6)Bernhard Reutner-Fischer2008-01-091-1/+1
|
* add workaround for gcc-3.4.6 with mipsMike Frysinger2008-01-091-1/+1
|
* Daniel Jacobowitz writes:Mike Frysinger2008-01-091-0/+26
| | | | | | | | MontaVista noticed that when their kernels were configured to trap on unaligned access gethostbyname_r could mysteriously crash. I tracked this down to an unaligned buffer being passed to gethostbyname_r from some other part of uClibc (afraid I don't remember where from any more). We have to pad the beginning of the buffer to a pointer alignment before we store pointers in it.
* change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger2008-01-0827-27/+27
| | | | doing double negatives
* Switch sh64 to use __uClibc_main and the new register layout.Paul Mundt2008-01-081-28/+25
| | | | | | This was one of the stragglers still bent on __uClibc_start_main utilization, now it's only FR-V.
* Bring sh64 support back from the dead.Paul Mundt2008-01-086-63/+181
|
* fix memory corruption on no-mmu from doing multiple execls where earlier ↵Mike Frysinger2008-01-081-10/+3
| | | | execls fail by simply not releasing the memory reserved for the arguments of children processes
* this code does not actually rely on INTERNAL_SYSCALLMike Frysinger2008-01-051-3/+1
|
* if an arch does not provide __NR_mmap, fall back to __NR_mmap2 (this just ↵Mike Frysinger2008-01-053-25/+30
| | | | generalizes what Blackfin was already doing)