Date: Sun, 28 Jan 1996 10:43:46 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Re: sysexits.h. which EX_ to use Message-ID: <199601280943.KAA01284@uriah.heep.sax.de> In-Reply-To: <Pine.BSF.3.91.960127222400.9792E-100000@Aspen.Woc.Atinc.COM> from "Jonathan M. Bresler" at Jan 27, 96 10:29:44 pm
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601280943.KAA01284>