You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Graham Leggett <mi...@sharp.fm> on 2001/08/18 19:30:54 UTC

apr_shmem - is it available on all platforms?

Hi all,

Is the shared memory stuff in APR available on all platforms?

I would like to remove a whole lot of #ifdef's from the LDAP code that
either include or ignore shared memory - should I just remove them, or
should there be some kind of compile check for them? Is there a runtime
check for shared memory support?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."

Re: apr_shmem - is it available on all platforms?

Posted by Ryan Bloom <rb...@covalent.net>.
The only run-time checks in APR are when a function returns
APR_ENOTIMPL.  As for compile time checks, there should
be an APR_HAS_SHMEM.

Ryan

On Saturday 18 August 2001 10:30, Graham Leggett wrote:
> Hi all,
>
> Is the shared memory stuff in APR available on all platforms?
>
> I would like to remove a whole lot of #ifdef's from the LDAP code that
> either include or ignore shared memory - should I just remove them, or
> should there be some kind of compile check for them? Is there a runtime
> check for shared memory support?
>
> Regards,
> Graham

----------------------------------------
Content-Type: application/x-pkcs7-signature; charset="us-ascii"; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Description: S/MIME Cryptographic Signature
----------------------------------------

-- 

______________________________________________________________
Ryan Bloom                        	rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Re: apr_shmem - is it available on all platforms?

Posted by Ian Holsman <ia...@cnet.com>.
Justin Erenkrantz wrote:

>On Sat, Aug 18, 2001 at 07:30:54PM +0200, Graham Leggett wrote:
>
>>Hi all,
>>
>>Is the shared memory stuff in APR available on all platforms?
>>
>>I would like to remove a whole lot of #ifdef's from the LDAP code that
>>either include or ignore shared memory - should I just remove them, or
>>should there be some kind of compile check for them? Is there a runtime
>>check for shared memory support?
>>
>
>You can check APR_HAS_SHARED_MEMORY in apr.h.  It is possible for 
>APR_HAS_SHARED_MEMORY to be 0.  So, technically, you can have an APR 
>that doesn't have shmem.  HTH.  -- justin
>
NT doesn't have shared memory implmented.



Re: apr_shmem - is it available on all platforms?

Posted by Justin Erenkrantz <je...@ebuilt.com>.
On Sat, Aug 18, 2001 at 07:30:54PM +0200, Graham Leggett wrote:
> Hi all,
> 
> Is the shared memory stuff in APR available on all platforms?
> 
> I would like to remove a whole lot of #ifdef's from the LDAP code that
> either include or ignore shared memory - should I just remove them, or
> should there be some kind of compile check for them? Is there a runtime
> check for shared memory support?

You can check APR_HAS_SHARED_MEMORY in apr.h.  It is possible for 
APR_HAS_SHARED_MEMORY to be 0.  So, technically, you can have an APR 
that doesn't have shmem.  HTH.  -- justin