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

  man pages->HP-UX 11i man pages -> cr_perror (3)              
Title
Content
Arch
Section
 

Contents


 cr_perror(3)                                                   cr_perror(3)




 NAME    [Toc]    [Back]
      cr_perror - print a libcrash error or warning message

 SYNOPSIS    [Toc]    [Back]
      #include <libcrash.h>

      void cr_perror(CRASH *crash_cb, int error);

 DESCRIPTION    [Toc]    [Back]
      cr_perror() prints to standard error an error or warning message
      corresponding to error, which should be the return value from an
      immediately previous call to one of the libcrash calls.  The message
      describes the problem that occurred, explains its implications when
      appropriate, and gives corrective action where appropriate.

      If called with a zero error value, indicating success, cr_perror()
      prints nothing.  Therefore, it can be called after each libcrash call
      without harm.  (If called after cr_verify() with the CR_ERRORMSGS flag
      set, repeated error messages may result.)

      crash_cb should be the same crash dump descriptor as was passed to the
      call that returned error.  If the call was cr_open(), pass the crash
      dump descriptor returned by that call, even if it is NULL.

      If error is CRERR_ERRNO, indicating that the system variable errno
      contains the error information, cr_perror() will refer to errno to
      print the appropriate message.  In these cases it is critical that
      cr_perror() be called immediately after the offending libcrash call
      returns.

 AUTHOR    [Toc]    [Back]
      cr_perror () was developed by HP.

 SEE ALSO    [Toc]    [Back]
      cr_open(3), cr_verify(3), libcrash(5).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
perror Linux print a system error message
gai_strerror Tru64 Print an error message string based on a return code from the getaddrinfo or getnameinfo routine
krb5_vwarnx NetBSD Heimdal warning and error functions
krb5_warn FreeBSD Heimdal warning and error functions
krb5_err NetBSD Heimdal warning and error functions
krb5_errx NetBSD Heimdal warning and error functions
krb5_verrx NetBSD Heimdal warning and error functions
krb5_set_warn_dest NetBSD Heimdal warning and error functions
krb5_errx FreeBSD Heimdal warning and error functions
krb5_warnx FreeBSD Heimdal warning and error functions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service