Updated with output from a Linux VM.

Thank you Laurent_R. I just tried with the -d option and root access is not required. There is space followed by a dot after the -l (letter l as in larry).

mkdir /tmp/phfiles cd /usr/include h2ph -d /tmp/phfiles -r -l . cd /tmp/phfiles grep sendmsg */*.ph grep recvmsg */*.ph

Below, the grep output from a 64-bit Linux OS. Thus, the values are 46 and 47 for sendmsg and recvmsg respectively.

$ cd /tmp/phfiles $ grep sendmsg */*.ph asm-generic/unistd.ph:eval 'sub __NR_sendmsg () {211;}' unless defined +(&__NR_sendmsg); asm/unistd_64.ph: eval 'sub __NR_sendmsg () {46;}' unless defined(& +__NR_sendmsg); asm/unistd_x32.ph: eval 'sub __NR_sendmsg () {( &__X32_SYSCALL_BIT ++ 518);}' unless defined(&__NR_sendmsg); bits/syscall.ph: eval 'sub SYS_sendmsg () { &__NR_sendmsg;}' unless + defined(&SYS_sendmsg); bits/syscall.ph: eval 'sub SYS_sendmsg () { &__NR_sendmsg;}' unless + defined(&SYS_sendmsg); $ grep recvmsg */*.ph asm-generic/unistd.ph:eval 'sub __NR_recvmsg () {212;}' unless defined +(&__NR_recvmsg); asm/unistd_64.ph: eval 'sub __NR_recvmsg () {47;}' unless defined(& +__NR_recvmsg); asm/unistd_x32.ph: eval 'sub __NR_recvmsg () {( &__X32_SYSCALL_BIT ++ 519);}' unless defined(&__NR_recvmsg); bits/syscall.ph: eval 'sub SYS_recvmsg () { &__NR_recvmsg;}' unless + defined(&SYS_recvmsg); bits/syscall.ph: eval 'sub SYS_recvmsg () { &__NR_recvmsg;}' unless + defined(&SYS_recvmsg);

In reply to Re^2: Need SYS_sendmsg and SYS_recvmsg values from an AIX box by marioroy
in thread 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.