reallocarray(3) and its uses
Ngie Cooper
yaneurabeya at gmail.com
Fri Mar 10 19:12:12 UTC 2017
> On Mar 10, 2017, at 09:00, Pedro Giffuni <pfg at FreeBSD.org> wrote:
>
> Hello;
>
> I wasn't a fan of bringing reallocarray(3) from OpenBSD, but since we have it, I thought I'd take a look at using it. It is rather easy to use so I went around opengrok'ing "realloc" in userland and crosschecking with OpenBSD and I got to this patch:
>
> https://reviews.freebsd.org/D9915
>
> Current reviewers are mute: I am unsure if they are just deeply impressed and don't want to speak up or if they are simply too busy (most likely the later). There are still more uses in some utilities but I wanted to see what people think of the general idea.
Hi Pedro!
I'll take a look at the reviews sometime after I get back tomorrow night.
My general thoughts are: if it's an application of library that needs to be portable, don't use it. If not, use it.
I think it's kind of the same class of API call as reallocf. reallocf is a good extension, but it's not 100% portable.
Thanks!
-Ngie
More information about the freebsd-arch
mailing list