summaryrefslogtreecommitdiffstats
path: root/libc/string
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-202-39/+650
| | | | Also added outdigit support and (legacy) YESSTR/NOSTR support.
* Added some temporary "stubs" for collation.Manuel Novoa III2002-11-083-60/+28
| | | | | | | | 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.
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-311-1/+1
| | | | | | | | | | | | | | | been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
* Patch from Stefan Allius <allius@atecom.com>:Eric Andersen2002-10-011-2/+1
| | | | 'wcschrnul.o' appeares two times in MOBJW2
* Hide my personal #warning reminders. Add __wcschrnul, rename strchrnulManuel Novoa III2002-09-192-3/+11
| | | | to __strchrnul, and add weak aliases for them.
* Reimplement sys_errlist[] so that it works on sparc, alpha, and mips.Manuel Novoa III2002-08-272-1/+161
| | | | | | | | 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-262-141/+178
| | | | | | | 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.
* Remove obsolete code.Manuel Novoa III2002-07-081-179/+0
|
* Fix a preprocessor buglet. Redo sys_siglist/strsignal/psignal.Manuel Novoa III2002-07-082-22/+195
|
* Obligatory forgotten file.Manuel Novoa III2002-07-071-3/+4
|
* Attempt to clean up the strerror_r situation.Manuel Novoa III2002-07-073-283/+375
|
* Add two missing glibc wide string funcs as well as OpenBSD string funcsManuel Novoa III2002-07-052-9/+97
| | | | strlcat and strlcpy.
* Add a weak to make apache happyEric Andersen2002-07-031-1/+1
| | | | -Erik
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-032-1/+3
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* Implement strerror_r. This is per SuSv3, not glibc which doesEric Andersen2002-06-171-18/+39
| | | | | something different. -Erik
* Cleanup the mess, remove now obsolete filesEric Andersen2002-06-1217-1041/+13
| | | | -Erik
* Write a new strxfrm that doesn't make function calls. Uses the same logic asEric Andersen2002-06-122-9/+49
| | | | | | before but unrolls the func calls and thereby eliminates some steps and some bytes. Now adds just 40 bytes to .text. -Erik
* New locale support (in development). Supports LC_CTYPE, LC_NUMERIC,Manuel Novoa III2002-05-062-13/+1315
| | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed stpncpy() implementation from ManuelEric Andersen2002-04-131-8/+10
|
* Swap in the new stdio code.Manuel Novoa III2002-03-122-27/+27
|
* Give the label a ; so compilers have no excuse to whineEric Andersen2002-02-261-1/+3
|
* Fix copyright messageEric Andersen2002-02-132-6/+34
|
* Mark Robson noticed that our strcasecmp() behaviour was notEric Andersen2002-02-122-22/+23
| | | | | | standards compliant. Brian Stafford then provided these new implementations, which apprear to properly follow SUSv2. -Erik
* Add in a weak __mempcpy for mempcpy to make certain GNUEric Andersen2002-02-021-0/+1
| | | | programs happy. bother...
* Implement mempcpyEric Andersen2002-01-092-1/+16
|
* Use public interface, not a glibc style private oneEric Andersen2002-01-062-4/+2
| | | | -Erik
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-192-3/+18
|
* Add basename and dirname. Write memrchr.Eric Andersen2001-12-194-2/+100
| | | | -Erik
* Add strndup, written by Stefan Soucek <ssoucek@coactive.com>Eric Andersen2001-10-112-2/+20
|
* Update to accomodate the header file changesEric Andersen2001-09-271-3/+3
|
* I just wrote a stpncpy() since someone wanted itEric Andersen2001-08-112-1/+18
|
* I rewrote strcat without any function calls.Eric Andersen2001-08-111-1/+9
|
* Fix strxfrm, which was broken (thanks to Shaya Potter <spotter@us.ibm.com>Eric Andersen2001-07-061-2/+4
| | | | | for noticing, and cleanup a warning. -Erik
* Added stpcpy and strcasestr along with some code to test them.David McCullough2001-07-043-11/+51
|
* Remove nonstandard functions.Manuel Novoa III2001-06-272-89/+1
|
* Make strrchr not call other string functions. HopefullyEric Andersen2001-06-151-8/+7
| | | | speeding it a bit.
* Cleanup the toploevel makefile handing of shared libs. Add weak_aliasEric Andersen2001-06-122-4/+4
| | | | | | define, and set things up so nasty old coff toolchains can now compile things and should actually work again. -Erik
* Add locale-enabled strcoll function from vodz, plus supporting tool.Manuel Novoa III2001-06-022-0/+35
|
* oops.Eric Andersen2001-06-011-3/+3
|
* decouple this from strchrEric Andersen2001-06-011-8/+12
|
* Ok, this should finish off my massive ro-organization. The sourceEric Andersen2001-05-121-2/+1
| | | | | | | | | tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-2/+2
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Put weak symbols where they can find what they are aliasing. Clean up strcspn.cManuel Novoa III2001-03-193-23/+3
|
* With the Official Declaration of coff being dead, we canEric Andersen2001-03-191-12/+3
| | | | | forget about wrapper functions and just use weak symbols. -Erik
* Wow. I'm all full of stupid mistakes today. Fix strxfrmEric Andersen2001-03-151-2/+3
| | | | -Erik
* Hah. It turned out that index and rindex were _already_Eric Andersen2001-03-151-10/+3
| | | | | | | there and already implemented as wrapper funcs. And so just the header files were wrong. Anyway, axe the old index and rindex. -Erik
* Add strxfrm and strcollEric Andersen2001-03-152-1/+16
|
* Add index and rindexEric Andersen2001-03-152-1/+15
|