Commit Graph

12 Commits

Author SHA1 Message Date
tnn 00bf802c59 annotate __dead 2019-10-03 20:29:19 +00:00
christos 5c84fc8d45 provide a default error function instead of trying to cast exit(3). 2019-10-03 18:12:44 +00:00
kamil 2cf5f6af2b Add ereallocarr(3) to libutil
ereallocarr(3) wraps reallocarr(3) and embeds return status validation.

Older version reviewed by <riastradh> and <christos>
2015-07-26 02:20:30 +00:00
christos 57b77f77cd add estro{i,u} (Kamil Rytarowski) 2015-01-18 18:09:36 +00:00
dholland cd3306d1ba Fix failure message for ecalloc. 2012-12-30 17:37:13 +00:00
dholland 1e653dd9c8 If malloc, calloc, or realloc returns NULL when a size of 0 was
requested, which is allowed by pertinent standards, honor it instead
of bombing.

Do not do this for calloc(x, y) where x != 0 && y != 0 but x*y == 0;
in that case bomb.
2012-12-30 17:36:00 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
pooka 060d8639e3 add estrndup() 2007-07-01 21:41:16 +00:00
christos 5863dc6ef1 Coverity CID 4159: Don't memset() needlessly. 2006-09-27 16:20:03 +00:00
christos ec0bdc9542 make this compilable as a tool. 2006-08-28 20:46:26 +00:00
christos 568f6f6f30 Only use __RCSID if we have it. 2006-08-26 23:17:43 +00:00
christos 6e90deb9cb Efun source. 2006-08-26 18:11:45 +00:00