summaryrefslogtreecommitdiffstats
path: root/lib/libc/hidden/stdlib.h
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2017-03-06 18:44:21 +0000
committerotto <otto@openbsd.org>2017-03-06 18:44:21 +0000
commit3f0eb563136eb507c769562c93646288721f7ea4 (patch)
tree1089d5e6aab7b62d086ce59de52f0ba17567760f /lib/libc/hidden/stdlib.h
parentsize is unsigned so using ==0 not <=0 when checking for buffer exhaustion (diff)
downloadwireguard-openbsd-3f0eb563136eb507c769562c93646288721f7ea4.tar.xz
wireguard-openbsd-3f0eb563136eb507c769562c93646288721f7ea4.zip
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@
Diffstat (limited to 'lib/libc/hidden/stdlib.h')
-rw-r--r--lib/libc/hidden/stdlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/hidden/stdlib.h b/lib/libc/hidden/stdlib.h
index 76a9c4d809c..63b7b5d9c70 100644
--- a/lib/libc/hidden/stdlib.h
+++ b/lib/libc/hidden/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.8 2016/08/14 23:18:03 guenther Exp $ */
+/* $OpenBSD: stdlib.h,v 1.9 2017/03/06 18:44:21 otto Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -128,6 +128,7 @@ PROTO_NORMAL(rand_r);
PROTO_DEPRECATED(random);
/*PROTO_NORMAL(realloc); not yet, breaks emacs */
PROTO_NORMAL(reallocarray);
+PROTO_NORMAL(recallocarray);
PROTO_DEPRECATED(realpath);
PROTO_DEPRECATED(seed48);
PROTO_NORMAL(seed48_deterministic);