From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 17:44:42 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 3F9DB1065670; Sun, 24 Apr 2011 17:44:42 +0000 (UTC) Date: Sun, 24 Apr 2011 17:44:42 +0000 From: Alexander Best To: freebsd-hackers@freebsd.org Message-ID: <20110424174442.GA45573@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: 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: Sun, 24 Apr 2011 17:44:42 -0000 hi there, i was wondering about this for some time now: various documents decribe different policies regarding exit(3)'s return values. style(9) e.g. recommends using exit(0), while other man pages such as err(3) recommend using the sysexits(3) return values. 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? cheers. alex -- a13x