summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2008-04-24- fixup asm. No object-code changesBernhard Reutner-Fischer
2008-04-24Fix indentation of comment in AVR32 memmove assembler optimization file.Hans-Christian Egtvedt
2008-04-24Fix whitespace damage in AVR32 in libc sysdeps AVR32 specific Linux files.Hans-Christian Egtvedt
2008-04-24Fix whitespace damage in AVR32 libc sysdeps sys header files.Hans-Christian Egtvedt
2008-04-24Fix whitespace damage in AVR32 libc bits header files.Hans-Christian Egtvedt
2008-04-23Cleanup INTERNAL_SYSCALL macros for ARM.Khem Raj
2008-04-22Added support for error_print_progname as proposedCarmelo Amoroso
by Will Newton <will.newton@gmail.com>
2008-04-20Fix mmap64 undefined on arm oabi with pure thumb1 patchset. Thanks Tobias ↵Khem Raj
Poschwatta
2008-04-16Fix whitespace damage in AVR32 string assembler optimized functions.Hans-Christian Egtvedt
2008-04-15amd64 string ops: use alignment more carefully, and comment it.Denis Vlasenko
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.
2008-04-15amd64 string ops: replace some instructions by smaller ones,Denis Vlasenko
e.g. testb $0xff, %cl -> testb %cl, %cl
2008-04-12Functions should be either exported in public .h filesDenis Vlasenko
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)
2008-04-10remove "register" from _vf[w]printf_internal declarations tooDenis Vlasenko
2008-04-10even more fixes for vda-made breakage in vXXXfprintfDenis Vlasenko
(pointed out by Peter S.Mazinger)
2008-04-09fix breakage in old_vfprintf caseDenis Vlasenko
2008-04-09restore erroneously removed hidden_def for vdprintfDenis Vlasenko
2008-04-09Remove vestigial locking init from sprintf routines.Denis Vlasenko
2008-04-09Factor out the core of vprintf() into separate functionDenis Vlasenko
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.
2008-04-01Fix remap_file_pages prototype and use mman.h headerCarmelo Amoroso
2008-03-26Paul Brook writes:Bernhard Reutner-Fischer
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.
2008-03-21Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>Carmelo Amoroso
2008-03-21michael_d writes in [#2064]: fix building on linux-2.0 systemsMike Frysinger
2008-03-13avr32: Use HIDDEN_JUMPTARGET() macro in bzero.SHaavard Skinnemoen
Also, remove the hidden __memset symbol from memset.S
2008-03-13From: Geoffrey Wossum <geoffrey@pager.net>Haavard Skinnemoen
Found a problem with the AVR32 optimized bzero() code. Due to a missing #include, it actually generated no code.
2008-02-28Fix file permissionsCarmelo Amoroso
2008-02-28Added support for ether_line, ether_ntohost and ether_hostton.Carmelo Amoroso
Added related test cases. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Hacked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-02-23Ricard Wanderlof writes:Mike Frysinger
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.
2008-02-20xtensa: the size of the elf_gregset_t array is actually 128.Chris Zankel
Signed-off-by: Chris Zankel <chris@zankel.net>
2008-02-20Use HIDDEN_JUMPTARGET define instead of __GI_ directly in AVR32 filesHans-Christian Egtvedt
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>
2008-02-20Xtensa: Provide an architecture specific sigaction and sa_restorer function ↵Chris Zankel
in libc to avoid having to place executable code on stack. Signed-off-by: Chris Zankel <chris@zankel.net>
2008-02-16posix_fadvise64 on 64bit systems take 5 arguments, not 6, as pointed out by ↵Mike Frysinger
skinkie in #2194
2008-02-16fix typo pointed out by skinkie in #2194Mike Frysinger
2008-02-12add hidden_proto's for __uc_mallocDenis Vlasenko
(patch by Bernd Schmidt <bernds_cb1 at t-online.de>)
2008-02-11Omit adding 'OUTPUT_FORMAT' to the libc.so linker script if the architectureChris Zankel
didn't provide one (Xtensa, for example, is such an architecture). Signed-off-by: Chris Zankel <chris@zankel.net>
2008-02-07Added AI_NUMERICSERV flag and check if the string is not just a numberCarmelo Amoroso
when AI_NUMERICSERV flag set. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
2008-02-07Fix stack overflow in _ppfs_parsespecCarmelo Amoroso
2008-01-23give execlp() its own cache on no-mmu to avoid recursive cache fightingMike Frysinger
2008-01-18L1 memory support for the Blackfin. A couple new syscalls to manage L1Bernd Schmidt
allocations, dma_memcpy to move stuff between L1 and main memory, and a new structure to describe the global data in L1 scratchpad memory.
2008-01-17- fix compilation:Bernhard Reutner-Fischer
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
2008-01-17- fix linking.Bernhard Reutner-Fischer
We use the compiler-driver and not ld.
2008-01-17A patch from our Blackfin repository, originally from Jie Zhang. This fixesBernd Schmidt
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.
2008-01-11Use poll() rather than select() if the former is available to wait inPeter Kjellerstedt
__dns_lookup(). This avoids segmentation faults when more than 1024 file descriptors are used by an application.
2008-01-09- Fix compilation: semtimedop has 4 args (and not 6)Bernhard Reutner-Fischer
2008-01-09add workaround for gcc-3.4.6 with mipsMike Frysinger
2008-01-09Daniel Jacobowitz writes:Mike Frysinger
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.
2008-01-08change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger
doing double negatives
2008-01-08Switch sh64 to use __uClibc_main and the new register layout.Paul Mundt
This was one of the stragglers still bent on __uClibc_start_main utilization, now it's only FR-V.
2008-01-08Bring sh64 support back from the dead.Paul Mundt
2008-01-08fix memory corruption on no-mmu from doing multiple execls where earlier ↵Mike Frysinger
execls fail by simply not releasing the memory reserved for the arguments of children processes
2008-01-05this code does not actually rely on INTERNAL_SYSCALLMike Frysinger