summaryrefslogtreecommitdiffstats
path: root/libc/misc
Commit message (Collapse)AuthorAgeFilesLines
* add hidden aliases for newer regex search functionsBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | | Fixes 3575b741754b391a27e33bb1866bdb29131b7fea which only changed the old impl but not the new one. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fnmatch.c: Include unistd.h before undefining _LIBC.Khem Raj2009-08-011-2/+9
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fnmatch.c: Change scope of posixly_correct to be global.Khem Raj2009-07-311-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* remove erroneous ';'Bernhard Reutner-Fischer2009-07-282-4/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix dl_iterate_phdr() for FDPIC systemsMike Frysinger2009-07-231-0/+5
| | | | | | | The dlpi_addr isn't a simple Elf_Addr type for FDPIC systems, so we can't just assign 0 to it to initialize. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix building for systems w/out ldso supportMike Frysinger2009-07-201-1/+3
| | | | | | | If an arch (like alpha and others) have no ldso support at all, then there is no point in attempting to walk loaded modules in the dl-* helper funcs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* first pass at implementing *at funcsMike Frysinger2009-07-201-19/+49
| | | | | | | Tested basic functionality with coreutils and things seem to work. At least gives us a basis to jump from. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* dirent: push dirent type to prototypesMike Frysinger2009-07-206-32/+12
| | | | | | | | | | This syncs the dirent related functions with the glibc behavior -- rather than take void pointers everywhere, make the struct dirent pointers explicit in the API. After all, the functions themselves will cast the pointers to a dirent structure, so if it isn't as expected, people will crash. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* regex: convert #if to #ifdefMike Frysinger2009-07-202-2/+2
| | | | | | Avoid gcc warnings about #if statements with defines that aren't defined. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add hidden aliases for older regex search functionsMike Frysinger2009-07-201-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Check #if feature test macros are defined where they may not beRon2009-07-051-1/+1
| | | | | | | | | Once again all of these reduce the noise from gcc-4.4. Replaces a few more (USE_TLS && HAVE___THREAD) with USE___THREAD while we need to mess with them for this anyhow. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Provide token prototypes for functions that are external but have no headerRon2009-07-051-3/+2
| | | | | | | This cuts down on a lot of noise from gcc-4.4 Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* wchar: fix inverted parameters in error messageAndré Goddard Rosa2009-06-281-1/+1
| | | | | | | | | | The error message should output "fromcode -> tocode" rather than "tocode -> fromcode". Seems to be a typo due to the order of the func called: iconv_t iconv_open(const char *tocode, const char *fromcode); Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* - fix fallout from r24140 and r24160 for !CTYPE_TABLESBernhard Reutner-Fischer2009-02-131-0/+1
|
* Add strverscmp() and versionsort[64]().Denis Vlasenko2009-02-083-2/+34
| | | | | By Hai Zaar (haizaar AT codefidence.com)
* "make utils" now successfully makes utils for targetDenis Vlasenko2009-01-281-1/+1
|
* *: remove __UCLIBC_CURLOCALE_DATA, __UCLIBC_CURLOCALE_DATA.xDenis Vlasenko2009-01-214-41/+33
| | | | | | | | | | | | | | | | | | | is always equivalent to __UCLIBC_CURLOCALE->x. remove typedef __uclibc_locale_t, it used only in a few places, it is lees confusing to use struct __uclibc_locale_struct everywhere. xlocale.h: hide __global_locale back under _LIBC, bug 53 is wrong in claiming it should be exported. Also hide under _LIBC: extern __locale_t __curlocale_var; extern __locale_t __curlocale(void); extern __locale_t __curlocale_set(__locale_t newloc); # define __UCLIBC_CURLOCALE # define __XL_NPP(N) # define __LOCALE_PARAM # define __LOCALE_ARG # define __LOCALE_PTR
* - expand SUSv3_LEGACYBernhard Reutner-Fischer2008-12-291-3/+5
| | | | - SUSv4_LEGACY part #1 (non-networking)
* ctype: remove some trivial macros from ctype.h;Denis Vlasenko2008-12-276-24/+19
| | | | | | | | | | | | 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
* UCLIBC_CTYPE_HEADER define is removed, as it alwaysDenis Vlasenko2008-12-221-36/+2
| | | | | | | | | | | | | | | | | | | | | | 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)
* more of warning fixes, mostly pointer signedness mismatchesDenis Vlasenko2008-12-211-1/+1
|
* more of pointer signedness warnings removedDenis Vlasenko2008-12-212-14/+13
|
* 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-201-19/+24
| | | | | | | | | 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
* heed compiler warnings about checking non-defined variables in #if directivesDenis Vlasenko2008-12-143-10/+10
|
* *: remove vestiges of gcc's "bounded pointers" feature,Denis Vlasenko2008-12-121-34/+11
| | | | | | it is dead (not supported by gcc) for years. (more of it remains in multiple copies of sigaction.c)
* *: remove some __libc_XXX functions:Denis Vlasenko2008-12-101-5/+3
| | | | | | | | | | | | __libc_accept __libc_close __libc_connect __libc_creat __libc_creat64 __libc_fsync __libc_lseek __libc_lseek64 __libc_msync __libc_nanosleep __libc_open __libc_open64 __libc_pause __libc_read __libc_readv __libc_recv __libc_recvfrom __libc_recvmsg __libc_send __libc_sendmsg __libc_sendto __libc_tcdrain __libc_wait __libc_waitpid __libc_write __libc_writev They were removed from glibc 1 May 2004: http://sources.redhat.com/ml/libc-hacker/2004-05/msg00001.html
* remove __libc_fcntl[64]Denis Vlasenko2008-12-101-4/+2
|
* Fix wcswidth function when LOCALE support is disabledCarmelo Amoroso2008-12-021-0/+7
| | | | | | | | | | while keeping WCHAR support enabled. This solves two testcases: tst_wcwidth and tst_wcswidth. Fix dat_iswctype.c fiinput file: character 0x80 is not a control character: it fixes tst_iswctype test. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* on Bernd's request, remove commented-out code snippetsDenis Vlasenko2008-12-011-4/+0
|
* optimize signal mask ops. comment out "impossible" errorsDenis Vlasenko2008-12-011-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | text data bss dec hex filename - 1179 13 2 1194 4aa libc/misc/syslog/syslog.o + 1165 13 2 1180 49c libc/misc/syslog/syslog.o - 435 4 0 439 1b7 libc/pwd_grp/lckpwdf.o + 393 4 0 397 18d libc/pwd_grp/lckpwdf.o - 38 0 0 38 26 libc/signal/sigandset.o + 32 0 0 32 20 libc/signal/sigandset.o - 63 0 0 63 3f libc/signal/sigblock.o + 56 0 0 56 38 libc/signal/sigblock.o - 22 0 0 22 16 libc/signal/sigempty.o + 20 0 0 20 14 libc/signal/sigempty.o - 25 0 0 25 19 libc/signal/sigfillset.o + 20 0 0 20 14 libc/signal/sigfillset.o - 34 0 0 34 22 libc/signal/sigisempty.o + 16 0 0 16 10 libc/signal/sigisempty.o - 38 0 0 38 26 libc/signal/sigorset.o + 32 0 0 32 20 libc/signal/sigorset.o - 119 0 0 119 77 libc/signal/sigpause.o + 113 0 0 113 71 libc/signal/sigpause.o - 215 0 0 215 d7 libc/signal/sigset.o + 211 0 0 211 d3 libc/signal/sigset.o - 63 0 0 63 3f libc/signal/sigsetmask.o + 56 0 0 56 38 libc/signal/sigsetmask.o - 194 0 1 195 c3 libc/stdlib/abort.o + 183 0 1 184 b8 libc/stdlib/abort.o - 323 0 0 323 143 libc/unistd/sleep.o + 309 0 0 309 135 libc/unistd/sleep.o
* random: use smaller data fields where appropriateDenis Vlasenko2008-12-011-1/+1
| | | | | | | | | text data bss dec hex filename - 130 156 0 286 11e libc/stdlib/random.o + 130 148 0 278 116 libc/stdlib/random.o - 586 0 0 586 24a libc/stdlib/random_r.o + 570 0 0 570 23a libc/stdlib/random_r.o
* fix improperly hidden fwprintf.Denis Vlasenko2008-11-291-12/+2
| | | | | | | | | make two data objects static. text data bss dec hex filename - 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so + 274693 1835 19012 295540 48274 lib/libuClibc-0.9.30-svn.so
* - make isascii visible againBernhard Reutner-Fischer2008-11-271-2/+2
| | | | TODO: *_l() should go
* - revert 24148:24151Bernhard Reutner-Fischer2008-11-261-10/+7
|
* libc/string: need additional work to remove libc_hidden_proto's properlyDenis Vlasenko2008-11-261-2/+2
|
* - hide some time related relocsBernhard Reutner-Fischer2008-11-251-7/+10
|
* - hide __libc_{f,}statfs. Thanks to Peter S. Mazinger for mentioning this fact.Bernhard Reutner-Fischer2008-11-254-4/+0
|
* - cosmetic tidy up of clean targetBernhard Reutner-Fischer2008-11-251-3/+3
|
* - make sure isspace() is exported.Bernhard Reutner-Fischer2008-11-251-3/+6
| | | | Thanks to Skinkie for noticing.
* fix some unneeded PLT referencesDenis Vlasenko2008-11-221-1/+4
|
* fix apparent typo (unnoticed for long time, probablyDenis Vlasenko2008-11-211-1/+1
| | | | | because it didn't affect little endian arches)
* deal with TODOs left over from libc_hidden_proto removalDenis Vlasenko2008-11-212-9/+4
| | | | | (fixes build with locale enabled)