Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ syscall(2) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SYSCALL(2)                  BSD Programmer's Manual                 SYSCALL(2)

NAME
     syscall - indirect system call

SYNOPSIS
     #include <unistd.h>
     #include <sys/syscall.h>

     int
     syscall(int number, ...)

DESCRIPTION
     Syscall() performs the system call whose assembly language interface has
     the specified number with the specified arguments.  Symbolic constants
     for system calls can be found in the header file <syscall.h>.

RETURN VALUES
     The r0 value of the system call is returned.  When the C-bit is set,
     syscall() returns -1 and sets the external variable errno (see intro(2)).


BUGS
     There is no way to simulate system calls such as pipe(2).

HISTORY
     The syscall function call appeared in 4.0BSD.

4th Berkeley Distribution       March 26, 1993                               1





































Typewritten Software • bear@typewritten.org • Edmonds, WA 98026