diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-04-10 05:45:03 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-04-10 05:45:03 +0000 |
commit | 813020d05a2b0ab9e125c0dced02619bcbe2bd9b (patch) | |
tree | 9861dce170374314e51f94e2496b333d23940a33 /include/stdlib.h | |
parent | c9ab24a526b06dd4f7b6f8e3b5acc0891b9312a7 (diff) |
Introducing freezero(3) a version of free that guarantees the process
no longer has access to the content of a memmory object. It does
this by either clearing (if the object memory remains cached) or
by calling munmap(2). ok millert@, deraadt@, guenther@
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index ccbccfc50a2..ab054216a2c 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.68 2017/03/06 18:50:28 otto Exp $ */ +/* $OpenBSD: stdlib.h,v 1.69 2017/04/10 05:45:02 otto Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -113,6 +113,7 @@ long labs(long); ldiv_t ldiv(long, long); void *malloc(size_t); #if __BSD_VISIBLE +void freezero(void *, size_t); void *reallocarray(void *, size_t, size_t); void *recallocarray(void *, size_t, size_t, size_t); #endif /* __BSD_VISIBLE */ |