Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ syscall(2) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought



SYSCALL(2)          RISC/os Reference Manual           SYSCALL(2)



NAME
     syscall - indirect system call

SYNOPSIS
   Headers
     For -systype svr3:

     #include <sys.s>

     For -systype svr4:

     #include <sys/syscall.h>

     For -systype bsd43:

     #include <syscall.h>

   Declarations
     syscall(number, arg, ...)

DESCRIPTION
     syscall performs the system call whose assembly language
     interface has the specified number, register arguments r0
     and r1 and further arguments arg.  Symbolic constants for
     system calls can be found in the header file <sys.s> for
     -systype svr3 , <sys/syscall.h> for -systype svr4 , and
     <syscall.h> . for -systype bsd43.

     The r0 value of the system call is returned.

DIAGNOSTICS
     When the C-bit is set, syscall returns -1 and sets the
     external variable errno (see intro(2)).

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


















                        Printed 11/19/92                   Page 1



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