summaryrefslogtreecommitdiffstats
path: root/lib/libstand/zalloc_malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* - Removing some unneeded definitions of NULL(cruft related to 1970's C).avatar2011-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | In C90, NULL is guaranteed to be declared in <stddef.h> and also in <string.h>. Though the correct way to define NULL in FreeBSD is to include <sys/_null.h>, other parts of libstand still require <string.h> to build; therefore, we keep <string.h> in stand.h and add a note about this; - Removing no longer used 'Prototype' definition. Quote from bde@: 'Cruft related to getting incomplete struct declarations within prototypes forward-declared before the structs. It doesn't mean "prototype" but only part of a prototype-related hack. No longer used.' - Replacing iaddr_t with uintptr_t; - Removing use of long double to determine alignment. Use a fixed 16 byte alignment instead; Reviewed by: bde Obtained from: DragonFlyBSD (partially) MFC after: 1 month
* Using the correct format string(%zu) for size_t type. This should fix 64avatar2011-06-161-1/+1
| | | | | | bits builds. Submitted by: Garrett Cooper <yanegomi@gmail.com>
* Eliminate __alpha__ leftover from libstand.raj2008-09-041-9/+0
|
* Use signed char cast to avoid out-of-range error on PowerPC (which hasgrehan2004-02-251-4/+5
| | | | | | unsigned char by default). This is a no-op on all other current arches. Tested by: md5 sum before/after same on i386
* - Print out line number in a panic message using %d rather than %p. Linejhb2004-01-151-1/+1
| | | | | | numbers aren't pointers. - Add a __printflike() attribute to libstand's panic() prototype to catch such bogons in the future.
* Reimplement malloc/free debugging that includes the offending file:linepeter2002-07-201-13/+23
| | | | | | | | | | | | info. This turned out to be rather useful on ia64 for tracking down malloc/free problems. Detect duplicate free()'s - otherwise these show up as a guard1 failure and it looks like corruption instead of something simple like a second free() where there shouldn't be. Deal with libz using libc headers and not seeing the malloc/free stuff that we provide in libstand. Do similar nastiness to what is done for bzlib. Tested on: i386, ia64 (compile, run)
* Add __FBSDID()s to libstanddillon2001-09-301-2/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Implement a hook to allow us to reclaim the memory used by the first stagedfr1998-10-191-1/+10
| | | | of the bootstrap (the bit which loads /boot/loader).
* Prune unused zalloc components as recommended by Matt Dillon. Extra debuggingmsmith1998-10-011-16/+6
| | | | code is still enabled (it's not very expensive).
* * Enable old UFS compatibility code for booting from Digital Unix formatteddfr1998-09-261-1/+6
| | | | | | | disks. * Fix a whole raft of warnings, printf and otherwise. * Make zalloc work for alpha (just a case of using the right typedef). * Add some (disabled) malloc debug printing to stand.h.
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlymsmith1998-09-261-0/+193
compact and much better one donated by Matt Dillon. Implement a simple sbrk() which uses the existing setheap() api. Remove the custom allocator from the UFS code. It wasn't working quite right, and it shouldn't be needed with the new allocator. Fix a serious problem with changing the value of already-existent environment variables. Don't attempt to modify the supposedly-const argument to putenv() Fix an off-by-one sizing error in the zipfs code detected by the new allocator. Submitted by: zmalloc from Matt Dillon <dillon@backplane.com>
OpenPOWER on IntegriCloud