summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Help unifdef to remove private parts of headersDenis Vlasenko2008-12-272-5/+12
|
* ctype: remove some trivial macros from ctype.h;Denis Vlasenko2008-12-2710-137/+120
| | | | | | | | | | | | remove __tolower and __toupper (they existed only in SOME configs!); remove usages of _tolower (some of them clearly buggy) from uclibc code; add a few more -U<define> options to unifdef pass over installed headers; document it on docs/wchar_and_locale.txt text data bss dec hex filename - 514963 2727 15396 533086 8225e lib/libuClibc-0.9.30-svn.so + 514888 2727 15396 533011 82213 lib/libuClibc-0.9.30-svn.so
* convert yet another old-style function definitionDenis Vlasenko2008-12-261-5/+5
|
* new regex: stop confusing ourself with _LIBC being undefined;Denis Vlasenko2008-12-265-165/+88
| | | | | | | | | | | | | | | | | nuke one struct initializer which was invisibly becoming a memset - this improves speed by x2: test 0 pattern 0 '.?.?.?.?.?.?.?Log\.13' - 0.249795s + 0.133522s test 0 pattern 1 '(.?)(.?)(.?)(.?)(.?)(.?)(.?)Log\.13' - 0.360115s + 0.191959s text data bss dec hex filename - 515009 2731 15396 533136 82290 lib/libuClibc-0.9.30-svn.so + 514961 2727 15396 533084 8225c lib/libuClibc-0.9.30-svn.so
* regex: remove useless casts on allocations;Denis Vlasenko2008-12-264-92/+96
| | | | | | | | | | remove old-style-C function params declarations; change re_comp_buf from struct to pointer (more static build friendly) text data bss dec hex filename - 514952 2731 15424 533107 82273 lib/libuClibc-0.9.30-svn.so + 515011 2731 15396 533138 82292 lib/libuClibc-0.9.30-svn.so
* regex: drop __<funcname> aliases. remove much of unused code.Denis Vlasenko2008-12-266-341/+52
| | | | | | | | | shrink offset tables. disable "likely/unlikely" BE() macro. text data bss dec hex filename - 515032 2731 15424 533187 822c3 lib/libuClibc-0.9.30-svn.so + 515014 2731 15424 533169 822b1 lib/libuClibc-0.9.30-svn.so
* test/regex/tst-regex2.c: fix the rest of testsuite failuresDenis Vlasenko2008-12-251-1/+12
|
* test/regex/tst-regex2.c: fix test failure. Next one is immediately after...Denis Vlasenko2008-12-251-1/+1
| | | | | | | | | | | | test 2 pattern 0 '.?.?.?.?.?.?.?Log\.13' -incorrect num_regs 30, expected 2 + 1.283480s +test 2 pattern 1 '(.?)(.?)(.?)(.?)(.?)(.?)(.?)Log\.13' + 3.429810s +test 2 pattern 2 '((((((((((.?))))))))))((((((((((.?))))))))))....' +incorrect num_regs 30, expected 72
* libc/sysdeps/linux/hppa/bits/signum.h: _NSIG == 65 is the common value,Denis Vlasenko2008-12-231-3/+0
| | | | | no need to define it here
* These defines needs to be considered after recent linux kernel combined i386 ↵Khem Raj2008-12-231-2/+6
| | | | and x86_64 into x86
* - mark capset() as linux specificBernhard Reutner-Fischer2008-12-222-2/+2
|
* - capget() is linux specific; Sync helptext with current exclude list.Bernhard Reutner-Fischer2008-12-221-1/+1
|
* - remove leftover from r13277Bernhard Reutner-Fischer2008-12-221-1/+0
|
* UCLIBC_CTYPE_HEADER define is removed, as it alwaysDenis Vlasenko2008-12-223-88/+50
| | | | | | | | | | | | | | | | | | | | | | equal to "include/bits/uClibc_ctype.h" __CTYPE_unclassified and other similar __CTYPE_xxxx constants are moved to separate include file, bits/uClibc_charclass.h Duplicate declaration of these constants is removed from libc/misc/wctype/_wctype.c Ugly re-inclusion trick in extra/locale/gen_wctype.c deleted Large ifdefed-out chunk in extra/locale/gen_wctype.c removed Move __CTYPE_isalnum() etc macros from uClibc_ctype.h to their single user, extra/locale/gen_wctype.c (can be simplified further) Overall, no code changes (verified with objdump)
* - fix fpclassify, signbit, isfinite, isnan, isinf macros for long double ↵Bernhard Reutner-Fischer2008-12-221-137/+57
| | | | | | math support - add rule to create preprocessor output for float- and long double math wrapper
* remove stray comment (the identical one is just a few lines down)Denis Vlasenko2008-12-221-2/+0
|
* Remove unused macrosDenis Vlasenko2008-12-221-15/+0
|
* docs/defines.txt: document _extern_inlineDenis Vlasenko2008-12-222-74/+64
| | | | | | | | | | | | | libc/inet/ether_addr.c: optimize tolower, we ever use it on 0-9a-f libc/inet/ntop.c: optimize tolower, we ever use it on 0-9a-f with locale support on, code size change is: text data bss dec hex filename - 396 0 24 420 1a4 libc/inet/ether_addr.os + 306 0 24 330 14a libc/inet/ether_addr.os - 1453 0 0 1453 5ad libc/inet/ntop.os + 1430 0 0 1430 596 libc/inet/ntop.os
* more of warning fixes, mostly pointer signedness mismatchesDenis Vlasenko2008-12-215-9/+10
|
* more of pointer signedness warnings removedDenis Vlasenko2008-12-213-18/+17
|
* heed multiple warnings of the typeDenis Vlasenko2008-12-211-7/+8
| | | | | | libc/stdio/_vfprintf.c:1892: warning: passing argument 1 of '_[w]stdio_fwrite' from incompatible pointer type
* libc/stdio/_scanf.c: heed lots of warnings about signed/unsigned charsDenis Vlasenko2008-12-201-24/+12
| | | | | | and such; remove two unneeded static string (inline "str" works better code-size wise).
* libc/misc/locale/locale.c: heed a pile of warningsDenis Vlasenko2008-12-201-17/+17
| | | | | from signed/unsigned char conversions
* libc/misc/locale/locale.c: remove one unneeded static data,Denis Vlasenko2008-12-201-11/+19
| | | | | | | | | | | | rewrite one exceptionally unreadable loop. Heed a few warnings (wrong type for string op params) text data bss dec hex filename - 1164 16 0 1180 49c libc/misc/locale/newlocale.os + 1180 0 0 1180 49c libc/misc/locale/newlocale.os - 494480 2751 15684 512915 7d393 lib/libuClibc-0.9.30-svn.so + 494472 2735 15684 512891 7d37b lib/libuClibc-0.9.30-svn.so
* Deal with a few data fields which may be made constant.Denis Vlasenko2008-12-202-20/+25
| | | | | | | | | text data bss dec hex filename - 1237 9 28 1274 4fa libc/inet/rpc/getrpcent.os + 1246 0 28 1274 4fa libc/inet/rpc/getrpcent.os - 773 24 0 797 31d libc/misc/time/_time_localtime_tzi.os + 772 16 0 788 314 libc/misc/time/_time_localtime_tzi.os
* libc/string/i386/rawmemchr.c: i386 version, adapted from strlen()Denis Vlasenko2008-12-202-9/+33
| | | | | | | | | libc/string/i386/strlen.c: small optimization, same code size) text data bss dec hex filename - 240449 1759 11960 254168 3e0d8 lib/libuClibc-0.9.30-svn.so + 240339 1759 11960 254058 3e06a lib/libuClibc-0.9.30-svn.so
* string/i386/strncpy.c: fixlet for testing codeDenis Vlasenko2008-12-202-1/+48
| | | | | | | | | string/i386/strchrnul.c: new function, adapted from strchr.c text data bss dec hex filename - 240604 1759 11960 254323 3e173 lib/libuClibc-0.9.30-svn.so + 240449 1759 11960 254168 3e0d8 lib/libuClibc-0.9.30-svn.so
* string/i386/strncpy: faster i386 version (same code size), testing codeDenis Vlasenko2008-12-206-28/+47
| | | | | string/i386/*: formatiing and commentary tidying up
* strchr: a bit faster version for i386 (same code size)Denis Vlasenko2008-12-191-15/+17
|
* memmove: smaller one for i386, with added testing, and withDenis Vlasenko2008-12-191-20/+32
| | | | | | | | | added check for src == dest. run tested. text data bss dec hex filename - 39 0 0 39 27 libc/string/i386/memmove.os + 37 0 0 37 25 libc/string/i386/memmove.os
* strncat: shorter version for i386, add small embedded testDenis Vlasenko2008-12-194-55/+106
| | | | | | | | | | | | memchr: add small embedded test strnlen: make small embedded test easier to use strncmp: reformat assembly to make it readable, no code changes (verified with objdump) text data bss dec hex filename - 46 0 0 46 2e libc/string/i386/strncat.os + 39 0 0 39 27 libc/string/i386/strncat.os
* string/i386: smaller, and hopefully easier to read, strnlen().Denis Vlasenko2008-12-191-16/+31
| | | | | | | text data bss dec hex filename - 25 0 0 25 19 libc/string/i386/strnlen.os + 24 0 0 24 18 libc/string/i386/strnlen.os
* fix for build failures resulting from "string ops for i386" changeDenis Vlasenko2008-12-172-1/+2
|
* - provide INTERNAL_SYSCALL for ia64 (Stefan Assmann, sassmann at suse de)Bernhard Reutner-Fischer2008-12-171-81/+110
|
* since gcc -Os hates us and does not inline string ops,Denis Vlasenko2008-12-179-9/+9
| | | | | | | | | | implement inline versions of some of them. Enable only those which result roughly in the same code size as using out-or-line versions. None of this affects users, installed headers won't have any trace of it.
* memchr: smaller i386 versionDenis Vlasenko2008-12-172-26/+34
| | | | | | | | | | | strrchr: smaller i386 version text data bss dec hex filename - 33 0 0 33 21 libc/string/i386/memchr.o + 28 0 0 28 1c libc/string/i386/memchr.o - 31 0 0 31 1f libc/string/i386/strrchr.o + 26 0 0 26 1a libc/string/i386/strrchr.o
* resolv: fix testcase failureDenis Vlasenko2008-12-171-2/+2
| | | | | test/regex/tst-regex2.c: fix testcase to compile with just "gcc <file>.c"
* - emulate unavailable syscall getpgrp on e.g. ia64 (Stefan Assmann)Bernhard Reutner-Fischer2008-12-161-1/+13
|
* Remove __libc_posix_fadvise[64] alias. It existed on i386 and arm only,Denis Vlasenko2008-12-153-15/+47
| | | | | | | | | and google says only uclibc has it, no users at all. text data bss dec hex filename - 229374 1367 11280 242021 3b165 lib/libuClibc-0.9.30-svn.so + 229347 1367 11280 241994 3b14a lib/libuClibc-0.9.30-svn.so
* remove some duplicates in bits/signum.h. No code changes.Denis Vlasenko2008-12-155-99/+2
| | | | | | | | | | | include/signal.h | 42 +++++++++++++++++++------------- libc/sysdeps/linux/alpha/bits/signum.h | 19 -------------- libc/sysdeps/linux/common/bits/signum.h | 22 ---------------- libc/sysdeps/linux/hppa/bits/signum.h | 17 ------------ libc/sysdeps/linux/mips/bits/signum.h | 23 +---------------- libc/sysdeps/linux/sparc/bits/signum.h | 20 --------------- 6 files changed, 27 insertions(+), 116 deletions(-)
* sigaction overhaul as described in docs/sigaction.txtDenis Vlasenko2008-12-1518-644/+326
| | | | | Run tested on i386.
* heed compiler warnings about checking non-defined variables in #if directivesDenis Vlasenko2008-12-144-12/+12
|
* Remove the rest of "bounded pointers" scaffolding. gcc website says"Denis Vlasenko2008-12-1316-173/+37
| | | | | | "Bounds Checking Projects... This project has been abandoned" for four years at least.
* make all "XXXhidden_proto(" consistently not use a space before '('Denis Vlasenko2008-12-133-9/+9
|
* string/generic/memcmp.c: remove some really paranoid guardsDenis Vlasenko2008-12-131-15/+2
| | | | | for ancient compilers. none of other string/*.c files have them.
* *: document __USE_EXTERN_INLINES better;Denis Vlasenko2008-12-131-0/+2
| | | | | fix uclibc build if it is forcibly enabled
* i386/brk.c: gcc can't figure out how to use %ebx in PIC mode,Denis Vlasenko2008-12-121-7/+12
| | | | | help it. Code size is the same.
* *: remove vestiges of gcc's "bounded pointers" feature,Denis Vlasenko2008-12-124-59/+28
| | | | | | it is dead (not supported by gcc) for years. (more of it remains in multiple copies of sigaction.c)
* smaller brk() for i386. Inspected assembly to see it's still valid.Denis Vlasenko2008-12-121-14/+12
| | | | | | | text data bss dec hex filename - 44 0 4 48 30 libc/sysdeps/linux/i386/brk.o + 42 0 4 46 2e libc/sysdeps/linux/i386/brk.o
* Move kernel-features.h header from the linuxthread directoryCarmelo Amoroso2008-12-112-0/+81
| | | | | | | | to a common one (libc/sysdeps/linux/common/bits) so that any function can access to supported kernel feature (i.e. getdents). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>