Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2001 00:24:50 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        "Wes Peters" <wes@softweyr.com>
Cc:        "Assar Westerlund" <assar@FreeBSD.org>, "Brian Somers" <brian@Awfulhak.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libutil ecalloc.c emalloc.3 emalloc.c erealloc.c estrdup.c Makefile libutil.h 
Message-ID:  <200107230624.f6N6Ooo87330@harmony.village.org>
In-Reply-To: Your message of "Sun, 22 Jul 2001 23:47:24 MDT." <001c01c1133a$f2b9ac50$24b244cc@blabber> 
References:  <001c01c1133a$f2b9ac50$24b244cc@blabber>  <3698025593.995835470@blabber> <5lwv508huv.fsf@assaris.sics.se> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <001c01c1133a$f2b9ac50$24b244cc@blabber> "Wes Peters" writes:
: I agree with Alfred, I really don't like the idea of a program exiting 
: willy-nilly and feel this will encourage developers to do so.  It is 
: marginally better than not testing return values at all, and hoping 
: for a core file, but only marginally so.  The fact that it has been 
: done alot in existing code doesn't make it a good practice, just a
: common one.

And they should *NEVER* be used in a library.  Libraries that exit
instead of returning an error are lame beyond words.  I don't think we
want to introduce APIs that are safe in cat.c, but unsafe in libc.

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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