apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: cvs commit: apr-util/src/buckets ap_buckets_file.c
Date Tue, 02 Jan 2001 14:21:02 GMT

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

No, that isn't the problem.  The problem at hand is to get access to the
pool within an APR type.  An example is to be able to create an mmap from
a file.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message