cvs commit: src/sbin/fsck fsutil.h

Bruce Evans bde at zeta.org.au
Tue Dec 30 08:30:22 PST 2003


On Tue, 30 Dec 2003, Dag-Erling [iso-8859-1] Sm=F8rgrav wrote:

> Bruce Evans <bde at FreeBSD.org> writes:
> >   Declare perror().  We define and use a home made version of perror(3)
> >   that can't simply be removed (although it has the same interface as
> >   perror(3)) since it is very different (it prints on stdout, doesn't
> >   always print the program name, and sometimes exits).  Declare it to
> >   get a reminder of this brokenness when WARNS is increased enough.
>
> Why not just rename it to not_perror()?

Because it should be fixed better.  fsck_ffs gets by without any
perror() function, and fsck_ffs's other error reporting functions are
subtly different.  I haven't decided whether fsck_ffs should be more
like fsck_msdosfs or vice versa.

Bruce


More information about the cvs-src mailing list