Date: Wed, 15 Oct 1997 19:15:18 -0400 (EDT) From: Chuck Robey <chuckr@glue.umd.edu> To: Brian Somers <brian@awfulhak.org> Cc: Mark Tinguely <tinguely@plains.nodak.edu>, hackers@FreeBSD.ORG, jacques@wired.ctech.ac.za Subject: Re: values for exit() Message-ID: <Pine.BSF.3.96.971015191103.9094s-100000@picnic.mat.net> In-Reply-To: <199710152224.XAA18405@awfulhak.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org> > <http://www.Awfulhak.org> > 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! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971015191103.9094s-100000>