httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: MMAP support for APR
Date Mon, 18 Oct 1999 16:01:03 GMT
i think this is pointless.  platforms which don't have mmap should just
not be using send_mmap, they should be using send_file.

Dean

On Fri, 15 Oct 1999, Manoj Kasichainula wrote:

> On Sat, Oct 16, 1999 at 01:20:20AM +0100, David Reid wrote:
> > The intent was to have any/all platform's able to have
> > mmap-type-functionailty.
> > 
> > Exactly how this is accomplished and whether this is used would depend on
> > the platform.
> 
> The only way to pull off even an approximation of this that I can
> think of would be accessor functions/macros that use mmap on most
> systems and use fseek and its ilk on the other systems. Something
> like:
> 
> apr_mmap_write(mmap_ADT, offset, length, char *);
> apr_mmap_read(mmap_ADT, offset, length, char **);
> 
> In other words, something that looks more like random-access I/O
> functions.
> 
> In Apache's case, I think this could work well if the mmap-wrapper
> kept track of the current file position to avoid extra seeks. 
> 
> -- 
> Manoj Kasichainula - manojk at io dot com - http://www.io.com/~manojk/
> "Other people have dreams and I just laugh at them."
>   -- Linus Torvalds, Linux Expo '98
> 


Mime
View raw message