You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1997/06/30 05:34:49 UTC
Re: Apache and DCE
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 ) {