summaryrefslogtreecommitdiffstats
path: root/libc/string
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix string.h. Change our _susv3_strerror_r to __xpg_strerror_r for glibcManuel Novoa III2005-07-282-10/+10
| | | | | compatibility. Also change _glibc_strerror_r to __glibc_strerror_r for consistency.
* Fic gcc 4.0 compilation. Still no confimation that this works onJoakim Tjernlund2005-06-211-30/+42
| | | | gcc 4.0 but I don't want to wait anymore.
* merge parallel build supportMike Frysinger2005-01-258-41/+35
|
* Patch from Peter S. Mazinger to consistantly use "ASFLAGS"Eric Andersen2004-12-224-4/+4
| | | | as the flags for all calls to 'as'
* Add a couple of mips-specific string funcs.Manuel Novoa III2004-09-0234-2/+3706
| | | | | | | | | Port the generic optimized string funcs from glibc, with some tweaks to cut their size a little. The main change is making memmove call memcpy for forward copying to trim redundant code. Make use of both the generic and arch-specific speed-optimized string funcs configurable. Arch-specific take precedence over generic, and generic takes precedence over basic size-optimized uClibc funcs.
* Fix a couple of symbol name issues.Manuel Novoa III2004-09-021-5/+8
|
* Philip Craig at snapgear dot com writes:Eric Andersen2004-06-121-1/+10
| | | | Strlen was counting the last 3 bytes incorrectly for big endian arm.
* Alexandre Oliva writes:Eric Andersen2004-05-144-1/+319
| | | | | This patch introduces optimized versions of memcpy and memset for frv.
* Supply '__bzero' with 'bzero' as just a weak alias (since it is not SuSv3)Eric Andersen2004-03-182-4/+7
|
* 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.
* Paul Mundt, lethal at linux-sh dot org writes:Eric Andersen2004-01-302-1/+61
| | | | Boredom got the better of me, here's strlen() for sh64..
* Joakim Tjernlund writes:Eric Andersen2004-01-273-1/+245
| | | | | | | | | | | | Hi Erik I have had some fun trying to optimize memcpy, memset and memmove for PPC. There are only boot tested, but I don't expect any problems :) Read the comments in powerpc/string.c for more info. Patch is relative to libc/string Jocke
* Patch from Paul Mundt <lethal@linux-sh.org>:Eric Andersen2003-12-175-1/+431
| | | | | The subject says it all.. optimized memset/memcpy/strcpy, lifted from SuperH's glibc tree.
* Add missing weak alias for bcmpEric Andersen2003-11-201-0/+4
|
* Don't depend on BSD namingEric Andersen2003-11-201-12/+12
|
* Add an initial set of arm optimized string functions. TheseEric Andersen2003-11-2012-1/+1117
| | | | | do seem to make noticable speed improvement... -Erik
* Fixup dependancies to ensure arch specific string functionsEric Andersen2003-11-201-3/+3
| | | | will always win
* Add in aliases provided by the non arch specific implementationsEric Andersen2003-11-061-0/+6
|
* The curse of cut-n-pasteEric Andersen2003-11-062-12/+2
|
* Add some initial x86 string optimizations. These make no attempt to use niftyEric Andersen2003-11-063-2/+385
| | | | | | | | | | | things like mmx/3dnow/etc. These are not inline, and will therefore not be as fast as modifying the headers to use inlines (and cannot therefore do tricky things when dealing with const memory). But they should (I hope!) be faster than their generic equivalents.... More importantly, these should provide a good example for others to follow when adding arch specific optimizations. -Erik
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* 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-012-65/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-162-1/+35
|
* 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-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
|