From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 02:19:03 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E93EF106566B; Mon, 25 Apr 2011 02:19:03 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id B03068FC0A; Mon, 25 Apr 2011 02:19:03 +0000 (UTC) Received: by pzk27 with SMTP id 27so1310822pzk.13 for ; Sun, 24 Apr 2011 19:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=wUWsPRYeXuB+u7z15SCBO/S8OnL0xU3LAehWEHlqfSc=; b=cTJBZIwpeeiwnV+qCc5tllXAFI6wdqNcSccgbquM8vqd8BC+pVuGHlHSmNro9xVe7O 0iTvlFFd1COqwc1OJGUk5lo8Aud4+8KNbEbaVxT3yGumP4xRVufvGba0AwgQAuh0Myoi 3iG5RB3XHcTMn9QCQkcjhCJxLMHrP4k0p9GuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=kWROkU9fNpV31pFYG1VPLAsbX29YCLec1Rt1ewUKuEA2mpng0l4vUga4fjYza/DMmW 66bWRscUAwk0zheD8cd2pOO8iwhEauPL7oA53iSXGcDUbpohnsb18BYuSke8+ouUISFJ tGgKEjT5xAf0RqvW54bRNC7V+0HCxd3xlBz5o= Received: by 10.68.56.130 with SMTP id a2mr5683984pbq.3.1303697943298; Sun, 24 Apr 2011 19:19:03 -0700 (PDT) Received: from [10.7.231.114] ([166.205.140.137]) by mx.google.com with ESMTPS id x8sm1270962pbp.27.2011.04.24.19.19.00 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2011 19:19:02 -0700 (PDT) References: <20110424174442.GA45573@freebsd.org> In-Reply-To: <20110424174442.GA45573@freebsd.org> Mime-Version: 1.0 (iPhone Mail 8C148) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8C148) From: Garrett Cooper Date: Sun, 24 Apr 2011 19:18:51 -0700 To: Alexander Best Cc: "freebsd-hackers@freebsd.org" Subject: Re: exit(3) and sysexits(3) style policy X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2011 02:19:04 -0000 On Apr 24, 2011, at 10:44 AM, Alexander Best wrote: > hi there, >=20 > i was wondering about this for some time now: >=20 > various documents decribe different policies regarding exit(3)'s return va= lues. > style(9) e.g. recommends using exit(0), while other man pages such as err(= 3) > recommend using the sysexits(3) return values. >=20 > i think i read some time ago on the mailinglists that it was decided that > exit(3) should return integers rathers than sysexits(3) values. is this > correct? shouldn't then all references such as in err(3) be removed and a > note added to sysexits(3) that returnings its values via exit(3) does not > according to current FreeBSD programming style? Bruce Evans was very anti-sysexits a while ago, and I personally agree -- in= part because they're not necessarily portable and their application isn't c= onsistent.=20=