apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apr-util/src/buckets ap_buckets_file.c
Date Tue, 02 Jan 2001 06:47:58 GMT
On Mon, Jan 01, 2001 at 09:53:25PM -0800, rbb@covalent.net wrote:
> > > Try this, you create a file instance.  Later, you want to attach userdata
> > > to it.  Where do you allocate the data from?
> > 
> > hehe... poor example. I use apr_get/set_filedata()   :-)
> > 
> > We've gone this far without the accessor functions. Adding
> > apr_mmap_from_file would obviate the need.
> 
> Which doesn't solve the problem.  How did you allocate the data?  If you
> used a pool, you have to be careful of which one you used.  If you don't
> get it from the file itself, then you have to pass the pool along with the
> file.
> 
> It isn't a question of calling apr_set_userdata.  It is a question of
> which pool was used to allocate the userdata.

Sure sure :-)

But back to the point: the problem at hand is to construct an mmap from a
file. We have a simple alternative for that.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message