From owner-freebsd-hackers Wed Oct 15 17:20:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA20942 for hackers-outgoing; Wed, 15 Oct 1997 17:20:36 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from earth.mat.net (root@earth.mat.net [206.246.122.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA20935 for ; Wed, 15 Oct 1997 17:20:32 -0700 (PDT) (envelope-from chuckr@glue.umd.edu) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by earth.mat.net (8.8.7/8.6.12) with SMTP id UAA01884; Wed, 15 Oct 1997 20:15:26 -0400 (EDT) Date: Wed, 15 Oct 1997 19:15:18 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@picnic.mat.net To: Brian Somers cc: Mark Tinguely , hackers@FreeBSD.ORG, jacques@wired.ctech.ac.za Subject: Re: values for exit() In-Reply-To: <199710152224.XAA18405@awfulhak.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 15 Oct 1997, Brian Somers wrote: > > > Where can I find the exit values for > > > exit()? Meaning, what is the difference > > > between eg exit(1) and exit(2)? > > > > each application defines their return code meanings. The important > > rule is that 0 means no error, non-zero indicates an error or special > > condition. > > Although this is true in practice, the theory is in sysexits.h Brian, I don't think so. Excepting maybe Garrett, who uses it a lot for networking, I don't think it's used a whole great deal. The non-standard may be nearer a standard, although (because sysexits offsets the returns from a fairly high base number to allow for exit numbers already out there) sysexits is pretty compatible. Some return the errno, don't they? > > > --mark. > > -- > Brian , , > > Don't _EVER_ lose your sense of humour.... > > > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------