aboutsummaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-01 18:32:16 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-01 18:32:16 +0000
commit450dfafb1519ae7bb0615368ba45813bcabb9b35 (patch)
treec9c2983820e8aa1ae3d558a7a63415a8c4f3e1d8 /include/stdlib.h
parent24f93ee714b6bc904bdc6e7f7022c4dbe1117581 (diff)
downloadsrc-450dfafb1519ae7bb0615368ba45813bcabb9b35.tar.gz
src-450dfafb1519ae7bb0615368ba45813bcabb9b35.zip
Import reallocarray(3) from OpenBSD
Add a manpage for it, assign the copyright to the OpenBSD project on it since it is mostly copy/paste from OpenBSD manpage. style(9) fixes Differential Revision: https://reviews.freebsd.org/D2420 Reviewed by: kib
Notes
Notes: svn path=/head/; revision=282314
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 95db1b3ce37d..84587db8e626 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -111,6 +111,9 @@ long double
strtold(const char * __restrict, char ** __restrict);
unsigned long
strtoul(const char * __restrict, char ** __restrict, int);
+#ifdef __BSD_VISIBLE
+void *reallocarray(void *, size_t, size_t);
+#endif
int system(const char *);
int wctomb(char *, wchar_t);
size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t);