Manual pages › BSD C library (3B)
syscall(3B)
indirect system call
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
NAME
syscall - indirect system call
SYNOPSIS
cc [ flag... ] file ... -lucb #include <sys/syscall.h> int syscall(number, arg, ...)
DESCRIPTION
syscall performs the system call whose assembly language interface has the specified number, and arguments arg .... Symbolic constants for system calls can be found in the header file /usr/include/sys/syscall.h.
RETURN VALUE
When the C-bit is set, syscall returns -1 and sets the external variable errno (see intro(2)).
SEE ALSO
intro(2), pipe(2) in the Programmer's Reference Manual.