Received: (from majordom@localhost) by hyperreal.com (8.8.5/8.8.5) id UAA26387; Sun, 29 Jun 1997 20:34:20 -0700 (PDT) Received: from sierra.zyzzyva.com (ppp0-sierra.zyzzyva.com [208.214.59.46]) by hyperreal.com (8.8.5/8.8.5) with ESMTP id UAA26382 for ; Sun, 29 Jun 1997 20:34:16 -0700 (PDT) Received: from sierra (localhost [127.0.0.1]) by sierra.zyzzyva.com (8.8.5/8.8.2) with ESMTP id WAA10427 for ; Sun, 29 Jun 1997 22:34:49 -0500 (CDT) Message-Id: <199706300334.WAA10427@sierra.zyzzyva.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: new-httpd@apache.org Subject: Re: Apache and DCE In-reply-to: dougm's message of Fri, 27 Jun 1997 12:07:26 -0400. <199706271607.MAA20486@postman.opengroup.org> X-uri: http://www.zyzzyva.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 29 Jun 1997 22:34:49 -0500 From: Randy Terbush Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Doug/Dean, In this section of the patch below, saferead() is returning the requested number of bytes to be read, not the actual return of sfread(). > *************** > *** 297,305 **** > * would block. It also deals with the EINTR errno result from read(). > * return code is like read() except EINTR is eliminated. > */ > static int > ! saferead( BUFF *fb, void *buf, int nbyte ) > { > int rv; > > if( fb->flags & B_SAFEREAD ) { > --- 306,327 ---- > * would block. It also deals with the EINTR errno result from read(). > * return code is like read() except EINTR is eliminated. > */ > + > + #ifdef B_SFIO > static int > ! saferead(BUFF *fb, char *buf, int nbyte) > { > + int n; > + n = sfread(fb->sf_in, buf, nbyte); > + return nbyte; > + } > + #else > + #define saferead __bsaferead > + #endif > + > + static int > + __bsaferead(BUFF *fb, void *buf, int nbyte) > + { > int rv; > > if( fb->flags & B_SAFEREAD ) {