Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ perror(3C) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



PERROR(3C)      DOMAIN/IX Reference Manual (SYS5)      PERROR(3C)



NAME
     perror, errno, syserrlist, sysnerr - system error messages

USAGE
     void perror (s)
     char *s;

     extern int errno;

     extern char *syserrlist[ ];

     extern int sysnerr;

DESCRIPTION
     Perror writes a message on the standard error output; the
     message describes the last error encountered during a call
     to a system or library function.  The argument string s is
     printed first, then a colon and a blank, then the message
     and a newline.  The argument string should include the name
     of the program that incurred the error.  The error number is
     taken from the external variable errno, which is set when
     errors occur.

     To simplify different formatting of messages, the array of
     message strings syserrlist is provided; errno can be used
     as an index in this table to get the message string without
     the new-line.  Sysnerr is the largest message number pro-
     vided for in the table; it should be checked, because new
     error codes may be added to the system before they are added
     to the table.

























Printed 5/10/85                                          PERROR-1



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