Greetings all,

I'm wanting to include support for AIX for enqueue/dequeue and wait/notify features to be added to MCE::Shared for the upcoming 1.7 release. The optional features require the shared process to pass file handles (mutex fd's) to workers. The mutex handles are enabled on-demand. The reason is that not all shares require enqueue/dequeue or wait/notify capability.

This link suggest sendmsg/recvmsg compatibility between AIX and Linux. Thus, doing sendmsg/recvmsg in pure-Perl is possible on Linux, BSD/Darwin/DragonFly, including AIX. I'm missing the actual values from an AIX box.

Can a monk with access to an AIX box run the 3 liners please?

require 'sys/syscall.ph'; # this is built with h2ph print "SYS_sendmsg: ", SYS_sendmsg(), "\n"; print "SYS_recvmsg: ", SYS_recvmsg(), "\n";

Building syscall.ph is typically done with one of the following:

( cd /usr/include; h2ph * sys/* ) or ( cd /usr/include; h2ph -r -l . )

But that requires root access. One can run as non-root with the -d option (destination). It has been a while and forgotten where the include files are located on AIX.

A likely fallback plan is IO::FDPass. It requires C and not sure if the module works on AIX. This module has one dependency which is Canary::Stability.

Thank you in advance for your time.

Sincerely, Mario


In reply to Need SYS_sendmsg and SYS_recvmsg values from an AIX box by marioroy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.