Manual Page Result
0
Command: syscall | Section: 2 | Source: Digital UNIX | File: syscall.2.gz
syscall(2) System Calls Manual syscall(2)
NAME
syscall - indirect system call
SYNOPSIS
#include <sys/syscall.h>
syscall(number, arg, ...)
DESCRIPTION
The syscall system call performs the system call whose assembly lan-
guage interface has the specified number, register arguments r0 and r1,
and further arguments arg.
The r0 value of the system call is returned.
RESTRICTIONS
There is no way to simulate system calls such as pipe, which return
values in register r1.
NOTES
This interface is not recommended. An alternative interface is docu-
mented in chown(2).
DIAGNOSTICS
When the C-bit is set, syscall returns -1 and sets the external vari-
able errno.
RELATED INFORMATION
Functions: errno(2), pipe(2) delim off
syscall(2)