summaryrefslogtreecommitdiff
path: root/mmalloc/mmap-sup.c
Commit message (Collapse)AuthorAgeFilesLines
* From 2002-03-05 Scott Pakin <pakin@uiuc.edu>Andrew Cagney2002-04-071-6/+16
| | | | | | * mmap-sup.c (MAP_PRIVATE_OR_SHARED): Define. (__mmalloc_mmap_morecore): Use. (__mmalloc_remap_core): Use.
* * build fix for cygwinFrank Ch. Eigler2000-02-191-0/+2
| | | | | | | | | 2000-02-18 Frank Ch. Eigler <fche@redhat.com> From Jason "crash" Molenda <jsm@cygnus.com>: * configure.in: Check for getpagesize declaration. * mvmalloc.c, mmap-sup.c: Conditionally declare getpagesize. * configure: Regenerated.
* From 2000-02-17 RodneyBrown@pmsc.com:Andrew Cagney2000-02-181-1/+4
| | | | | mm.c, attach.c, mmap-sup.c, sbrk-sup.c: Include <unistd.h> for sbrk and lseek declarations.
* Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1999-04-161-0/+205
|
* Initial creation of sourceware repositoryStan Shebs1999-04-161-190/+0
|
* * detach.c (mmalloc_detach): Fix bug in computation of negativeFred Fish1996-07-111-0/+190
brk value. * mmcheck.c (mmcheckf): Renamed from mmcheck and new FORCE argument added. Replaced hack that always allowed checking routines to be installed and enforce restriction that they have to be installed prior to allocating any memory on the used heap or the FORCE argument has to be non-NULL. (mmcheck): New function that calls mmcheckf with FORCE set to zero, for backwards compatibility. * mmalloc.c (malloc): Store result in local variable before returning it. Makes debugging much easier at negligible cost. * mmalloc.h (mmcheckf): Declare. * attach.c (reuse): Call mmcheckf rather than mmcheck. * mmap-sup.c (__mmalloc_mmap_morecore): Improve to allow mmap to select a base mapping address if none is otherwise given. (mmalloc_findbase): New function that user can call to find an available mapping address of a given size.