summaryrefslogtreecommitdiff
path: root/libc/stdlib
AgeCommit message (Collapse)Author
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
2001-02-19Create __uClibc_main to handle what can be done in C instead of each arch'sManuel Novoa III
respective crt0.S. crt0.S should now only be responsible for setting things up to call __uClibc_main(argc, argv, envp), which will do any other necessary setup (setting global __environ, stdio init, etc), call main, and exit. This should ease both maintainance and porting.
2001-02-13Use MAP_FAILED.Eric Andersen
2001-02-09Use __environ instead of the GNU extension environ.Eric Andersen
-Erik
2001-02-09Revert stdio to initializing itself. Not quite a pretty but that ensures thatEric Andersen
we don't blow up by using too much stack space, and simplifies the job of supporting new architectures, since they don't have to mess with calling foo init functions in crt0 and cleaning up the resulting damage. -Erik
2001-02-08Fix the ordering of the args to the compare function.Manuel Novoa III
2001-01-25Clean up atexit.c; make sure sysconf and atexit agree; link in ref'd libgcc.aManuel Novoa III
objects with shared uClibc; allow disabling long long support.
2001-01-17Note about need to match _SC_ATEXIT_MAX. Minor macro name change.Manuel Novoa III
2001-01-17UnDOSified file and added assert when debugging.Manuel Novoa III
2001-01-16Clean all subdirs on 'make clean'Eric Andersen
2001-01-15Reduce dependancies -- don't use sysconf() internal to libc.Eric Andersen
2001-01-12"I will always compile before I commit."Eric Andersen
"I will always compile before I commit." "I will always compile before I commit." -Erik
2001-01-12Patch from James Graves <jgraves@deltamobile.com> to better handle m68k.Eric Andersen
Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik
2001-01-12Update makefile to match the new malloc codeEric Andersen
2001-01-12Manuel Novoa III modified malloc.c and avlmacro.h to reduce code size byEric Andersen
using functions instead on Inlining (size vas speed tradeoff). I ran the results through indent. Looking pretty good IMHO.
2001-01-11A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.Eric Andersen
2001-01-02Patch from James Graves <jgraves@deltamobile.com> to getEric Andersen
m68k started. Should be just sysdeps/linux/m68k left to hack at this point...