summaryrefslogtreecommitdiff
path: root/libc/stdlib
AgeCommit message (Collapse)Author
2002-05-30Rework setenv, getenv and friends per the latest glibc code, but cleanedEric Andersen
up for readability. Merge in putenv. Add clearenv as a side effect. -Erik
2002-05-23Multibyte and wide char conversion functions. Some work still to do, butManuel Novoa III
they're quite solid now and Erik needs them for the gcc port. Comments at the head of wchar.c.
2002-05-12Revert Erik's previous patch and fix what I believe he was trying to, whileManuel Novoa III
preserving the space-saving aliases.
2002-05-12Several bugfixes for problems that showed up on alphaEric Andersen
-Erik
2002-05-06New locale support (in development). Supports LC_CTYPE, LC_NUMERIC,Manuel Novoa III
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.
2002-04-01Remove function declartions from include/features.h, createEric Andersen
a separate header file for those, and fixup references. -Erik
2002-03-31Rework __gen_tempname() to better match glibc, and add mkstemp64(),Eric Andersen
which is needed for busybox ash when using largefile support. -Erik
2002-03-20Fix compile problem when ASSUME_DEVPTS=falseEric Andersen
getpt.c: In function 'getpt': getpt.c:83: 'have_no_dev_ptmx' undeclared ... oops. -Erik
2002-03-19Merge glibc random, which gets us a much better RNG and aEric Andersen
reentrant one as well. It is not much bigger than what we had, so... -Erik
2002-03-14Add implementations of strtof() and strtold(). These are a bitEric Andersen
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
2002-03-13Merge in an ugly pile of rand* functions from glibc. :(Eric Andersen
2002-03-13New versions of the various string to int functions which are smallerManuel Novoa III
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.
2002-03-13Oops... forgot to update abort.c.Manuel Novoa III
2002-03-12Swap in the new stdio code.Manuel Novoa III
2002-02-21When vfork is not available and we have an MMU, then use fork()Eric Andersen
-Erik
2002-02-19Doh! Miles Bader noticed a couple of spots where I forgotEric Andersen
to mark __stdio_flush_buffers with weak_function. Oops!
2002-02-18Rename __stdio_close_all to __stdio_flush_buffers. Eliminate anEric Andersen
unnecessary variable
2002-02-18Doh!Eric Andersen
2002-02-18Miles Bader writes:Eric Andersen
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...
2002-02-13A number of naming updates in preparation for adding inEric Andersen
proper threading. Most of this is from Stefan Soucek, with additions and changes as needed from me.
2002-01-17Fix simple malloc to work on systems with an MMUDavid McCullough
2002-01-16Clearify error messageEric Andersen
2002-01-14Patch from Brian Stafford <brian@stafford.uklinux.net> to fixupEric Andersen
support for Unix98 PTYs, and optionally exclude the older junk.
2001-12-19Update my email address. I am no longer andersen@lineo.comEric Andersen
2001-12-05Hack the 68000 last ditch abort to work for all 68000 targets.David McCullough
2001-11-21Cleanup abort() so it behaves itself a bit betterEric Andersen
2001-10-11Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.Eric Andersen
He sent this patch to me a month ago, but I forgot to apply it...
2001-09-29Minor cleanupEric Andersen
2001-09-29Fix prototypeEric Andersen
2001-09-29Add in gcvt()Eric Andersen
2001-09-27Update to accomodate the header file changesEric Andersen
2001-08-30"Kim B. Heino" <Kim.Heino@bluegiga.com> reportsEric Andersen
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.
2001-08-24atoi, atol, atoll, and atof are supposed to be functions, not macros.Eric Andersen
-Erik
2001-08-09Fix a couple of warningsDavid McCullough
2001-06-12Cleanup the toploevel makefile handing of shared libs. Add weak_aliasEric Andersen
define, and set things up so nasty old coff toolchains can now compile things and should actually work again. -Erik
2001-05-28Make selection of uClibc floating point support in printf, etc. seperateManuel Novoa III
from libm float function support. Also, move all Config files out of the main directory.
2001-05-12Ok, this should finish off my massive ro-organization. The sourceEric Andersen
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
2001-05-11A patch from Matthias Kilian <kili@outback.escape.de> to fix -DDEBUG_MALLOCEric Andersen
so that it works for realloc too. -Erik
2001-05-11Fix up the 'make clean' targetEric Andersen
2001-05-08Add in libutil, based on Cory Visi's variant of Michael Shmulevich's libutilEric Andersen
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
2001-04-27As noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias forEric Andersen
srand was in the wrong file, causing rand.o to be needlessly included in some cases.
2001-04-27Patch from Tom Walsh <tom@cyberiansoftware.com> to fix a thinkoEric Andersen
on my patch.
2001-04-25Be more strict with the malloc implementation. Return NULLEric Andersen
when folks do a malloc(0) using malloc-simple. -Erik
2001-04-25Be more strict with the glibc style malloc implementation. Return NULLEric Andersen
when folks do a malloc(0) using malloc-930716.
2001-04-18Update temp file handling and use a single function to do allEric Andersen
the heavy lifting (most of the heavy lifting stolen from glibc, but reduced a bit).
2001-04-06Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen
This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
2001-03-22Add in random(), make rand use that under the hood. Fix theEric Andersen
include file so folks know random is now there.
2001-03-19Fix up breakage resulting from flipping the sense of some defines. Change fromEric Andersen
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
2001-02-22div and ldiv are required for ISO 9899Eric Andersen
-Erik
2001-02-21Update to "malloc" so it will work on CPUs not supporting non-aligned words.Eric Andersen
malloc still only works for little-endian CPUs... Patch by Jean-Yves Avenard