Home | History | Annotate | Download | only in stdlib
History log of /src/lib/libc/stdlib/reallocarray.c
RevisionDateAuthorComments
 1.12  28-Oct-2022  wiz put reallocarray() in the public namespace

reallocarray() will be part of the next POSIX release, see
https://austingroupbugs.net/view.php?id=1218

adapt an errno value to match POSIX expectations

As discussed on tech-userlevel
 1.11  26-Feb-2021  christos arrange for tools build
 1.10  04-Jan-2018  kamil Add bunch of missing includes of namespace.h in libc

The NetBSD Standard C Library uses internally some of its functions with
a mangled symbol name, usually "_symbol". The internal functions shall not
use the global (public) symbols.

This change eliminates usage of the global changes of the following symbols:
- strlcat -> _strlcat
- sysconf -> __sysconf
- closedir -> _closedir
- fparseln -> _fparseln
- kill -> _kill
- mkstemp -> _mkstemp
- reallocarr -> _reallocarr
- strcasecmp -> _strcasecmp
- strncasecmp -> _strncasecmp
- strptime -> _strptime
- strtok_r -> _strtok_r
- sysctl -> _sysctl
- dlopen -> __dlopen
- dlclose -> __dlclose
- dlsym -> __dlsym

Sponsored by <The NetBSD Foundation>
 1.9  07-Oct-2017  christos remove recallocarray
 1.8  07-Oct-2017  christos add recallocarray
 1.7  06-Apr-2016  roy Revert prior, no idea why it was causing me problems, but it no longer does.
 1.6  05-Apr-2016  roy Stop calling reallocarr and just do the same bounds checking but without
messing around with copying pointers which was causing ssh to crash.
 1.5  26-Jul-2015  kamil reallocarray(3) cleanup

Add missing NetBSD CVS Id
Don't define twice _OPENBSD_SOURCE
 1.4  10-Mar-2015  christos Behave in an OpenBSD compatible way for 0.
 1.3  17-Feb-2015  christos use reallocarr()
 1.2  17-Feb-2015  joerg Move reallocarray under _OPENBSD_SOURCE where it belongs.
 1.1  05-Feb-2015  christos Add and use reallocarray() to prevent a multiplication overflow in allocation.
Reported by Guido Vranken, thanks!

RSS XML Feed