diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2019-05-10 15:03:25 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2019-05-10 15:03:25 +0000 |
commit | e7510fcc8f1bcaeaecf2acd2d7d95961b92dd50b (patch) | |
tree | 002d00695adeffa30645c87cc0efd4cf886c33e7 /include | |
parent | b74fabda470fd529f8a7b63d5445bebde82e9273 (diff) |
Inroduce malloc_conceal() and calloc_conceal(). Similar to their
counterparts but return memory in pages marked MAP_CONCEAL and on
free() freezero() is actually called.
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 7a26ed90e4e..ab8a2ae90c3 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.75 2018/11/21 06:57:04 otto Exp $ */ +/* $OpenBSD: stdlib.h,v 1.76 2019/05/10 15:03:24 otto Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -114,6 +114,8 @@ void *malloc(size_t); #if __BSD_VISIBLE void freezero(void *, size_t) __attribute__ ((__bounded__(__buffer__,1,2))); +void *calloc_conceal(size_t, size_t); +void *malloc_conceal(size_t); void *reallocarray(void *, size_t, size_t); void *recallocarray(void *, size_t, size_t, size_t); #endif /* __BSD_VISIBLE */ |