summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-05-01 19:14:32 +0000
committerbapt <bapt@FreeBSD.org>2015-05-01 19:14:32 +0000
commit41e541e0deeb680b21fe86d504359d7fb8b4d24a (patch)
treebb1e0177274e1c57207c3ea84044817223f79610 /include/stdlib.h
parent707b0e0acdf8db74e92a5fdb552dd80c1cabb964 (diff)
downloadFreeBSD-src-41e541e0deeb680b21fe86d504359d7fb8b4d24a.zip
FreeBSD-src-41e541e0deeb680b21fe86d504359d7fb8b4d24a.tar.gz
Move reallocarray definition to the _BSD_VISIBLE block
Add the required __alloc_size attributes Requested by: pfg
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 84587db..1c4fbb0 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -111,9 +111,6 @@ 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);
@@ -306,6 +303,8 @@ void qsort_r(void *, size_t, size_t, void *,
int (*)(void *, const void *, const void *));
int radixsort(const unsigned char **, int, const unsigned char *,
unsigned);
+void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2)
+ __alloc_size(3);
void *reallocf(void *, size_t) __result_use_check __alloc_size(2);
int rpmatch(const char *);
void setprogname(const char *);
OpenPOWER on IntegriCloud