Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)syscall.2 6.1 (Berkeley) 05/09/85
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)syscall.2 6.1 (Berkeley) 05/09/85
SYSCALL 2 ""
C 4 NAME
syscall - indirect system call
SYNOPSIS
"syscall(number, arg, ...)" (VAX-11)
DESCRIPTION
Syscall 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.
DIAGNOSTICS
When the C-bit is set,
syscall returns -1 and sets the
external variable
errno (see
intro (2)). BUGS
There is no way to simulate system calls
such as
pipe (2), which return values in register r1.