Query: syscall
OS: osf1
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
syscall(2) System Calls Manual syscall(2)NAMEsyscall - indirect system callSYNOPSIS#include <sys/syscall.h> #include <unistd.h> syscall (number, arg, ...)DESCRIPTIONThe syscall system call performs the system call whose assembly language interface has the specified number, register arguments r0 and r1, and further arguments arg. The r0 value of the system call is returned.NOTESThis interface is not recommended. An alternative interface is documented in chown(2).RESTRICTIONSThere is no way to simulate system calls such as pipe, which return values in register r1.DIAGNOSTICSWhen the C-bit is set, syscall returns -1 and sets the external variable errno.SEE ALSOFunctions: errno(2), pipe(2) syscall(2)