I need to determine the exact data types for the elements of struct shmid_ds as used in shmctl and shared memory.
This is for Snow Leopard, and i will be calling shmctl from a 32 bit app. I am calling this from declares inside a REALbasic app thus the
reason for needing the exact datatypes. Is there any padding involved ? I’ve used the xcode man pages but even though im able to
create shared memory successfully and map/attach to the shared memory, when i use shmctl to interrogate the struct as above i dont get any sensible values
- for example in the segz element.
Also - Do i use the LEGACY definition for ipc_perm since i am calling shmctl from a 32 bit app or do all the element types have to
be 64 bit ( for example should i interpret the long type as applied to shmid_ds as a signed 64 bit integer ? )