[441] in Pthreads mailing list archive
Re: Questions about fd_kern.c
daemon@ATHENA.MIT.EDU (Christopher Provenzano)
Mon Sep 30 23:15:11 1996
Reply-To: proven@cygnus.com
To: "Larry V. Streepy, Jr." <streepy@healthcare.com>
Cc: pthreads@MIT.EDU
In-Reply-To: Your message of "Fri, 27 Sep 1996 13:48:08 MDT."
<324C2F78.18906655@healthcare.com>
Date: Mon, 30 Sep 1996 17:06:30 -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)
>
> Assuming that these are oversights, I've attached the diffs to fix the
> problems that I've found.
Thanks for the diffs. They'll be in the next beta.
CAP