cr_open(3)cr_open(3)NAMEcr_open() - open crash dump for reading
The library call opens a crash dump and passes back a crash dump
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
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 opera‐
(decompressions and checksums) if this flag is
Returns zero for success. Other possible return values are described
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.
was developed by HP.
SEE ALSOcr_close(3), cr_perror(3), libcrash(5).