summaryrefslogtreecommitdiffstats
path: root/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
...
* punt _DL_FINI_CRT_COMPAT option now that 0.9.28 has been releasedMike Frysinger2005-09-081-9/+0
|
* Fix by Martin Schlemmer:Mike Frysinger2005-09-081-0/+8
| | | | | | | | If _DL_FINI_CRT_COMPAT is defined, _dl_fini is setup to run at exit via atexit(), but this makes it run _before_ the fini (__app_fini()) of the app, causing stuff like sandbox that frees structs, etc via its fini to segfault. http://bugs.gentoo.org/98187
* import a64l and l64a from glibcMike Frysinger2005-08-243-2/+127
|
* add a link_warning() like glibc so ppl will [hopefully] stop using mktemp. ↵Mike Frysinger2005-08-241-7/+9
| | | | also redo whitespacing.
* add the posix_memalign functionMike Frysinger2005-08-182-2/+44
|
* Add a config option for abort() to shutdown the stdio subsystem. This isManuel Novoa III2005-07-281-0/+14
| | | | | mainly to cut down on noise in the NIST/PCTS tests since older POSIX behavior was to fclose() (and hence fflush()) all open streams.
* define an abort instruction for m68kMike Frysinger2005-07-101-0/+2
|
* define an abort instruction for alphaMike Frysinger2005-07-101-1/+3
|
* alphabetize and warn if an arch is undefinedMike Frysinger2005-07-101-7/+8
|
* update syntaxMike Frysinger2005-07-071-87/+83
|
* Yoshinori Sato writes:Mike Frysinger2005-07-071-22/+7
| | | | | | Dont forgive that length of munmap is "0" in current nommu. This purpose cannot free memory area really. It is a patch to work out a solution.
* add support for __MALLOC_GLIBC_COMPAT__ (malloc(0) == NULL) so the malloc ↵Mike Frysinger2005-07-061-0/+4
| | | | test wont fail
* whitespace/syntax updatesMike Frysinger2005-06-291-50/+50
|
* if we have a signal handler in place to cover SIGABRT, we have to make sure ↵Mike Frysinger2005-06-291-1/+3
| | | | the code that unregisters it raises SIGABRT again so the program actually aborts
* Add Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT toJoakim Tjernlund2005-05-281-0/+2
| | | | | | | | be able to run apps built with 0.9.27. This also renames __uClibc_start_main to __uClibc_main. This compat option should be removed some time after 0.9.28 is released. Let me know if you don't like this change.
* Enable new FINI processing. ldso now passes a FINI functionJoakim Tjernlund2005-05-211-3/+0
| | | | ptr to crt. Only PowerPC and x86 support this currently.
* Prepare for moving ldso FINI handling into libc.Joakim Tjernlund2005-03-201-0/+6
| | | | #define _DL_DO_FINI_IN_LIBC to enable(the arch specific part needs to be in place first).
* merge parallel build supportMike Frysinger2005-01-254-22/+17
|
* Avoid compiler warnings.Peter Kjellerstedt2005-01-192-43/+43
|
* Some requested additional malloc entry pointsEric Andersen2004-11-082-0/+56
|
* Add missing imaxdiv and lldiv needed for SuSv3. Adjust ldiv toEric Andersen2004-09-073-26/+119
| | | | match glibc's quotient truncation behavior.
* Mike Frysinger writes:Eric Andersen2004-08-251-0/+3
| | | | | | | | | | | this was sent earlier in a different form: http://www.uclibc.org/lists/uclibc/2004-January/008136.html find attached a smaller version ... perhaps adding a fprintf to stderr before calling abort would be nice like in the glibc patch, but whatever glibc has since adopted a similar fix for their malloc (third hunk, line 1970) http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/malloc/malloc.c.diff?r1=1.121&r2=1.122&cvsroot=glibc&f=h -mike
* The variable used to store pagesize is not the same as theEric Andersen2004-08-161-1/+2
| | | | | _dl_pagesize variable in ldso, so avoid aliasing. -Erik
* Fixup PAGE_SIZE problemsEric Andersen2004-08-131-3/+2
| | | | -Erik
* _SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZEEric Andersen2004-07-151-1/+1
| | | | instead, but we are not such a system and should not propagate such things.
* Use MAP_PRIVATE whenever __ARCH_HAS_MMU__ is set.Eric Andersen2004-07-154-7/+21
| | | | Only use MAP_SHARED when mmu-less.
* Paul Mundt lethal at linux-sh dot org writes:Eric Andersen2004-02-121-0/+2
| | | | | | | | We can't use trapa #0xff on sh2, the only permissible trapa ranges are 32 to 63. On SH-2, we use trapa32 to issue a break in the same way that trapa #0xff is used on SH-3/4. This behavior is implementation specific, but is what is used in sh-ipl+g, linux, eCos, uITRON, etc. so we follow suit here.
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-113-14/+7
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* Patch from Paul Mundt, lethal at linux-sh dot org,Eric Andersen2004-01-311-0/+4
| | | | add sh/sh64: ABORT_INSTRUCTION definitions
* Add missing abort instruction for powerpcEric Andersen2004-01-301-1/+5
|
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-162-5/+5
|
* Include missing errno.h header (as noted by Alan Hourihane).Eric Andersen2004-01-141-3/+5
| | | | | Fix uninitialized pthread mutex used to lock the list of aligned memory blocks.
* Fix the manditory typo in my last minute untested fix.Eric Andersen2003-12-301-1/+1
| | | | -Erik
* Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen2003-12-3018-798/+3133
| | | | | | | Lea. It is about 2x faster than the old malloc-930716, and behave itself much better -- it will properly release memory back to the system, and it uses a combination of brk() for small allocations and mmap() for larger allocations. -Erik
* Update and restore malloc-simple. Slow as molasses, but triviallyEric Andersen2003-12-302-0/+233
| | | | | simple and releases memory immediately when asked to do so. -Erik
* Handle the app_fini stuff in exit without requiring atexit().Manuel Novoa III2003-12-271-0/+9
| | | | This avoids pulling in all the malloc/free code for a simple true/false app.
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-279-26/+26
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* If realloc failed, we'd lose the pointer to the exit function table.Manuel Novoa III2003-11-021-6/+8
|
* Peter Kjellerstedt writes:Eric Andersen2003-10-183-3/+3
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Doh!!!Eric Andersen2003-10-171-1/+1
|
* Do not set errno when they asked for size 0Eric Andersen2003-10-161-1/+1
|
* Code formatting cleanup.Miles Bader2003-10-161-5/+6
|
* Don't set errno if for zero SIZE returns.Miles Bader2003-10-161-11/+14
| | | | Code formatting cleanup.
* More fiddling with static free-areas: make sure both their size _and_Miles Bader2003-09-221-5/+5
| | | | their alignment are correct.
* Make sure we don't allocate too little space for static free-areasMiles Bader2003-09-191-1/+3
| | | | because of our fiddling with alignment (because doing so is VERY BAD).
* Add dependencies on header files.Miles Bader2003-09-191-2/+5
|
* Make sure static heaps are aligned correctly.Miles Bader2003-09-171-9/+11
|
* 'extern inline' doesn't work... Use 'static inline'Eric Andersen2003-09-061-5/+5
|
* add missing prototypeEric Andersen2003-09-061-0/+2
|
* Fix errno values. Fix MALLOC_GLIBC_COMPAT handling in malloc/malloc.c,Eric Andersen2003-09-064-37/+59
| | | | | which was reversed. Provide more consistancy between implementations. Handle it when people do stupid things like malloc(-1);