History log of /netbsd-src/lib/libc/stdlib/reallocarr.3 (Results 1 – 7 of 7)
Revision Date Author Comments
# cf221fb5 31-Aug-2022 riastradh <riastradh@NetBSD.org>

reallocarr(3): Touch up xrefs.


# a2fb076e 31-Aug-2022 riastradh <riastradh@NetBSD.org>

reallocarr(3): Bump date. Note overflow is handled internally.


# 249e1d8c 31-Aug-2022 riastradh <riastradh@NetBSD.org>

reallocarr(3): Clarify semantics.


# 638c990b 28-Jul-2015 kamil <kamil@NetBSD.org>

Compatibility fixes in reallocarr(3)

Make this work on !NetBSD platforms:
- replace __CTASSERT() with platform agnostic solution SQRT_SIZE_MAX
- include nbtool_config.h for cross builds to get defin

Compatibility fixes in reallocarr(3)

Make this work on !NetBSD platforms:
- replace __CTASSERT() with platform agnostic solution SQRT_SIZE_MAX
- include nbtool_config.h for cross builds to get definition of __RCSID()
- restore errno in the last rare code path for platforms affecting errno(2)
in memcpy(2)

While there: rename parameter name 'num' to 'number' to be in sync with
the calloc(3) parameter naming.

Reported by scole_mail at the current-users ml.

show more ...


# f95cba75 19-Feb-2015 wiz <wiz@NetBSD.org>

Add EXAMPLES section, from Youri Mouton.
Bump date.


# a1da3f78 18-Feb-2015 wiz <wiz@NetBSD.org>

Fix Xref. Split line, Ox doesn't take word arguments.


# c9baa596 17-Feb-2015 joerg <joerg@NetBSD.org>

Introduce reallocarr(3) for easy (re)allocation of memory with overflow
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory
leaks on allocation failures and it doesn't depend

Introduce reallocarr(3) for easy (re)allocation of memory with overflow
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory
leaks on allocation failures and it doesn't depend on malloc(0) != NULL
for correct error checking. Compared to plain realloc, it also avoids
the problem of intermediate integer overflows. The trade-off is the use
of void * to side step C type system with regard to generic pointer to
pointer.

show more ...