summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Finish reorganizing things. At least I think I've finished.Eric Andersen2000-10-111-0/+3
|
* Bug ugly formatting updateEric Andersen2000-10-091-5/+4
|
* Fix all the makefiles. Clean up some warnings, cleanup some headers.Eric Andersen2000-10-041-70/+70
| | | | -Erik
* + added alloca() support for all architecturesJohn Beppu2000-08-211-0/+4
| | | | | by way of gcc's __builtin_alloca(). I think I did it right, but we'll see.
* More stuff. Down to only 43 missing functions before BusyBox willEric Andersen2000-08-101-1/+1
| | | | | | link. Fixed socket stuff so it doesn't pull in kernel headers and stubbed out fork and clone. A few other header file cleanups. -Erik
* Add in a bunch of junk. Busybox now compiles (except for mkfs.minix andEric Andersen2000-07-091-2/+23
| | | | | | fsck.minix). Of course, it doesn't link yet due to missing functions, but hey... At least it is now easy to see what isn't working. :-) -Erik
* Some more major updates to further superate ucLibc from the kernelEric Andersen2000-07-061-2/+0
| | | | | headers (the way it has been done in GNU libc). -Erik
* Lots and lots of cleanups.Eric Andersen2000-07-061-0/+3
| | | | -Erik
* Many bugfixes, header cleanups, etc. Added abort and glob.Eric Andersen2000-07-051-0/+6
| | | | | It is getting closer... -Erik
* Add in the "_start" symbol in asm. Fix a makefile (that needs to beErik Andersen2000-05-161-0/+3
| | | | | | | abstracted I suppose for platforms (though I am doing fine w/o libcrt*) and add function prototype for exit into stdlib.h (it was missing... odd). Compiles vs uC-libc are less noisy now. -Erik
* Work in progress -- cleanups.Erik Andersen2000-05-141-0/+2
| | | | -Erik
* Initial revision0_9_1Erik Andersen2000-05-141-0/+75