From ff9e45d4d3fa498a9a263c06268bcfb0a58ec565 Mon Sep 17 00:00:00 2001 From: otto <> Date: Mon, 6 Mar 2017 18:50:28 +0000 Subject: [PATCH] Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3) with the added feature that released memory is cleared. Much input from various developers. ok deraadt@ tom@ --- src/include/stdlib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 9ae7b991..ccbccfc5 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.67 2016/09/20 21:10:22 fcambus Exp $ */ +/* $OpenBSD: stdlib.h,v 1.68 2017/03/06 18:50:28 otto Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -114,6 +114,7 @@ ldiv_t ldiv(long, long); void *malloc(size_t); #if __BSD_VISIBLE void *reallocarray(void *, size_t, size_t); +void *recallocarray(void *, size_t, size_t, size_t); #endif /* __BSD_VISIBLE */ void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); int rand(void);