summaryrefslogtreecommitdiffstats
path: root/libc/string/wstring.c
Commit message (Collapse)AuthorAgeFilesLines
* Complete split of all the string functions. Hope haven't broken too much. ↵Peter S. Mazinger2006-01-031-3247/+0
| | | | wcscoll/strcoll needs some love ...
* Remove all trailing ; after *_alias and change 2 to use weak_alias instead ↵Peter S. Mazinger2005-12-161-2/+2
| | | | of __attribute__ ...
* Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add ↵Peter S. Mazinger2005-12-161-3/+4
| | | | it back
* Hidden __xpg|glibc_strerror_rPeter S. Mazinger2005-12-081-6/+9
|
* Hide str*casecmp/*coll/*xfrm and make use of the internal versionsPeter S. Mazinger2005-12-061-23/+45
|
* Sync w/ glibc and disable everything uClibc does not providePeter S. Mazinger2005-12-051-0/+4
|
* _uintmaxtostr is only internally used, we do not need a rename, ↵Peter S. Mazinger2005-12-031-2/+0
| | | | uClibc_uintmaxtostr.h is only internal header, remove from target
* Enable alias for 'bcopy' otherwise BusyBox will not build *sigh*."Steven J. Hill"2005-12-021-1/+1
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-8/+3
|
* Guard wcs* w/ WANT_WIDEPeter S. Mazinger2005-11-281-0/+3
|
* Hide some wcs*Peter S. Mazinger2005-11-271-0/+6
|
* Hide some of mem* and str*Peter S. Mazinger2005-11-271-14/+28
|
* Correct build if locales are enabled s/wcslcpy/wcsxfrm/, found by Paul ↵Peter S. Mazinger2005-11-151-1/+1
| | | | Brook. Thanks
* Split up wstring.c and use attribute_hiddenPeter S. Mazinger2005-11-141-80/+293
|
* powerpc version of bzero using memsetPeter S. Mazinger2005-11-111-0/+4
|
* weaks moved after the related function so gcc4 won't warnPeter S. Mazinger2005-09-221-44/+44
|
* remove 0.9.27 compat aliasMike Frysinger2005-08-181-1/+0
|
* add a 0.9.27 compat symbol (_glibc_strerror_r) since the function has since ↵Mike Frysinger2005-08-161-0/+1
| | | | been renamed to __glibc_strerror_r in 0.9.28
* sjhill appears confused. vapier's earlier commit of string.h was broken.Manuel Novoa III2005-07-301-2/+2
| | | | | | But I fixed it, and tested both x86 (locale) and mipsel before I commited the fixes. Just built with gcc 4.0.1 to see if that was the cause of his problems, but x86 (locale) built fine. So revert his last change.
* The newly added __glibc_strerror_r function is probably fine, but the"Steven J. Hill"2005-07-301-2/+2
| | | | | uClibc did not even compile or link without errors. This fixes that up. Please test more thoroughly next time.
* Fix string.h. Change our _susv3_strerror_r to __xpg_strerror_r for glibcManuel Novoa III2005-07-281-8/+8
| | | | | compatibility. Also change _glibc_strerror_r to __glibc_strerror_r for consistency.
* Fix a couple of symbol name issues.Manuel Novoa III2004-09-021-5/+8
|
* Based on a patch from Alexandre Oliva, remove all reference to 'bzero' (whichEric Andersen2004-03-181-1/+2
| | | | | is not a SuSv3 symbol). Rather than using __bzero internally per Alexandre's original patch, use memset instead.
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-111-8/+1
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* Patch by Atsushi Nemoto <anemo@mba.ocn.ne.jp> to do arch-requiredManuel Novoa III2003-09-111-66/+103
| | | | mapping of signal strings (alpha, mips, hppa, sparc).
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-241-9/+23
| | | | | | | | | Move stub gettext functions to a stub libintl to make switching in gnu gettext easier. Also add a few gnu-isms. Change to using hidden names with global weak aliases for the extended locale functions, as expected by libstd++. Slightly rework the locale data generation stuff to allow pregenerated locale data to be used with buildroot.
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-011-58/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
* Add memmem().Manuel Novoa III2003-06-161-0/+34
|
* Remove bogus link_warning. It is meaningless and stupid. While theManuel Novoa III2003-03-031-2/+0
| | | | | | previous committed patch was well-meaning, the #warning it replaced was simply a reminder I accidently left in when implementing strcoll/wcscoll. Besides, strcmp is completely locale invariant.
* Patch from Stefan Allius:Eric Andersen2003-02-171-1/+2
| | | | | In libc/string/wstring I replaced a '#warning ..' statement by the link_warning macro.
* The big thing is locale dependent collation support.Manuel Novoa III2002-12-201-37/+647
| | | | Also added outdigit support and (legacy) YESSTR/NOSTR support.
* Added some temporary "stubs" for collation.Manuel Novoa III2002-11-081-7/+25
| | | | | | | | strcoll is an alias for strcmp. strxfrm is an alias for strlcpy. wcscoll is an alias for wcscmp. wcsxfrm is implemented as a wchar version of strlcpy. Real locale-dependent implementations are coming soon.
* Hide my personal #warning reminders. Add __wcschrnul, rename strchrnulManuel Novoa III2002-09-191-2/+9
| | | | to __strchrnul, and add weak aliases for them.
* Reimplement sys_errlist[] so that it works on sparc, alpha, and mips.Manuel Novoa III2002-08-271-0/+160
| | | | | | | | In my opinion, this is a complete waste of good memory and is only done to avoid the anticipated whining by people who think this libary is named uCglibc. At some point this may become a configurable option. And even then, it may not be available in all configs... for instance when system error messages become locale-dependent.
* sparc, alpha, and mips have different errno values than the otherManuel Novoa III2002-08-261-140/+177
| | | | | | | supported platforms. Adjust _susv3_strerror_r function to deal with this. Also fix an error in strerror() wrt invalid errnos. NOTE: sys_errlist and sys_nerr are no longer supported!!!
* Revert commit by davidm to printf.c that initialized conv_numManuel Novoa III2002-08-121-0/+6
| | | | | | | | | needlessly. To do so increases the generated code size with bcc. Eliminate duplicate define warnings in wstring.c. Fix potentially broken preprocessor comparisons. The preprocessor converts integers to maximal signed type, so inequality comparisons involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX were potentially broken.
* Fix a preprocessor buglet. Redo sys_siglist/strsignal/psignal.Manuel Novoa III2002-07-081-4/+194
|
* Attempt to clean up the strerror_r situation.Manuel Novoa III2002-07-071-10/+375
|
* Add two missing glibc wide string funcs as well as OpenBSD string funcsManuel Novoa III2002-07-051-6/+94
| | | | strlcat and strlcpy.
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-031-1/+1
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* Cleanup the mess, remove now obsolete filesEric Andersen2002-06-121-10/+13
| | | | -Erik
* New locale support (in development). Supports LC_CTYPE, LC_NUMERIC,Manuel Novoa III2002-05-061-0/+1273
LC_TIME, LC_MONETARY, and LC_MESSAGES for the SUSv3 items. Also, nl_langinfo() when real locale support is enabled. New implementation of ctype.h. New implementation of wctype.h. New implementation of most of the string functions (smaller). New implementation of the wcs/wmem functions. These are untested, but they're also just preprocessor-modified versions ot the corresponding str/mem functions. Tweaked qsort and new bsearch. Stuff still pending: stdlib.h and wchar.h mb<->wc functions. I actually have working versions of the stdlib ones, but the reentrant versions from wchar.h require some reworking. Basic replacement and translit support for wc->mb conversions. (groundwork laid). Simple-minded collate support such as was provided by the previous locale implementation. (mostly done -- 8-bit codesets only) Shared mmaping of the locale data and strerror message text.