aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/malloc.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Backing this one out since the counterpart needs to be sent upstream."Dan Albert2014-06-141-3/+0
| | | | | | This reverts commit a04d2bc28e7d7fcaf34ad71e4a6608a13cf84197. Change-Id: I1b49165ca5d4bafdba7948818256a6167a363aca
* Backing this one out since the counterpart needs to be sent upstream.Dan Albert2014-06-141-0/+3
| | | | | | This reverts commit 5ee320dd35fafc11eaf90c62198e08c6670e35b4. Change-Id: I1a9c6b06c3aca595f01c629f7649be743dc48e77
* Hides valloc(3)/pvalloc(3) on LP64.Dan Albert2014-06-131-3/+0
| | | | | | | | These were removed from POSIX 2004. Hides the header declarations for all targets, and hides the symbols for LP64. Bug: 13935372 Change-Id: Id592f67e9b7051517a05f536e1373b30162e669c
* Use alloc_size attribute on *alloc functionsNick Kralevich2013-10-021-6/+6
| | | | | | | | | | | | | | malloc and family were not declared with __attribute__((alloc_size)). This was (sometimes) preventing FORTIFY_SOURCE related functions from knowing the size of the buffer it's dealing with, inhibiting FORTIFY_SOURCE protections. Add __attribute__((alloc_size)) Information about the alloc_size attribute can be found at http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html Change-Id: Ia2f0a445f0170a7325f69259b5e7fb35a9f14921
* Fix declaration of malloc_usable_size()David 'Digit' Turner2013-05-231-1/+1
| | | | | | | | | | The function should take a 'const void*' parameter, instead of 'void*'. Note that the implementation in upstream-dlmalloc/malloc.c already does this. For context, see http://b.android.com/55725 Change-Id: Iefd55cdb8996699189e0545f9195972490306227
* Document the mallinfo struct, add missing attributes.Elliott Hughes2013-02-041-18/+18
| | | | Change-Id: Ia97acce1f6a83bd8b3ba8dd20efd962bc96f35a9
* Revert "Revert "Upgrade to dlmalloc 2.8.5.""Ian Rogers2012-08-281-83/+40
| | | | This reverts commit f72ee269274170cd46af2844a2fe88767fb6e43c.
* Revert "Upgrade to dlmalloc 2.8.5."Brian Carlstrom2012-08-221-40/+83
| | | | This reverts commit 999089181ef60bb67e1a49f2cf6f4ec608a7caf8.
* Upgrade to dlmalloc 2.8.5.Ian Rogers2012-08-201-83/+40
| | | | | | | | | | Move dlmalloc code to upstream-dlmalloc to make pulling upstream changes easier. Declare pvalloc and malloc_usable_size routines present in malloc.h but with missing implementations. Remove other functions from malloc.h that have no implementation nor use in Android. Change-Id: Ia6472ec6cbebc9ad1ef99f4669de9d33fcc2efb4
* Don't mark realloc with __attribute__((malloc))Nick Kralevich2012-06-131-1/+1
| | | | | | | | | | | | | | | | According to http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html realloc should NOT be marked with __attribute__((malloc)). Quoting: realloc-like functions do not have this property as the memory pointed to does not have undefined content. For reference, __mallocfunc is defined in sys/cdefs.h as: #define __mallocfunc __attribute__((malloc)) Change-Id: I56083542ba92e4608dd7c55fb5596a138eb50cc9
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+104
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-104/+0
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+104