1SYSCALL(2) BSD System Calls Manual SYSCALL(2)
2
4 syscall — indirect system call
5
7 #include <sys/syscall.h>
8 #include <unistd.h>
9
10 int
11 syscall(int number, ...);
12
14 Syscall() performs the system call whose assembly language interface has
15 the specified number with the specified arguments. Symbolic constants
16 for system calls can be found in the header file ⟨sys/syscall.h⟩.
17
19 The return value is defined by the system call being invoked. In gen‐
20 eral, a 0 return value indicates success. A -1 return value indicates an
21 error, and an error code is stored in errno.
22
24 The syscall() function call appeared in 4.0BSD.
25
264BSD June 16, 1993 4BSD