httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject Re: Apache and DCE
Date Mon, 30 Jun 1997 03:34:49 GMT

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 ) {


Mime
View raw message