From: utzoo!decvax!duke!unc!smb Newsgroups: net.unix-wizards,net.news.b Title: Re: Identify program error messages, please! Article-I.D.: unc.3729 Posted: Sun Jul 25 15:22:45 1982 Received: Wed Jul 28 03:48:12 1982 I agree that error messages should be identified. Unfortunately, it takes a little forethought -- 'perror' doesn't make that easy on you; it should take two arguments, or it should fill in the command-name itself. Amdahl's UTS (UNIX/370) system stores argv[0] in 'cmdname' in the run-time startup routine (crt0.o); that makes it globally accessible, like 'environ', and hence makes it easier on programmers. --Steve Bellovin