summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* - fix warning about static not being at the beginning of a declBernhard Reutner-Fischer2008-05-211-1/+1
|
* replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.Denis Vlasenko2008-05-2012-63/+31
|
* getopt: do not needlessly use static structure.Denis Vlasenko2008-05-202-20/+18
| | | | | | | | | Reorder structure members and change some of them into smallints to reduce bss and text: text data bss dec hex filename - 2403 12 40 2455 997 libc/unistd/getopt.o + 2252 12 0 2264 8d8 libc/unistd/getopt.o
* Introduce and use small[u]int type. Changes in size:Denis Vlasenko2008-05-2013-16/+23
| | | | | | | | | | | | | | - 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
* - note that __drand48_iterate should be voidBernhard Reutner-Fischer2008-05-201-0/+3
|
* - remove old-style definitions. No object-code changes.Bernhard Reutner-Fischer2008-05-2024-113/+34
|
* - silence warningBernhard Reutner-Fischer2008-05-201-1/+1
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-19216-431/+433
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* Added a bounch of locale fixes.Carmelo Amoroso2008-05-192-1/+3
| | | | | | | | | | | | | | | | | * extra/locale/gen_wc8bit.c: use strrchr to parse locale name to handle the case in which it contains a '.' character like ANSI_X3.4-1968 * include/locale.h: use __UCLIBC_HAS_XLOCALE__ to control inclusion of xlocale.h only * libc/misc/ctype/ctype.c: add missing weak_alias for __tolower_l and __toupper_l * libc/misc/locale/locale.c: use strcasecmp (case insensitive) for utf-8 locale name. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* realpath: do not set bogus errno when readlink fails.Denis Vlasenko2008-05-081-22/+26
|
* - add missing #endifBernhard Reutner-Fischer2008-05-0324-1/+23
|
* - implement splice,vmsplice,tee for all archesBernhard Reutner-Fischer2008-05-0324-158/+806
| | | | - synch F_LINUX_SPECIFIC_BASE related fcntls for all arches
* Wire up vmsplice, splice and tee for arm.Khem Raj2008-05-031-11/+14
|
* - add vmsplice, splice, tee (Timo Teräs)Bernhard Reutner-Fischer2008-05-024-10/+106
| | | | - pull bits/fcntl.h from glibc (Timo Teräs)
* __uc_malloc: remove stray semicolonsDenis Vlasenko2008-04-281-3/+3
|
* Experimentally move libc_hidden_proto(time) to time.h.Denis Vlasenko2008-04-283-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only code change observed is actually a case where we were not doing that as needed: 00000000 <__GI_tzset>: -53 push %ebx -e8 00 00 00 00 call 6 <__GI_tzset+0x6> -5b pop %ebx -81 c3 03 00 00 00 add $0x3,%ebx - R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 6a 00 push $0x0 -e8 fc ff ff ff call 10 <__GI_tzset+0x10> - R_386_PLT32 time +e8 fc ff ff ff call 3 <__GI_tzset+0x3> + R_386_PC32 __GI_time 3d ff 4e 98 45 cmp $0x45984eff,%eax 0f 9e c0 setle %al 0f b6 c0 movzbl %al,%eax 50 push %eax -e8 fc ff ff ff call 21 <__GI_tzset+0x21> +e8 fc ff ff ff call 14 <__GI_tzset+0x14> R_386_PC32 _time_tzset 58 pop %eax 5a pop %edx -5b pop %ebx c3 ret No mass migration of libc_hidden_proto(foo) planned. Lets wait for potential fallout first.
* reinstate external visibility of inet_ntoa_r,Denis Vlasenko2008-04-251-1/+3
| | | | | and add it to arpa/inet.h header.
* - fixup asm. No object-code changesBernhard Reutner-Fischer2008-04-2444-187/+187
|
* 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>)