[442] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: Questions about fd_kern.c

daemon@ATHENA.MIT.EDU (Christopher Provenzano)
Tue Oct 1 22:23:59 1996

Reply-To: proven@cygnus.com
To: "Larry V. Streepy, Jr." <streepy@healthcare.com>, pthreads@MIT.EDU
In-Reply-To: Your message of "Mon, 30 Sep 1996 17:06:30 EDT."
             <199609302106.RAA00096@qed.proven.org> 
Date: Tue, 01 Oct 1996 11:42:02 -0400
From: Christopher Provenzano <proven@proven.org>


> 
> > All,
> > 
> > I've been running into several problems in the error handling/returning
> > withing fd_kern.c in the network routines.
> > 
> > There are places where the -errno value is returned instead of -1.  Was
> > this intentional, because it certainly makes the routines non-conformant
> > with the libc routines.
> 
> Many versions ago before I put in a per thread errno I wrote the code to
> return the negative of the error value. This was about the same time when
> the POSIX thread committee was making all the pthread routines also
> return the negative of the error value. (Around draft 6 or 7)
> 
I forgot to say that now the code shouldn't return the negative of the error
number and that any routines that do are the result of legacy code that
needs fixing.

CAP

home help back first fref pref prev next nref lref last post