marioroy has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need SYS_sendmsg and SYS_recvmsg values from an AIX box
by Laurent_R (Canon) on Aug 19, 2015 at 20:39 UTC | |
by marioroy (Prior) on Aug 19, 2015 at 21:03 UTC | |
|
Re: Need SYS_sendmsg and SYS_recvmsg values from an AIX box
by Laurent_R (Canon) on Aug 19, 2015 at 21:11 UTC | |
by marioroy (Prior) on Aug 19, 2015 at 22:02 UTC | |
by Laurent_R (Canon) on Aug 20, 2015 at 08:54 UTC | |
by marioroy (Prior) on Aug 20, 2015 at 14:06 UTC | |
by Laurent_R (Canon) on Aug 20, 2015 at 15:44 UTC | |
|