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

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

Contents


 cr_uncompress(3)                                           cr_uncompress(3)




 NAME    [Toc]    [Back]
      cr_uncompress - uncompress a file in a crash dump

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

      int cr_uncompress(CRASH *crash_cb, const char *pathname,
                        uint64_t size, uint64_t checksum);

 DESCRIPTION    [Toc]    [Back]
      The cr_uncompress() 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 .gz to the filename, and
      compress(1), which appends .Z.  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 parameter.

 RETURN VALUE    [Toc]    [Back]
      Returns zero for success.  Other possible return values are described
      in libcrash(5).

 EXAMPLE    [Toc]    [Back]
      The following call to cr_uncompress(3) ensures that the kernel file
      vmunix is uncompressed and validated.

           #include <libcrash.h>

           result = cr_uncompress (crash, "vmunix", vmunix_size, vmunix_cksum);

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

 SEE ALSO    [Toc]    [Back]
      gunzip(1), uncompress(1), cr_info(3), cr_open(3), libcrash(5).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
expand_dump Tru64 Produces a non-compressed kernel crash dump file
cr_read HP-UX read from crash dump
kvm_dump_wrtheader OpenBSD crash dump support functions
kvm_dump_wrtheader NetBSD crash-dump support functions
kvm_dump_mkheader NetBSD crash-dump support functions
kvm_dump NetBSD crash-dump support functions
libcrash HP-UX crash dump access library
kvm_dump OpenBSD crash dump support functions
kvm_dump_inval OpenBSD crash dump support functions
cr_close HP-UX close a crash dump descriptor
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service