aboutsummaryrefslogtreecommitdiff
path: root/include/compat/stdlib.h
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2017-03-16 19:23:36 -0500
committerBrent Cook <bcook@openbsd.org>2017-03-16 19:23:36 -0500
commitd5b247cc4fe0f3dd6cc4f7084af7f290ba41e669 (patch)
treeecff511a1a175c88222a9c83872920d512671717 /include/compat/stdlib.h
parent8f69fe98dba08e22dd1341cbaad91745c8bf7ad7 (diff)
parentc61c9821e8417243a5a0cf691415f5e5626f2b3b (diff)
downloadportable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.gz
portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.bz2
portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.zip
Land #297, Add recallocarray
Diffstat (limited to 'include/compat/stdlib.h')
-rw-r--r--include/compat/stdlib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/stdlib.h b/include/compat/stdlib.h
index 781be77..11f82ba 100644
--- a/include/compat/stdlib.h
+++ b/include/compat/stdlib.h
@@ -29,6 +29,10 @@ uint32_t arc4random_uniform(uint32_t upper_bound);
29void *reallocarray(void *, size_t, size_t); 29void *reallocarray(void *, size_t, size_t);
30#endif 30#endif
31 31
32#ifndef HAVE_RECALLOCARRAY
33void *recallocarray(void *, size_t, size_t, size_t);
34#endif
35
32#ifndef HAVE_STRTONUM 36#ifndef HAVE_STRTONUM
33long long strtonum(const char *nptr, long long minval, 37long long strtonum(const char *nptr, long long minval,
34 long long maxval, const char **errstr); 38 long long maxval, const char **errstr);