Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jun 2002 16:21:24 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Garrett Wollman <wollman@lcs.mit.edu>
Cc:        Kris Kennaway <kris@obsecurity.org>, current@FreeBSD.ORG
Subject:   Re: State of the ports collection
Message-ID:  <3CFBF9F4.1BA3080D@mindspring.com>
References:  <20020603134224.A29126@xor.obsecurity.org> <200206032127.g53LRQri016204@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Wollman wrote:
> <<On Mon, 3 Jun 2002 13:42:24 -0700, Kris Kennaway <kris@obsecurity.org> said:
> > * (>35 ports) Something caused sys_nerr to change prototypes.  It looks
> >   like this might be because the definition of __const from
> >   <sys/ctypes.h> has changed, but I can't see why.  See for example
> 
> >   http://bento.freebsd.org/errorlogs/5-latest/bogosort-0.3.3.log
> 
> Any program which declares sys_errlist for itself is wrong.  In most
> cases, the program should be using either strerror() or strerror_r(),
> depending on its needs.

Yes.

I hate data interfaces more than your average person, but I admit
that there are some performance sensitive cases where you can't
avoid them easily (though you *can* avoid them in almost all cases).

But the error handling path of any program is not one of them; if
you are optimizing something other than the success path, there is
something fundamentally wrong with your program or problem statement.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CFBF9F4.1BA3080D>