cr_uncompress(3)cr_uncompress(3)NAMEcr_uncompress - uncompress a file in a crash dump
The ensures that a file, part of a crash dump described by crash_cb, is
uncompressed and matches its expected size and checksum (as computed by
cksum(1)). This call is most often used to ensure the integrity of
module files that are a part of the crash dump; see cr_info(3).
pathname is the name of the file to uncompress. Supported compression
methods include gzip(1), which appends a to the filename, and com‐
press(1), which appends Respectively, size and checksum are the
expected size and checksum of the uncompressed file. Either validity
check can be disabled by specifying zero for the corresponding parame‐
Returns zero for success. Other possible return values are described
The following call to cr_uncompress(3) ensures that the kernel file is
uncompressed and validated.
was developed by HP.
SEE ALSOgunzip(1), uncompress(1), cr_info(3), cr_open(3), libcrash(5).