Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: error messages (was Re: friendly messages) Message-ID: <1376@auspex.auspex.com> Date: 3 Apr 89 18:50:03 GMT References: <604@marob.MASA.COM> <7555@phoenix.Princeton.EDU> Reply-To: guy@auspex.auspex.com (Guy Harris) Distribution: usa Organization: Auspex Systems, Santa Clara Lines: 22 >I don't know about System V, but under BSD systems, including >gives you not only perror() but a sys_errlist[] of error message texts. This dates back long before BSD; it's a V7ism, and present in any modern UNIX worthy of the name. > char *err(errno) Call it "strerror" instead - the ANSI C draft does. >Some say that the error message facility should automatically print the >program name for you, and others say that the wave of ANSI/the future >is to include info/warning/verybad/fatal/endoftheworld; I don't know about the wave of the future, but the (draft) ANSI C standard says nothing about info/warning/...; POSIX P1003.1, which at least at one point touted itself as a draft American National Standard - although the final P1003.1 doesn't do so - says nothing about it either, so I don't think it's the wave of ANSI. It may show up in S5R4, but if so it'll probably let you turn off stuff such as that if you don't want to see it.