On Tue, Apr 4, 2017 at 1:56 PM, Dimitry Andric <d...@freebsd.org> wrote:
>
> > Where did xmalloc.c originate from?
>
> GNU.  Almost all software from the GNU project relies on malloc wrappers
> which abort the program on allocation failures.


This also explains the grep_* versions of `malloc`, `calloc`, `realloc`,
and `strdup` that I've developed a slight distaste for. The "xmalloc"
flavor also had some hash table bits to allow failing after $n allocations
-- is that a slightly less common GNU-ism?

Thanks,

Kyle Evans
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to