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:23:29 GMT
On 18 Apr 2000 03:13:22 -0000, trawick@locus.apache.org wrote:

>trawick     00/04/17 20:13:22
>
>  Modified:    src/lib/apr/file_io/unix seek.c
>  Log:
>  This should work better than the last so-called fix :)
>  If it doesn't work as desired, then the OS/2 version of
>  setptr() is probably hosed as well.

Err, no, the OS/2 version looks quite different because it doesn't involve
errno. The error code is returned by the seek call directly.

The unix code should be something to the effect of

rc = lseek(thefile->filedes, pos, SEEK_SET) == -1 ? errno : APR_SUCCESS;

-- 
 ______________________________________________________________________________
 |  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