summaryrefslogtreecommitdiffstats
path: root/libc/misc
Commit message (Collapse)AuthorAgeFilesLines
* support building out-of-treeBernhard Reutner-Fischer2009-08-1925-0/+50
| | | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* add hidden aliases for newer regex search functionsBernhard Reutner-Fischer2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* remove erroneous ';'Bernhard Reutner-Fischer2009-08-192-4/+4
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix dl_iterate_phdr() for FDPIC systemsMike Frysinger2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix building for systems w/out ldso supportMike Frysinger2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* first pass at implementing *at funcsMike Frysinger2009-08-191-18/+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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* dirent: push dirent type to prototypesMike Frysinger2009-08-196-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* regex: convert #if to #ifdefMike Frysinger2009-08-192-2/+2
| | | | | | | Avoid gcc warnings about #if statements with defines that aren't defined. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* add hidden aliases for older regex search functionsMike Frysinger2009-08-191-0/+2
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fnmatch.c: Include unistd.h before undefining _LIBC.Khem Raj2009-08-021-2/+9
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fnmatch.c: Change scope of posixly_correct to be global.Khem Raj2009-08-021-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Check #if feature test macros are defined where they may not beRon2009-07-091-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Provide token prototypes for functions that are external but have no headerRon2009-07-091-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* wchar: fix inverted parameters in error messageAndré Goddard Rosa2009-07-091-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Use __UCLIBC_HAS_TLS__ (now available) as guard for TLS relatedCarmelo Amoroso2009-02-201-1/+1
| | | | | | | | stuff, instead of __UCLIBC_HAS_THREADS_NATIVE__. This is in preparation on trunk merge to make TLS compatible with LT (new) and NPTL. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - synch r25316:25325 from trunkBernhard Reutner-Fischer2009-02-181-0/+1
|
* Add strverscmp() and versionsort[64]().Denis Vlasenko2009-02-083-2/+34
| | | | | By Hai Zaar (haizaar AT codefidence.com)
* Minor changes to silent compiler warning due to sigdness.Carmelo Amoroso2009-01-291-1/+1
| | | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* *: 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
* - pull r24593:24596 from trunkBernhard Reutner-Fischer2008-12-291-3/+5
|
* 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
* Fix nptl librt build breakage Khem Raj2008-12-241-2/+2
|
* ldso/ldso/mips/*: non-pic support from trunkDenis Vlasenko2008-12-231-19/+24
| | | | | | | | | | libc/string/*: small fixes sync from trunk test/regex/tst-regex2.c: small fixes sync from trunk libc/misc/time/time.c: optimization from trunk: text data bss dec hex filename - 854 24 0 878 36e libc/misc/time/_time_localtime_tzi.os + 818 16 0 834 342 libc/misc/time/_time_localtime_tzi.os
* sync with trunk. Compile tested on i386Denis Vlasenko2008-12-236-123/+73
|
* Get non nptl threads compiled on x86.Khem Raj2008-12-235-19/+25
|
* Synch with trunk @ 24242Carmelo Amoroso2008-12-034-21/+6
| | | | | Step 18: some more synch: hidden_proto, size reduction and signal handling changes.
* 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>
* signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-12-021-8/+8
| | | | Sync from trunk.
* sign-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-12-021-1/+2
| | | | Move includes out of __UCLIBC_HAS_THREADS_NATIVE__ conditional
* signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-12-023-20/+48
| | | | | More merges from trunk to get nptl compiling for arm. Also fix some errno related linking problems.
* Synch with trunk @ 24165Carmelo Amoroso2008-11-2754-380/+365
| | | | | Step 17: libc_hidden_proto removal (almost all). and other minor changes (inline keyword, extra character)
* Synch with trunk @ 24160Carmelo Amoroso2008-11-272-8/+9
| | | | Step 13: build system updates.
* Synch with trunk @ 24087Carmelo Amoroso2008-11-1820-60/+60
| | | | Step 10: libc_hidden_removal
* Synch with trunk @ 24075.Carmelo Amoroso2008-11-1723-615/+425
| | | | Step 6: libc/misc
* Synch with trunk @ 24075.Carmelo Amoroso2008-11-1723-92/+92
| | | | | Step 5 Various Makefile.in
* Make sure that multi-threaded statically linked applications use the realCarmelo Amoroso2008-09-031-2/+1
| | | | | | | | | | locking implementations instead of the empty stubs from libc.a. Removed also old work-around added to opendir, due to wrong pthread_mutex_init (from libc.a) used in static binaries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-3128-255/+302
| | | | | | | Basically trailing whitespaces removal, fix non standard keywords asm -> __asm__ inline -> __inline__ and some minor changes on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix the builds without STDIO_FUTEXES. Fix msgecv and msgsend to compile on ↵Khem Raj2008-07-091-57/+45
| | | | ARM as well.
* BIG BIG commit: forgotten filesCarmelo Amoroso2008-07-095-0/+203
|
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-0953-565/+623
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* SYnch with trunk: new filesCarmelo Amoroso2008-07-092-0/+25
|
* Synch the whole build system. Also including recent fix on testsuite build ↵Carmelo Amoroso2008-07-097-11/+20
| | | | system
* Sync build machinery stuff from trunk. Some more fixed for mips nptl portKhem Raj2008-06-274-5/+2
|
* Remove pointless initialisation to 0 of some DIR's fieldsCarmelo Amoroso2007-12-091-1/+0
| | | | | | | | having called memset on whole DIR structure (and synch with trunk). Pointed out by Peter Mazinger Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>