summaryrefslogtreecommitdiffstats
path: root/include/string.h
Commit message (Collapse)AuthorAgeFilesLines
* remove unused hidden functionsPeter S. Mazinger2011-03-091-1/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* memmem.c, string.h: remove unused hidden memmemPeter S. Mazinger2011-03-091-1/+0
| | | | | | It is used only by gen_collate, not included into libc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* ctype.c, _collate.c, str[n]casecmp.c, strlcpy.c: remove unused hidden functionsPeter S. Mazinger2011-03-091-1/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* simplify ffs* codePeter S. Mazinger2011-03-061-7/+1
| | | | | | Remove __libc_ffs*, unneeded Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Implement ffsl and ffsll.Bernd Schmidt2011-03-051-2/+8
| | | | | | | | | This imports and adapts ffsll.c from glibc. The same mechanism as in glibc is used to choose between ffs and ffsll to implement ffsl. The single user in libc is changed to use the hidden version __libc_ffs. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com> Acked-by: Bernhard Reutner-Fischer <aldot@uclibc.org>
* s/UCLIBC_INTERNAL/_LIBC/gDenys Vlasenko2009-07-211-1/+1
| | | | | | | | | | Undo my old mistake. I added UCLIBC_INTERNAL define, but later I realized _LIBC is doing exactly the same thing. This change converts all usages of UCLIBC_INTERNAL to _LIBC, removing all instances of UCLIBC_INTERNAL. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* string: only include inline-asm if UCLIBC_HAS_STRING_ARCH_OPTMike Frysinger2009-07-201-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* relocate i386 string.h to i386-specific dirMike Frysinger2009-07-201-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add strverscmp() and versionsort[64]().Denis Vlasenko2009-02-081-2/+0
| | | | | By Hai Zaar (haizaar AT codefidence.com)
* since gcc -Os hates us and does not inline string ops,Denis Vlasenko2008-12-171-11/+18
| | | | | | | | | | implement inline versions of some of them. Enable only those which result roughly in the same code size as using out-or-line versions. None of this affects users, installed headers won't have any trace of it.
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-0/+2
| | | | | Appears to build fine (several .configs tried)
* In string.h, move libc_hidden_proto next to the corresponding declaration.Bernd Schmidt2008-06-081-116/+48
| | | | | | | Filter them out when installing headers. Tested by building up bfin-*linux toolchains and building our copy of uClinux-dist.
* This fixes a problem with the move of libc_hidden_proto to string.h.Bernd Schmidt2008-06-041-7/+2
| | | | | | | | | | | | | The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of <strings.h> from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include <string.h>. We then do not need to duplicate the libc_hidden_proto block in <strings.h>.
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-0/+121
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* - introduce UCLIBC_SUSV3_LEGACY_MACROS to be able to do away with all LEGACYBernhard Reutner-Fischer2006-11-291-1/+3
| | | | stuff, even the fallback defines.
* Add new option for SuSv3 legacy functions and use it for ↵Peter S. Mazinger2006-03-231-0/+12
| | | | bcopy/bzero/bcmp/index/rindex
* Sync w/ glibc and disable everything uClibc does not providePeter S. Mazinger2005-12-051-29/+19
|
* More hiding, including __mempcpyPeter S. Mazinger2005-12-031-0/+4
|
* Sync up w/ glibcPeter S. Mazinger2005-11-041-4/+4
|
* sjhill appears confused. vapier's earlier commit of string.h was broken.Manuel Novoa III2005-07-301-25/+36
| | | | | | 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-36/+25
| | | | | 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-26/+37
| | | | | compatibility. Also change _glibc_strerror_r to __glibc_strerror_r for consistency.
* sync with glibc versionsMike Frysinger2005-07-021-69/+98
|
* Cleanup some dead wood in the header filesEric Andersen2004-07-301-44/+0
|
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-241-0/+11
| | | | | | | | | 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-27/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+0
|
* Hide my personal #warning reminders. Add __wcschrnul, rename strchrnulManuel Novoa III2002-09-191-4/+2
| | | | to __strchrnul, and add weak aliases for them.
* Attempt to clean up the strerror_r situation.Manuel Novoa III2002-07-071-4/+23
|
* Update header for strlcat and strlcpy.Manuel Novoa III2002-07-051-0/+8
|
* Implement strerror_r. This is per SuSv3, not glibc which doesEric Andersen2002-06-171-1/+1
| | | | | something different. -Erik
* Eliminate C++ style commentsEric Andersen2002-01-101-5/+5
|
* Implement mempcpyEric Andersen2002-01-091-1/+2
|
* Fix stpcpy function declarationEric Andersen2002-01-061-2/+0
|
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-191-2/+2
|
* Add strndup, written by Stefan Soucek <ssoucek@coactive.com>Eric Andersen2001-10-111-2/+1
|
* Rev all the header files to sync things with glibc 2.2.4Eric Andersen2001-09-271-109/+334
|
* I just wrote a stpncpy() since someone wanted itEric Andersen2001-08-111-0/+2
|
* Added __BEGIN_DECLS and __END_DECLS to the files that didn't haveDavid McCullough2001-07-111-1/+4
| | | | | | it and that I could see needed it. Should be pretty low impact as these are only defined when using C++.
* Added stpcpy and strcasestr along with some code to test them.David McCullough2001-07-041-0/+3
|
* Fix the header file for index, rindex and similarEric Andersen2001-03-151-4/+5
|
* Add in wordexp support (mostly stubbed out for now) since the busyboxEric Andersen2001-03-081-0/+25
| | | | | shell, lash, is about to start using wordexp. -Erik
* Added __strtok_r function. Change strtok to a wrapper around __strtok_r andManuel Novoa III2001-03-011-0/+10
| | | | | add a weak alias of __strtok_r for strtok_r since optional. Also reduced code size.
* Add ffs func declarationEric Andersen2001-02-091-0/+4
| | | | -Erik
* Include real prototype for bcmpEric Andersen2000-10-231-1/+1
|
* More updates. Implement strsignal. Add pwd_grp testsEric Andersen2000-10-181-0/+2
|
* More missing prototypes.Eric Andersen2000-10-031-0/+5
|
* Rework all the string handling. Make const stuff be constified.Eric Andersen2000-07-061-24/+68
| | | | -Erik
* Initial revision0_9_1Erik Andersen2000-05-141-0/+56