Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ syscall(2) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

syscall(2)  —  4 BSD

NAME

syscall − indirect system call

SYNOPSIS

int syscall (number, arg, ...)

DESCRIPTION

syscall performs the system call whose assembly language interface has the specified number, and further arguments arg.

The r0 value of the system call is returned. 

RETURN VALUE

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), which return values in register r1. 

CX/UX Programmer’s Reference Manual

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