httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: cvs commit: apache-2.0/src/lib/apr/file_io/unix seek.c
Date Tue, 18 Apr 2000 03:57:10 GMT
Looks fine, +1

On Mon, 17 Apr 2000 23:42:03 -0400, Jeff Trawick wrote:

>yep, makes sense to me...  I forgot to set rc to errno on an
>lseek() failure...
>
>how about this?
>
>    else {
>        rc = lseek(thefile->filedes, pos, SEEK_SET);
>
>        if (rc != -1 ) {
>            thefile->bufpos = thefile->dataRead = 0;
>            rc = 0;
>        }
>        else {
>            rc = errno;
>        }
>    }
>
>    return rc;
>}
>
>

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message