BSD 4_2 development
[unix-history] / usr / man / man2 / syscall.2
CommitLineData
c30b2987
C
1.TH SYSCALL 2 "12 February 1983"
2.UC 4
3.SH NAME
4syscall \- indirect system call
5.SH SYNOPSIS
6.nf
7.BR "syscall(number, arg, ...)" \ \ (VAX-11)
8.fi
9.SH DESCRIPTION
10.I Syscall
11performs the system call whose assembly language
12interface has the specified
13.I number,
14register arguments
15.I r0
16and
17.I r1
18and further arguments
19.IR arg .
20.PP
21The r0 value of the system call is returned.
22.SH DIAGNOSTICS
23When the C-bit is set,
24.I syscall
25returns \-1 and sets the
26external variable
27.I errno
28(see
29.IR intro (2)).
30.SH BUGS
31There is no way to simulate system calls
32such as
33.IR pipe (2),
34which return values in register r1.