Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

errno(2)

pipe(2)

syscall(2)  —  System Calls

NAME

syscall − indirect system call

SYNOPSIS

syscall(number, arg, ...)

DESCRIPTION

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

The r0 value of the system call is returned. 

RESTRICTIONS

There is no way to simulate system calls such as pipe, which return values in register r1. 

DIAGNOSTICS

When the C-bit is set, syscall returns −1 and sets the external variable errno. 

RELATED INFORMATION

Functions: errno(2), pipe(2)

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