wqhhust has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to use syscall inside perl, so I should first use h2ph to create the syscall.hp. But there is no file syscall.h under /usr/include/*/* on opensolaris, so syscall.hp can't be created. Where can I get the syscall.h. If there is no such thing, how could I use syscall inside perl on solaris?

Replies are listed 'Best First'.
Re: problem of using h2ph under solaris
by almut (Canon) on May 11, 2009 at 00:17 UTC
    But there is no file syscall.h under /usr/include/*/* on opensolaris...

    AFAIK, there should be a /usr/include/sys/syscall.h (unless they've moved it recently — just checked on a somewhat older version).  If all else fails, you might want to get it directly from the source tree: /usr/src/uts/common/sys/syscall.h.

Re: problem of using h2ph under solaris
by ww (Archbishop) on May 10, 2009 at 13:16 UTC
    No knowledge of Solaris, but what are you trying to do with syscall?

    More specifics might help us help you.

Re: problem of using h2ph under solaris
by ig (Vicar) on May 10, 2009 at 15:58 UTC

    How would you use syscall on opensolaris if you were writing a simple program in C?