From owner-freebsd-hackers Mon Oct 20 11:24:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA11047 for hackers-outgoing; Mon, 20 Oct 1997 11:24:51 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.5.84]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA11039 for ; Mon, 20 Oct 1997 11:24:37 -0700 (PDT) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.7/8.8.7) id LAA23047; Mon, 20 Oct 1997 11:23:29 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp03.primenet.com, id smtpd023030; Mon Oct 20 11:23:23 1997 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id LAA09061; Mon, 20 Oct 1997 11:23:20 -0700 (MST) From: Terry Lambert Message-Id: <199710201823.LAA09061@usr05.primenet.com> Subject: Re: values for exit() To: joerg_wunsch@uriah.heep.sax.de Date: Mon, 20 Oct 1997 18:23:19 +0000 (GMT) Cc: hackers@FreeBSD.ORG, jacques@wired.ctech.ac.za In-Reply-To: <19971018085300.UT45874@uriah.heep.sax.de> from "J Wunsch" at Oct 18, 97 08:53:00 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > > > Where can I find the exit values for > > > > > exit()? Meaning, what is the difference > > > > > between eg exit(1) and exit(2)? > > > > errno.h > > Only in TerryBSD. In FreeBSD, stick with sysexits(3). Too bad you didn't quote the rest of my message. The other OS's whose shells output messages for the program exit values for non-script driven program starts are: UnixWare 1.x UnixWare 2.x Solaris 2.x SCO Version 5 Of course, Jorg could be right, and everyone else could be wrong. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.