Move reallocarray definition to the _BSD_VISIBLE block

Add the required __alloc_size attributes

Requested by:	pfg
This commit is contained in:
Baptiste Daroussin 2015-05-01 19:14:32 +00:00
parent 5fa137c326
commit 8f0baadaa0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282317

View File

@ -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 *);