apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@covalent.net>
Subject Re: apr_gethostname()
Date Fri, 16 Mar 2001 00:37:28 GMT
On Thu, 15 Mar 2001, Doug MacEachern wrote:

> i just noticed that this function takes an apr_pool_t* argument, but none
> of the implementations (unix, win32 , os2) use it for anything.  any
> reason not to remove this unused arg?


Yes.  All APR functions must have acess to a pool.  Imagine a platform
that requires we allocate memory for gethostname before we call the system
call.  If we don't pass the pool, we can't allocate the memory.  We are
trying to be future proof, which may be stupid, but that was part of the
original design.

Ryan

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


Mime
View raw message