httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@apache.org>
Subject Re: cvs commit: httpd-2.0/server log.c
Date Thu, 23 May 2002 21:31:45 GMT
On Thu, May 23, 2002 at 02:25:48PM -0700, Greg Stein wrote:
> Oof... needlessly complicated. Just use apr_file_read_full(). It will return
> all the bytes that you ask for, unless an error condition occurs (EOF).
> There is no need to do any looping.

You'd have to do a stat() on the file to get the file size as we
don't know how much data we need.  

According to the docs, it says that it is not possible for bytes
to be read and an APR_EOF error to be returned.  That seems like
it is conflict with the Unix impl though.  (The Unix impl could
return bytes and APR_EOF.)  -- justin

Mime
View raw message