summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
Commit message (Collapse)AuthorAgeFilesLines
* sync some headers and disable unused prototypesPeter S. Mazinger2009-11-221-11/+15
| | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* realpath: SUSv4 compliantBernhard Reutner-Fischer2009-11-221-3/+1
| | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sync a few headers with glibc (no functional changes)Mike Frysinger2009-08-191-17/+15
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* note that we do not want hidden malloc aliasesMike Frysinger2009-08-191-0/+2
| | | | | | | | | | | We want to let malloc() and friends be overridable at runtime so that apps can insert their own implementation (think debugging, specialized setups, etc...). That means that C library functions that return allocated memory have to go through the normal malloc() symbol as well as the external code is the one who will be calling free(). Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Merged revisions 25821,25823-25824,25836 via svnmerge from Khem Raj2009-03-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.uclibc.org/svn/trunk/uClibc ........ r25821 | aldot | 2009-03-25 12:27:56 -0700 (Wed, 25 Mar 2009) | 2 lines - do not pass -Wl with -shared in LDFLAGS_NOSTRIP (Peter S. Mazinger) ........ r25823 | aldot | 2009-03-25 13:28:19 -0700 (Wed, 25 Mar 2009) | 8 lines - Add strtouq alias (to strtoul) for 64bit The strtouq alias was only available on 32bit, breaking compilation of stuff using strtouq on 64bit machines. At the same time use the correct return type (u_quad_t). Signed-of-by: Peter Korsgaard <jacmet@sunsite.dk> ........ r25824 | aldot | 2009-03-26 01:51:47 -0700 (Thu, 26 Mar 2009) | 2 lines - ignore objects ........ r25836 | landley | 2009-03-26 21:03:20 -0700 (Thu, 26 Mar 2009) | 3 lines 32/64 bit sparc got unified in 2.6.29 the way x86/x86_64 did in 2.6.28. The new guard symbol is "__SPARC_POSIX_TYPES_H". ........
* - pull r24593:24596 from trunkBernhard Reutner-Fischer2008-12-291-0/+2
|
* Synch with trunk @ 24242Carmelo Amoroso2008-12-031-3/+4
| | | | | Step 18: some more synch: hidden_proto, size reduction and signal handling changes.
* Synch with trunk @ 24157Carmelo Amoroso2008-11-261-0/+26
| | | | Step 11: More libc_hidden_proto removal
* Synch with trunk @ 24087Carmelo Amoroso2008-11-181-0/+2
| | | | Step 10: libc_hidden_removal
* Synch with trunk @ 24075.Carmelo Amoroso2008-11-171-0/+1
| | | | Step 8: include folder
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-091-4/+11
| | | | 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>
* More merging from trunk."Steven J. Hill"2007-01-211-2/+4
|
* Merge from trunk."Steven J. Hill"2006-02-251-2/+11
|
* Merge from trunk."Steven J. Hill"2005-12-101-35/+0
|
* Changes for NPTL and new build system."Steven J. Hill"2005-12-021-60/+65
|
* Merge from trunk."Steven J. Hill"2005-11-171-76/+183
|
* Merge/sync with trunk."Steven J. Hill"2005-08-171-7/+0
|
* Fixed up resolver and errno code such that both thread models can compile ↵"Steven J. Hill"2005-07-221-1/+1
| | | | without stepping on each other. The original implementation pulled from glibc was done incorrectly and has been fixed.
* Cleanup some dead wood in the header filesEric Andersen2004-07-301-224/+0
|
* Remove all reference to __GLIBC_HAVE_LONG_LONGEric Andersen2004-07-271-3/+3
|
* Move an #endif that was in the wrong place.Manuel Novoa III2003-09-051-1/+1
|
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-241-0/+31
| | | | | | | | | 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-126/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Comment out the rpl_malloc workaround. It was a good idea, but it violatesEric Andersen2003-06-141-0/+2
| | | | | namespace guarantees and conflicts with other programs that have used the AC_FUNC_MALLOC autoconf macro properly.
* grr. It's a void *, not a char *.Eric Andersen2003-05-271-1/+1
|
* Change 'N' to '__size' to avoid conflicts with common #define of NEric Andersen2003-05-271-5/+5
|
* Cope with autoconf's broken AC_FUNC_MALLOC macro, which redefines malloc asEric Andersen2003-05-231-0/+12
| | | | | | | | | rpl_malloc if it does not detect glibc style returning-a-valid-pointer-for-malloc(0) behavior. This wrapper calls malloc() as usual, but if N is zero, we allocate and return a 1-byte block instead.... sigh... -Erik
* Hide unimplemented and legacy ecvt and friends from configure.Eric Andersen2003-01-091-0/+2
| | | | -Erik
* For now, "#if 0" out the inlining of (currently unsupported) glibc-specificManuel Novoa III2003-01-081-1/+6
| | | | string->numeric conversion functions.
* Fixup sysconf to report the correct answer when UCLIBC_DYNAMIC_ATEXITEric Andersen2002-11-271-1/+6
| | | | is enabled.
* Kill the HAS_LONG_LONG option. It really did not make a lot ofEric Andersen2002-08-251-16/+0
| | | | | | sense to exclude it, gcc always supports long long, and we never fully excluded long long anyways (off64_t for example). -Erik
* Patch from Jarkko to fix drand48 to not use long long whenEric Andersen2002-08-151-0/+2
| | | | long long support is disabled in the uClibc Config.
* Enable getpt prototype.Manuel Novoa III2002-08-061-2/+3
|
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-031-0/+26
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* New locale support (in development). Supports LC_CTYPE, LC_NUMERIC,Manuel Novoa III2002-05-061-6/+6
| | | | | | | | | | | | | | | | | | | | | | 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.
* Disable a lingering bit of wide char junkEric Andersen2002-02-141-1/+2
|
* Hide all reference to wchar_t so configure won't get confusedEric Andersen2002-01-161-2/+4
| | | | -Erik
* Eliminate C++ style commentsEric Andersen2002-01-101-3/+3
|
* Rev all the header files to sync things with glibc 2.2.4Eric Andersen2001-09-271-101/+844
|
* Wrap up some long long stuff in __UCLIBC_HAS_LONG_LONG__Eric Andersen2001-08-291-1/+3
|
* atoi, atol, atoll, and atof are supposed to be functions, not macros.Eric Andersen2001-08-241-4/+4
| | | | -Erik
* Added __BEGIN_DECLS and __END_DECLS to the files that didn't haveDavid McCullough2001-07-111-0/+3
| | | | | | it and that I could see needed it. Should be pretty low impact as these are only defined when using C++.
* A patch from Matthias Kilian <kili@outback.escape.de> to fix -DDEBUG_MALLOCEric Andersen2001-05-111-1/+1
| | | | | so that it works for realloc too. -Erik
* Add in random(), make rand use that under the hood. Fix theEric Andersen2001-03-221-2/+3
| | | | include file so folks know random is now there.
* Fix up breakage resulting from flipping the sense of some defines. Change fromEric Andersen2001-03-191-1/+1
| | | | | | | | defining things to "0" in the disabled case to outright undefining them, lest code that does an "#ifdef FOO" get inadvertantly triggered. Remove now unneeded lines from Rules.mak which makes the command line smaller and avoids redundancy (since this stuff is now pulled in via features.h). -Erik
* Make alloca work using the compiler builtinEric Andersen2001-03-081-0/+6
| | | | -Erik
* Clean up atexit.c; make sure sysconf and atexit agree; link in ref'd libgcc.aManuel Novoa III2001-01-251-1/+2
| | | | objects with shared uClibc; allow disabling long long support.
* A bunch of updates, part from Manuel Novoa III (such as more long longEric Andersen2001-01-011-0/+3
| | | | | support), and other updates by me (better cross platform, cross-compiler, etc, support. Now compiles with 2.0.x kernels for armnommu.
* A number of updates from Manuel Novoa III. Things look good...Eric Andersen2000-12-201-2/+2
|
* A few cleanups. Fix fflush so it remembers to init stdio.Eric Andersen2000-12-121-3/+3
|