|
|
HP-UX Reference > Ccr_open(3)HP-UX 11i Version 2: December 2007 Update |
|
NAMEcr_open() — open crash dump for reading DESCRIPTIONThe cr_open() 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 PATH_MAX 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 cr_*() 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.
EXAMPLESThe following call to cr_open() opens crash dump contained in the directory /var/adm/crash/core.0 and returns the crash dump descriptor crash_cb. For an example of reading the crash dump /var/adm/crash/core.0, see the cr_read(3) manual entry. #include <libcrash.h> CRASH *crash_cb; int ret; ret = cr_open ("/var/adm/crash/core.0", &crash_cb, CR_DELAYMSGS); |
|