'what' doesn't use perror to print open errors, Sys V/3.0

Ubben Greg bink at aplcen.apl.jhu.edu
Sun Apr 30 12:11:55 AEST 1989


In article <10156 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
> (1) "what" uses fopen() to open the file.  perror() is inappropriate
> except when a system call reports failure.  fopen() is not a system call.
> ...

I regularly use perror() to report the failure of an fopen().  It works on
all the systems I've used because, of course, the fopen() doesn't make any
other system calls after the open().  Is this really a bad thing to do?
confirm: 

					-- Greg Ubben
					   bink at aplcen.apl.jhu.edu



More information about the Comp.bugs.sys5 mailing list