Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ perror(3C) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

reentrant(3)

fmtmsg(3C)

strerror(3C)



perror(3C)                        SDK R4.11                       perror(3C)


NAME
       perror - print system error messages

SYNOPSIS
       #include <stdio.h>

       void perror (const char *s);


DESCRIPTION
       perror produces a message on the standard error output (file
       descriptor 2), describing 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.
       (However, if s is a null pointer or points to a null string, the
       colon is not printed.)  To be of most use, 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 but not cleared when non-erroneous calls are made.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |perror   |     Y         Y        N    |
                     +---------+-----------------------------+

FILES
       /usr/lib/locale/locale/LCMESSAGES/uxsyserr -- message catalog.

SEE ALSO
       intro(2), reentrant(3), fmtmsg(3C), strerror(3C).


Licensed material--property of copyright holder(s)

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