Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2017 14:16:07 -0500
From:      Kyle Evans <kevans91@ksu.edu>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>, <svn-src-head@freebsd.org>, <svn-src-all@freebsd.org>, <src-committers@freebsd.org>, Conrad Meyer <cem@freebsd.org>
Subject:   Re: svn commit: r316492 - in head/usr.bin/grep: . regex
Message-ID:  <CACNAnaFKsJSPCb0vp6K7hsE-yCaESu--CrGrr4XyX6gDYpMyvA@mail.gmail.com>
In-Reply-To: <B9C5AC3B-1775-4D5D-ADA7-C6CE091F32F5@FreeBSD.org>
References:  <201704041608.v34G8qSo055328@repo.freebsd.org> <4D675D2F-7D6F-4AF2-AE10-5DF19D4158D0@gmail.com> <B9C5AC3B-1775-4D5D-ADA7-C6CE091F32F5@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 4, 2017 at 1:56 PM, Dimitry Andric <dim@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaFKsJSPCb0vp6K7hsE-yCaESu--CrGrr4XyX6gDYpMyvA>