Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | malloc-simple: Make calloc() return zeroed memory | Steven J. Magnani | 2010-07-27 | 1 | -5/+4 |
| | | | | | | | | | | The 0.9.31 release included a change to malloc-simple to request uninitialized memory from noMMU kernels. Unfortunately, the corresponding calloc() code assumed that memory returned by malloc() was already zeroed, which leads to all kinds of nastiness. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | ||||
* | nommu: use MAP_UNINITIALIZE for mallocs | Mike Frysinger | 2009-11-23 | 1 | -1/+1 |
| | | | | | | | | | Now that the kernel supports MAP_UNINITIALIZE, have the malloc places use it to get real uninitialized memory on no-mmu systems. This avoids a lot of normally useless overhead involved in zeroing out all of the memory (sometimes multiple times). Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | trim Experimentally off and uncommented hidden | Bernhard Reutner-Fischer | 2009-09-18 | 1 | -4/+0 |
| | | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | ||||
* | Last portion of libc_hidden_proto removal. | Denis Vlasenko | 2008-11-20 | 1 | -1/+1 |
| | | | | | Appears to build fine (several .configs tried) | ||||
* | next portion of libc_hidden_proto removal | Denis Vlasenko | 2008-11-20 | 1 | -1/+1 |
| | |||||
* | - pull in prototype for memalign() | Bernhard Reutner-Fischer | 2008-10-27 | 1 | -0/+1 |
| | |||||
* | Fix bug 4994 hangs on read(). I have tested the patch extensibly on ARM/LT.old. | Khem Raj | 2008-10-11 | 1 | -1/+1 |
| | | | | | Thank you Chase Douglas for reporting it and for the patch. | ||||
* | add missing includes of unistd.h for smallint usage | Denis Vlasenko | 2008-06-01 | 1 | -1/+0 |
| | | | | | remove a few duplicate includes of unistd.h | ||||
* | Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL block | Denis Vlasenko | 2008-05-19 | 1 | -1/+1 |
| | | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's. | ||||
* | POSIX says you can use realloc() to shrink buffers ... make sure we dont ↵ | Mike Frysinger | 2007-04-11 | 1 | -1/+2 |
| | | | | trigger a buffer overflow in that case | ||||
* | POSIX requires that errno be set whenever 0 is returned by malloc() | Mike Frysinger | 2007-04-02 | 1 | -1/+2 |
| | |||||
* | Major cleanup of internal mutex locking. Be more consistant in how we do | Eric Andersen | 2006-12-07 | 1 | -14/+13 |
| | | | | | | | things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking. | ||||
* | tweak the idea between having a MMU and actually using it | Mike Frysinger | 2006-02-18 | 1 | -1/+1 |
| | |||||
* | Update some copyrights | Peter S. Mazinger | 2006-02-13 | 1 | -2/+4 |
| | |||||
* | Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵ | Peter S. Mazinger | 2006-01-22 | 1 | -1/+0 |
| | | | | is a useless attempt | ||||
* | hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵ | Peter S. Mazinger | 2006-01-14 | 1 | -5/+6 |
| | | | | missing headers, other jump relocs removed | ||||
* | mmap/mremap/socket/rewind gone | Peter S. Mazinger | 2005-12-08 | 1 | -0/+1 |
| | |||||
* | macro out the thread funcs in libc if threading is disabled | Mike Frysinger | 2005-12-06 | 1 | -6/+3 |
| | |||||
* | More hiding, 300 left | Peter S. Mazinger | 2005-12-04 | 1 | -0/+2 |
| | |||||
* | Hide mostly used functions | Peter S. Mazinger | 2005-12-01 | 1 | -2/+2 |
| | |||||
* | update syntax | Mike Frysinger | 2005-07-07 | 1 | -87/+83 |
| | |||||
* | Yoshinori Sato writes: | Mike Frysinger | 2005-07-07 | 1 | -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. | ||||
* | Use MAP_PRIVATE whenever __ARCH_HAS_MMU__ is set. | Eric Andersen | 2004-07-15 | 1 | -2/+2 |
| | | | | Only use MAP_SHARED when mmu-less. | ||||
* | s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/g | Eric Andersen | 2004-01-16 | 1 | -4/+4 |
| | |||||
* | Include missing errno.h header (as noted by Alan Hourihane). | Eric Andersen | 2004-01-14 | 1 | -3/+5 |
| | | | | | Fix uninitialized pthread mutex used to lock the list of aligned memory blocks. | ||||
* | Rework malloc. The new default implementation is based on dlmalloc from Doug | Eric Andersen | 2003-12-30 | 1 | -7/+22 |
| | | | | | | | 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 trivially | Eric Andersen | 2003-12-30 | 1 | -0/+189 |
| | | | | | simple and releases memory immediately when asked to do so. -Erik | ||||
* | Miles Bader implemented a new mmap based malloc which is much | Eric Andersen | 2002-07-18 | 1 | -141/+0 |
| | | | | | | | smarter than the old "malloc-simple", and actually works, unlike the old "malloc". So kill the old "malloc-simple" and the old "malloc" and replace them with Miles' new malloc implementation. Update Config files to match. Thanks Miles! | ||||
* | Patch from Ronald Wahl <rwa@peppercon.com> to fix a memory leak | Eric Andersen | 2002-07-10 | 1 | -1/+1 |
| | |||||
* | Fix simple malloc to work on systems with an MMU | David McCullough | 2002-01-17 | 1 | -9/+31 |
| | |||||
* | Fix a couple of warnings | David McCullough | 2001-08-09 | 1 | -2/+2 |
| | |||||
* | Patch from Tom Walsh <tom@cyberiansoftware.com> to fix a thinko | Eric Andersen | 2001-04-27 | 1 | -1/+2 |
| | | | | on my patch. | ||||
* | Be more strict with the malloc implementation. Return NULL | Eric Andersen | 2001-04-25 | 1 | -5/+10 |
| | | | | | when folks do a malloc(0) using malloc-simple. -Erik | ||||
* | Fix up breakage resulting from flipping the sense of some defines. Change from | Eric Andersen | 2001-03-19 | 1 | -3/+4 |
| | | | | | | | | 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 | ||||
* | Use MAP_FAILED. | Eric Andersen | 2001-02-13 | 1 | -1/+1 |
| | |||||
* | Patch from James Graves <jgraves@deltamobile.com> to better handle m68k. | Eric Andersen | 2001-01-12 | 1 | -2/+4 |
| | | | | | | Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik | ||||
* | Finish reorganizing things. At least I think I've finished. | Eric Andersen | 2000-10-11 | 1 | -2/+6 |
| | |||||
* | Bug ugly formatting update | Eric Andersen | 2000-10-09 | 1 | -0/+106 |