summaryrefslogtreecommitdiffstats
path: root/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
...
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-031-9/+17
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* This patch, from Ronald Wahl <rwa@peppercon.com>, fixes theEric Andersen2002-07-011-5/+5
| | | | | spots where I screwed up and forgot to fix realloc to use free_unlocked() instead of free(). Thanks Ronald!
* Rework, reduce the size, add proper lockingEric Andersen2002-06-189-529/+342
| | | | -Erik
* Remove obsolete files.Manuel Novoa III2002-06-182-110/+0
|
* Silly name changeEric Andersen2002-06-181-4/+3
|
* Rework and kill pointless static variableEric Andersen2002-06-181-28/+25
| | | | -Erik
* Commit the new time stuff, even though I haven't made it threadsafe yet.Manuel Novoa III2002-06-171-1/+2
| | | | At least people can play with it. Also, fix a buglet in setenv.c.
* Kill the libc-lock headers, which we do not use and which areEric Andersen2002-06-101-6/+7
| | | | | not correct for uClibc. Fix setenv locking to behave itself. -Erik
* Doh!Eric Andersen2002-06-011-1/+1
|
* Rework setenv, getenv and friends per the latest glibc code, but cleanedEric Andersen2002-05-304-200/+191
| | | | | up for readability. Merge in putenv. Add clearenv as a side effect. -Erik
* Multibyte and wide char conversion functions. Some work still to do, butManuel Novoa III2002-05-232-0/+139
| | | | | they're quite solid now and Erik needs them for the gcc port. Comments at the head of wchar.c.
* Revert Erik's previous patch and fix what I believe he was trying to, whileManuel Novoa III2002-05-121-20/+28
| | | | preserving the space-saving aliases.
* Several bugfixes for problems that showed up on alphaEric Andersen2002-05-121-7/+19
| | | | -Erik
* New locale support (in development). Supports LC_CTYPE, LC_NUMERIC,Manuel Novoa III2002-05-062-14/+172
| | | | | | | | | | | | | | | | | | | | | | 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.
* Remove function declartions from include/features.h, createEric Andersen2002-04-013-0/+3
| | | | | a separate header file for those, and fixup references. -Erik
* Rework __gen_tempname() to better match glibc, and add mkstemp64(),Eric Andersen2002-03-314-8/+33
| | | | | which is needed for busybox ash when using largefile support. -Erik
* Fix compile problem when ASSUME_DEVPTS=falseEric Andersen2002-03-201-0/+2
| | | | | | | getpt.c: In function 'getpt': getpt.c:83: 'have_no_dev_ptmx' undeclared ... oops. -Erik
* Merge glibc random, which gets us a much better RNG and aEric Andersen2002-03-193-24/+607
| | | | | | reentrant one as well. It is not much bigger than what we had, so... -Erik
* Add implementations of strtof() and strtold(). These are a bitEric Andersen2002-03-143-1/+65
| | | | | | lame, since internally I'm just using strtod, but that keeps things small, and has the side effect of making these easy to write. -Erik
* Merge in an ugly pile of rand* functions from glibc. :(Eric Andersen2002-03-1317-2/+578
|
* New versions of the various string to int functions which are smallerManuel Novoa III2002-03-135-437/+454
| | | | | | than the old ones, even with errno setting turned on now. Also, at least on i386, we no longer need the long long helper functions for division and mod from libgcc.a.
* Oops... forgot to update abort.c.Manuel Novoa III2002-03-131-4/+7
|
* Swap in the new stdio code.Manuel Novoa III2002-03-122-12/+14
|
* When vfork is not available and we have an MMU, then use fork()Eric Andersen2002-02-212-7/+15
| | | | -Erik
* Doh! Miles Bader noticed a couple of spots where I forgotEric Andersen2002-02-192-4/+2
| | | | to mark __stdio_flush_buffers with weak_function. Oops!
* Rename __stdio_close_all to __stdio_flush_buffers. Eliminate anEric Andersen2002-02-182-13/+9
| | | | unnecessary variable
* Doh!Eric Andersen2002-02-181-1/+1
|
* Miles Bader writes:Eric Andersen2002-02-181-1/+2
| | | | | | | | | | Programs that don't use stdio crash in the `exit' function, because they call through the pointer__uClibc_cleanup, which has a value of 0. It has a value of 0 because __uClibc_main.c initializes it to the address of `__stdio_close_all', which is a weak symbol (and so is 0 if stdio is not used). This patch from Miles fixes it, though we need to audit __stdio_close_all usage to be sure...
* A number of naming updates in preparation for adding inEric Andersen2002-02-133-25/+117
| | | | | proper threading. Most of this is from Stefan Soucek, with additions and changes as needed from me.
* Fix simple malloc to work on systems with an MMUDavid McCullough2002-01-171-9/+31
|
* Clearify error messageEric Andersen2002-01-161-1/+1
|
* Patch from Brian Stafford <brian@stafford.uklinux.net> to fixupEric Andersen2002-01-143-32/+80
| | | | support for Unix98 PTYs, and optionally exclude the older junk.
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-196-9/+12
|
* Hack the 68000 last ditch abort to work for all 68000 targets.David McCullough2001-12-051-1/+1
|
* Cleanup abort() so it behaves itself a bit betterEric Andersen2001-11-211-10/+65
|
* Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.Eric Andersen2001-10-111-1/+2
| | | | He sent this patch to me a month ago, but I forgot to apply it...
* Minor cleanupEric Andersen2001-09-292-2/+3
|
* Fix prototypeEric Andersen2001-09-291-2/+2
|
* Add in gcvt()Eric Andersen2001-09-292-1/+12
|
* Update to accomodate the header file changesEric Andersen2001-09-279-8/+10
|
* "Kim B. Heino" <Kim.Heino@bluegiga.com> reportsEric Andersen2001-08-301-1/+1
| | | | | | | | | | | | | In the libc/stdlib/bsd_getpt.c file you have line: memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) - 1); It really should be: memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) ); The last nul character must be copied too because the next line uses strlen() to get buf's length.
* atoi, atol, atoll, and atof are supposed to be functions, not macros.Eric Andersen2001-08-244-3/+35
| | | | -Erik
* Fix a couple of warningsDavid McCullough2001-08-091-2/+2
|
* Cleanup the toploevel makefile handing of shared libs. Add weak_aliasEric Andersen2001-06-122-2/+5
| | | | | | define, and set things up so nasty old coff toolchains can now compile things and should actually work again. -Erik
* Make selection of uClibc floating point support in printf, etc. seperateManuel Novoa III2001-05-281-1/+1
| | | | | from libm float function support. Also, move all Config files out of the main directory.
* Ok, this should finish off my massive ro-organization. The sourceEric Andersen2001-05-124-8/+4
| | | | | | | | | 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
* A patch from Matthias Kilian <kili@outback.escape.de> to fix -DDEBUG_MALLOCEric Andersen2001-05-112-1/+12
| | | | | so that it works for realloc too. -Erik
* Fix up the 'make clean' targetEric Andersen2001-05-111-1/+1
|
* Add in libutil, based on Cory Visi's variant of Michael Shmulevich's libutilEric Andersen2001-05-088-1/+694
| | | | | | | | port. I have reworked the code quite a bit so that the stuff that is supposed to be in libc is in libc, and I added a bunch of missing stuff so the libutil interface matches that of glibc's libutil. The only caveat is that libutil/login.c is currently a stub. -Erik
* As noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias forEric Andersen2001-04-272-2/+2
| | | | | srand was in the wrong file, causing rand.o to be needlessly included in some cases.