freebsd-src/lib/libopenbsd
Robert Clausecker 4266461079 lib/libc: add recallocarray()
This function from OpenBSD is a hybrid of reallocarray() and calloc().
It reallocates an array, clearing any newly allocated items.
reallocarray() ultimately originates from OpenBSD.

The source is taken from lib/libopenbsd, which now no longer has the
function unless when bootstrapping (needed for mandoc).

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D52863
2025-10-03 19:46:55 +02:00
..
sys
getdtablecount.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
imsg-buffer.c
imsg.c
imsg.h
imsg_init.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
Makefile lib/libc: add recallocarray() 2025-10-03 19:46:55 +02:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ohash.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
ohash.h
ohash_init.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
ohash_interval.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
README Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
unistd.h

libopenbsd is a thin compatibility layer intended to allow a limited
set of OpenBSD software to compile as part of the FreeBSD build with
little or no modification.  It is built as a static library and not
installed for general use.  Likewise, its header files are not
installed.