summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2002-11-27Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update.Thierry Deval
2002-11-25Warn if atexit(3) fails. Change some tabs to spaces. UseChad Loder
2002-11-05thread safe libc -- 2nd try. OK miod@, millert@Marco S Hyman
2002-11-03back out previous patch.. there are still some vax/m68k issuesMarco S Hyman
2002-11-03libc changes for thread safety. Tested on:Marco S Hyman
2002-05-27unsigned vs unsigned intTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-23THREAD_UNLOCK() on error before returning; millert@ ok.Federico G. Schwindt
2001-12-05correct an alignment mis-conception for malloc(0) returned regions.Thierry Deval
2001-11-01remove dangling spaces and tabsMichael Shalayeff
2001-10-30mprotect allocations sized at 0 bytes. This will cause a fault for accessThierry Deval
2001-05-11-1 -> MAP_FAILEDArtur Grabowski
2001-05-10Use madvise(MADV_FREE) to allow the 'h' option.Artur Grabowski
2000-04-10missing THREAD_UNLOCK; netch@segfault.kiev.uaTheo de Raadt
2000-03-01typo fix; halogen@nol.netTheo de Raadt
1999-11-10calloc() needs to be separate from malloc in case a user wants to haveTodd C. Miller
1999-11-09Move calloc() into malloc.c and only zero out the area if malloc()Todd C. Miller
1999-09-16use writev() where possibleTheo de Raadt
1999-02-03wrong ret type for write define (millert@)David Leonard
1999-02-01malloc can't use write() if it fails very early, so use the unwrapped syscall...David Leonard
1998-11-20Add thread-safety to libc, so that libc_r will build (on i386 at least).David Leonard
1998-08-06Don't enumerate every arch in the #if since all OpenBSD platforms use the sam...Todd C. Miller
1998-06-28Oh fun, mucking about with files used on all archs.Dale S. Rahn
1998-01-02make mmap() return void *, add MAP_FAILEDTheo de Raadt
1997-08-23Change realloc(foo,0) to behave like malloc(0). Both now return a pointerPer Fogelstrom
1997-08-22malloc_init() should try to not modify errnoTheo de Raadt
1997-07-02Use MALLOC_EXTRA_SANITY consistently (EXTRA_SANITY was used in many places)Todd C. Miller
1997-05-31Make it possible to not output warnings (errors causing aborts are alwaysThorsten Lockert
1997-05-31Add x/X option to behave like X11 xmalloc; from FreeBSDThorsten Lockert
1997-04-30Be more careful with mixing typesThorsten Lockert
1997-04-05Check for overflow; from FreeBSDThorsten Lockert
1997-02-11is we were set[ug]id an unitialized ptr bit usNiklas Hallqvist
1997-02-09Make this 64-bit safe againThorsten Lockert
1997-01-05Integrate latest malloc(3) from FreeBSDThorsten Lockert
1996-11-24more 64bit fixesNiklas Hallqvist
1996-11-2364 bit cleanNiklas Hallqvist
1996-11-22removed plus sign from start of linekstailey
1996-09-26Make sure we don't dereference stray pointer when running suid or sgidThorsten Lockert
1996-09-26Restore check for suid / sgidThorsten Lockert
1996-09-26Latest changes from FreeBSDThorsten Lockert
1996-09-19From FreeBSD:Thorsten Lockert
1996-09-16Avoid pulling in stdioThorsten Lockert
1996-09-15Remove dead codeThorsten Lockert
1996-09-11only support MALLOC_OPTIONS for non-setuidTheo de Raadt
1996-09-06asm -> __asm, clean lint(1) warningsThorsten Lockert
1996-08-21Move cfree(3) weak symbol into a seperate fileThorsten Lockert
1996-08-20Make the binding cfree() -> free() weak if possibleThorsten Lockert
1996-08-20Remove ANSI function delcarations and add a cfree() stub function.Jason Downs
1996-08-19Fix RCS idsThorsten Lockert
1996-08-02malloc(3) implementation from FreeBSD; uses mmap(2) to get memoryThorsten Lockert