svn commit: r316492 - in head/usr.bin/grep: . regex

Kyle Evans kevans91 at ksu.edu
Tue Apr 4 19:16:35 UTC 2017


On Tue, Apr 4, 2017 at 1:56 PM, Dimitry Andric <dim at 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


More information about the svn-src-head mailing list