svn commit: r282317 - head/include
Baptiste Daroussin
bapt at FreeBSD.org
Fri May 1 19:14:33 UTC 2015
Author: bapt
Date: Fri May 1 19:14:32 2015
New Revision: 282317
URL: https://svnweb.freebsd.org/changeset/base/282317
Log:
Move reallocarray definition to the _BSD_VISIBLE block
Add the required __alloc_size attributes
Requested by: pfg
Modified:
head/include/stdlib.h
Modified: head/include/stdlib.h
==============================================================================
--- head/include/stdlib.h Fri May 1 18:34:29 2015 (r282316)
+++ head/include/stdlib.h Fri May 1 19:14:32 2015 (r282317)
@@ -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, vo
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 *);
More information about the svn-src-head
mailing list