For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > April 2006 > how to parse the msqid_ds structure return from msgctl(ID,









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to parse the msqid_ds structure return from msgctl(ID,
Eric Richardson

2006-04-25, 9:55 pm


The docs state the following :

==========================
msgctl ID, CMD, ARG


Calls the System V IPC function msgctl(2). You'll probably have to say

use IPC::SysV;


first to get the correct constant definitions. If CMD is IPC_STAT, then
ARG must be a variable which will hold the returned msqid_ds structure.
Returns like ioctl: the undefined value for error, "0 but true" for
zero, or the actual return value otherwise. See also perlipc/"SysV IPC",
IPC::SysV, and IPC::Semaphore documentation.

==========================

I have not found a way to dereference the msq_ds array returned as
per
http://cpansearch.bulknews.net/markup/IPC_SysV/SysV.pm. How is this
msqid_ds structure parsed? Do you have a short example?

Thanks,
Eric


________________________________________
_____________________________________
Scanned by Sanmina-SCI eShield ________________________________________
_____________________________________
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com