-/* $OpenBSD: stdlib.h,v 1.77 2024/03/01 21:30:40 millert Exp $ */
+/* $OpenBSD: stdlib.h,v 1.78 2024/08/03 20:09:24 guenther Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
__attribute__ ((__bounded__(__buffer__,1,2)));
void *calloc_conceal(size_t, size_t);
void *malloc_conceal(size_t);
-void *reallocarray(void *, size_t, size_t);
void *recallocarray(void *, size_t, size_t, size_t);
#endif /* __BSD_VISIBLE */
void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
#endif
/*
- * The Open Group Base Specifications, post-Issue 7
+ * The Open Group Base Specifications, Issue 8
*/
-#if __BSD_VISIBLE
+#if __POSIX_VISIBLE >= 202405 || __BSD_VISIBLE
int mkostemp(char *, int);
+void *reallocarray(void *, size_t, size_t);
#endif
#if __BSD_VISIBLE
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.141 2023/12/04 22:52:41 tb Exp $
+.\" $OpenBSD: malloc.3,v 1.142 2024/08/03 20:09:24 guenther Exp $
.\"
-.Dd $Mdocdate: December 4 2023 $
+.Dd $Mdocdate: August 3 2024 $
.Dt MALLOC 3
.Os
.Sh NAME
.Fn aligned_alloc
function conforms to
.St -isoC-2011 .
+The
+.Fn reallocarray
+function conforms to
+.St -p1003.1-2024 .
.Pp
If
.Fa nmemb