This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Gas vs irregular files
Ian Lance Taylor <ian@wasabisystems.com> writes:
> do this:
>
> f_in = fopen (filename, FOPEN_RT);
>
> ...
>
> if (f_in == NULL)
> {
> if (errno == ENOENT)
> as_bad (_("%s: No such file"), filename);
> else
> {
> as_bad (_("can't open %s for reading"), file_name);
> as_perror ("%s", file_name);
> }
> return;
> }
Why making ENOENT a special case anyway? What's wrong with as_perror?
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, MaxfeldstraÃe 5, 90409 NÃrnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."