COHERENT manpages

This page displays the COHERENT manpage for perror() [System call error messages].

List of available manpages
Index


perror() -- General Function (libc)

System call error messages
#include <errno.h>
perror(string)
char *string; extern int sys_nerr; extern char *sys_errlist[];

perror() prints an error message on the standard error device.  The message
consists of  the argument  string, followed by  a brief description  of the
last system  call that  failed.  The  external variable errno  contains the
last  error number.   Normally, string  is the perror  of the  command that
failed or a file perror.

The external array sys_errlist gives the list of messages used by perror().
The external sys_nerr gives the number of messages in the list.

See Also

errno,
errno.h,
libc
ANSI Standard, §7.9.10.4
POSIX Standard, §8.1