From owner-freebsd-hackers Sun Jan 28 01:54:36 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA10621 for hackers-outgoing; Sun, 28 Jan 1996 01:54:36 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA10614 for ; Sun, 28 Jan 1996 01:54:31 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA12119 for ; Sun, 28 Jan 1996 10:54:28 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id KAA05011 for freebsd-hackers@freebsd.org; Sun, 28 Jan 1996 10:54:28 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id KAA01284 for freebsd-hackers@freebsd.org; Sun, 28 Jan 1996 10:43:46 +0100 (MET) From: J Wunsch Message-Id: <199601280943.KAA01284@uriah.heep.sax.de> Subject: Re: sysexits.h. which EX_ to use To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sun, 28 Jan 1996 10:43:46 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Jonathan M. Bresler" at Jan 27, 96 10:29:44 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org Precedence: bulk As Jonathan M. Bresler wrote: > > examples: > if fclose(stdout) fails, use EX_OSERR ? > > fstat() a file fails, use EX_OSERR ? > > read() an existing file fails, use EX_OSERR or EX_IOERR ? > > write() to stdout fails, use EX_OSERR or EX_IOERR ? MHO: EX_IOERR for read/write/fclose EX_OSERR for fstat (stat'ing should always be possible if the file exists) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)