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