Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!linus!decvax!harpo!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.unix Subject: Re: 'exit(1);' considered useless (slight flame) Message-ID: <1736@rlgvax.UUCP> Date: Sun, 19-Feb-84 14:10:28 EST Article-I.D.: rlgvax.1736 Posted: Sun Feb 19 14:10:28 1984 Date-Received: Mon, 20-Feb-84 02:20:47 EST References: <16732@sri-arpa.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 19 > (Forgive me, I'm reconstructing this from memory, and I don't > have access to the Athena system right now--I think the > declarations of char *sys_errlist[] and int sys_nerr are > available from some include file on 4.xBSD. If you don't have > those, look at the source for perror, and see where it gets its > error message strings (if you don't have the source for perror, I > guess you could use adb on a program which uses it, and > rebuild the table--I can't tell you, cause Mother Bell wouldn't like > it if I did).) No, the declarations aren't available in an include file under 4.xBSD (besides, that wouldn't help people running V7 or S3/S5 if it wasn't there), but they are available in /usr/man/man3/perror.3 or, if you want hard copy, in the manual page PERROR(3) in the UNIX (Programmer's|User's) Manual. Not *every* nice feature of UNIX is totally undocumented... "sys_errlist" and "sys_nerr" are, indeed, what you said they are. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy