*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> perror (3c)              


perror(3C)							    perror(3C)

NAME    [Toc]    [Back]

     perror, errno - print system error	messages

SYNOPSIS    [Toc]    [Back]

     #include <stdio.h>

     void perror (const	char *s);

     #include <errno.h>

     extern int	errno;

DESCRIPTION    [Toc]    [Back]

     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.

SEE ALSO    [Toc]    [Back]

     intro(2), fmtmsg(3C), strerror(3C), oserror(3C).

NOTE    [Toc]    [Back]

     Code using	sys_errlist, and _sys_errlist directly will not	be able	to
     display any errno greater than 152.

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
ERR_print_errors OpenBSD print error messages
ERR_print_errors_fp Tru64 Print error messages
ERR_print_errors Tru64 Print error messages
ERR_print_errors_fp OpenBSD print error messages
ERR_print_errors NetBSD print error messages
sys_errlist FreeBSD system error messages
perror FreeBSD system error messages
strerror FreeBSD system error messages
perror IRIX get system error messages
sys_nerr FreeBSD system error messages
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service