For checking whether the memory belongs to that /process/, trap
SIGSEGV and try to deref the pointer. If you SIGSEGV, it was invalid,
otherwise it belonged to you
Regards,
-- Raju
>>>>> "asriniva" == asriniva <[EMAIL PROTECTED]> writes:
asriniva> Hi all,
asriniva> Is there any library function supported by gcc, which
asriniva> takes a void pointer and returns true if that memory
asriniva> (pointed by that void pointer) is owned by that process
asriniva> or not?
asriniva> Thanks in advance.
asriniva> Bye, Srinivas.A.V.
-----------------------------------------------------------------------
LIH is all for free speech. But it was created for a purpose - to help
people discuss issues about installing and running Linux. If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.