From owner-cvs-all Sun Jul 22 23:24:58 2001 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 5E86737B405; Sun, 22 Jul 2001 23:24:52 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f6N6OoF49923; Mon, 23 Jul 2001 00:24:51 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.4) with ESMTP id f6N6Ooo87330; Mon, 23 Jul 2001 00:24:50 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200107230624.f6N6Ooo87330@harmony.village.org> To: "Wes Peters" Subject: Re: cvs commit: src/lib/libutil ecalloc.c emalloc.3 emalloc.c erealloc.c estrdup.c Makefile libutil.h Cc: "Assar Westerlund" , "Brian Somers" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.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> Date: Mon, 23 Jul 2001 00:24:50 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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