summaryrefslogtreecommitdiff
path: root/libc/include/malloc.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-06-14 00:51:14 +0000
committerDan Albert <danalbert@google.com>2014-06-14 00:51:14 +0000
commita04d2bc28e7d7fcaf34ad71e4a6608a13cf84197 (patch)
tree729a98533b9d101d029556ca290d9524bd4b416e /libc/include/malloc.h
parent5ee320dd35fafc11eaf90c62198e08c6670e35b4 (diff)
Backing this one out since the counterpart needs to be sent upstream.
This reverts commit 5ee320dd35fafc11eaf90c62198e08c6670e35b4. Change-Id: I1a9c6b06c3aca595f01c629f7649be743dc48e77
Diffstat (limited to 'libc/include/malloc.h')
-rw-r--r--libc/include/malloc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/include/malloc.h b/libc/include/malloc.h
index e6ea27606..9a4e32472 100644
--- a/libc/include/malloc.h
+++ b/libc/include/malloc.h
@@ -35,6 +35,9 @@ extern void free(void* p);
extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
extern size_t malloc_usable_size(const void* p);
+extern void* valloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
+extern void* pvalloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
+
#ifndef STRUCT_MALLINFO_DECLARED
#define STRUCT_MALLINFO_DECLARED 1
struct mallinfo {