Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- PERL 4.0 Reference Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     syscall(LIST)

     syscall LIST

             Calls the system call specified as the first element
             of the list, passing the remaining elements as argu-
             ments to the system call.   If  unimplemented,  pro-
             duces  a fatal error.  The arguments are interpreted
             as follows: if a  given  argument  is  numeric,  the
             argument  is  passed as an int.  If not, the pointer
             to the string value is passed.  You are  responsible
             to make sure a string is pre-extended long enough to
             receive any result that  might  be  written  into  a
             string.   If your integer arguments are not literals
             and have never been interpreted in  a  numeric  con-
             text, you may need to add 0 to them to force them to
             look like numbers.

                  require 'syscall.ph';         # may need to run h2ph
                  syscall(&SYS_write, fileno(STDOUT), "hi there\n", 9);

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson