unzcrash.c File Reference

#include <stdio.h>
#include <assert.h>
#include "bzlib.h"

Include dependency graph for unzcrash.c:

Go to the source code of this file.

Defines

#define M_BLOCK   1000000
#define M_BLOCK_OUT   (M_BLOCK + 1000000)

Typedefs

typedef unsigned char uchar

Functions

void flip_bit (int bit)
int main (int argc, char **argv)

Variables

uchar inbuf [M_BLOCK]
uchar outbuf [M_BLOCK_OUT]
uchar zbuf [M_BLOCK+600+(M_BLOCK/100)]
int nIn
int nOut
int nZ
static char * bzerrorstrings []


Define Documentation

#define M_BLOCK   1000000
 

Definition at line 20 of file unzcrash.c.

Referenced by main().

#define M_BLOCK_OUT   (M_BLOCK + 1000000)
 

Definition at line 24 of file unzcrash.c.

Referenced by main().


Typedef Documentation

typedef unsigned char uchar
 

Definition at line 22 of file unzcrash.c.


Function Documentation

void flip_bit int  bit  ) 
 

Definition at line 49 of file unzcrash.c.

References uchar, and zbuf.

Referenced by main().

int main int  argc,
char **  argv
 

Definition at line 59 of file unzcrash.c.

References assert, BZ2_bzBuffToBuffCompress(), BZ2_bzBuffToBuffDecompress(), BZ_OK, bzerrorstrings, f, flip_bit(), fopen(), fprintf(), fread(), i, inbuf, M_BLOCK, M_BLOCK_OUT, nIn, nOut, nZ, outbuf, r, stderr, and zbuf.


Variable Documentation

char* bzerrorstrings[] [static]
 

Initial value:

 {
       "OK"
      ,"SEQUENCE_ERROR"
      ,"PARAM_ERROR"
      ,"MEM_ERROR"
      ,"DATA_ERROR"
      ,"DATA_ERROR_MAGIC"
      ,"IO_ERROR"
      ,"UNEXPECTED_EOF"
      ,"OUTBUFF_FULL"
      ,"???"   
      ,"???"   
      ,"???"   
      ,"???"   
      ,"???"   
      ,"???"   
}

Definition at line 31 of file unzcrash.c.

uchar inbuf[M_BLOCK]
 

Definition at line 25 of file unzcrash.c.

Referenced by gunpipe(), main(), and tmpstart().

int nIn
 

Definition at line 29 of file unzcrash.c.

Referenced by main().

int nOut
 

Definition at line 29 of file unzcrash.c.

Referenced by main().

int nZ
 

Definition at line 29 of file unzcrash.c.

Referenced by main().

uchar outbuf[M_BLOCK_OUT]
 

Definition at line 26 of file unzcrash.c.

Referenced by lunpipe(), main(), outbyte(), and Printf().

uchar zbuf[M_BLOCK+600+(M_BLOCK/100)]
 

Definition at line 27 of file unzcrash.c.

Referenced by flip_bit(), and main().


Generated on Fri Apr 14 23:00:11 2006 for minix by  doxygen 1.4.6