Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cr_perror(3) [hpux man page]

cr_perror(3)						     Library Functions Manual						      cr_perror(3)

NAME
cr_perror - print a libcrash error or warning message SYNOPSIS
DESCRIPTION
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, prints nothing. Therefore, it can be called after each libcrash call without harm. (If called after with the 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 pass the crash dump descriptor returned by that call, even if it is NULL. If error is indicating that the system variable contains the error information, will refer to to print the appropriate message. In these cases it is critical that be called immediately after the offending libcrash call returns. AUTHOR
was developed by HP. SEE ALSO
cr_open(3), cr_verify(3), libcrash(5). cr_perror(3)

Check Out this Related Man Page

cr_open(3)						     Library Functions Manual							cr_open(3)

NAME
cr_open() - open crash dump for reading SYNOPSIS
DESCRIPTION
The library call opens a crash dump and passes back a crash dump descriptor. The path argument points to a path name naming a crash dump directory or file, and must not exceed bytes in length. The CRASH * to which crash_cb points is set to a crash dump descriptor, which can then be passed to the other functions to access the crash dump. flags is a bitmask of zero or more of the following flag values, which affect the operation of future calls to libcrash routines for this crash dump, except for cr_verify(3), which has its own flags parameter. The library will not attempt to verify checksums of files in the crash dump if this flag is set. The library will write messages to stderr during time-consuming operations (decompressions and checksums) if this flag is set. RETURN VALUE
Returns zero for success. Other possible return values are described in libcrash(5). EXAMPLES
The following call to opens crash dump contained in the directory and returns the crash dump descriptor For an example of reading the crash dump see the cr_read(3) manual entry. AUTHOR
was developed by HP. SEE ALSO
cr_close(3), cr_perror(3), libcrash(5). cr_open(3)
Man Page