Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Inferno 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sys-intro(2)

sys-print(2)

SYS-WERRSTR(2)

NAME

werrstr − set the system error string

SYNOPSIS

include "sys.m"; sys := load Sys Sys->PATH;
 
werrstr(s: string): int;

DESCRIPTION

When a system call fails, it returns an error value (often -1) and records a string describing the error in a per-process location.  The verb r in sys-print(2) outputs the error string. Werrstr sets the process’s error string to s, to allow a function in a module to mimic the error reporting interface of a system call.

SEE ALSO

sys-intro(2), sys-print(2)

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