|
First argument is the number of the system call
System call numbers are defined as constants in syscall.ph
Generated by running h2ph /usr/include/syscall.h
For the remainder of the arguments:
If numeric, passed as an int
If string, passed as a pointer
String literals cannot be used
Perl must assume any pointer may be written through
Strings must be pre-extended long enough to receive any data that may be written to it
Otherwise, buffer overflow, and likely segfault