1SYSCALL(2)                    System Calls Manual                   SYSCALL(2)
2
3
4

NAME

6       syscall - indirect system call
7

SYNOPSIS

9       #include <syscall.h>
10
11       syscall(number, arg, ...)  (VAX-11)
12

DESCRIPTION

14       Syscall  performs the system call whose assembly language interface has
15       the specified number, register arguments r0 and r1  and  further  argu‐
16       ments  arg.   Symbolic  constants  for system calls can be found in the
17       header file <syscall.h>.
18
19       The r0 value of the system call is returned.
20

DIAGNOSTICS

22       When the C-bit is set, syscall returns -1 and sets the  external  vari‐
23       able errno (see intro(2)).
24

BUGS

26       There  is no way to simulate system calls such as pipe(2), which return
27       values in register r1.
28
29
30
314th Berkeley Distribution       April 16, 1986                      SYSCALL(2)
Impressum