Add copyright
[unix-history] / usr / src / lib / libc / sys / syscall.2
CommitLineData
695ad0b4
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
f9effee3 5.\" @(#)syscall.2 6.1 (Berkeley) %G%
695ad0b4 6.\"
f9effee3 7.TH SYSCALL 2 ""
695ad0b4
KM
8.UC 4
9.SH NAME
10syscall \- indirect system call
11.SH SYNOPSIS
12.nf
695ad0b4
KM
13.BR "syscall(number, arg, ...)" \ \ (VAX-11)
14.fi
15.SH DESCRIPTION
16.I Syscall
17performs the system call whose assembly language
18interface has the specified
19.I number,
20register arguments
21.I r0
22and
23.I r1
92a92bd0 24and further arguments
695ad0b4
KM
25.IR arg .
26.PP
27The r0 value of the system call is returned.
28.SH DIAGNOSTICS
29When the C-bit is set,
30.I syscall
31returns \-1 and sets the
32external variable
33.I errno
34(see
35.IR intro (2)).
36.SH BUGS
37There is no way to simulate system calls
38such as
39.IR pipe (2),
40which return values in register r1.