Data Structures |
| struct | Cell |
Defines |
| #define | BZ_UNIX 1 |
| #define | BZ_LCCWIN32 0 |
| #define | ERROR_IF_EOF(i) { if ((i) == EOF) ioError(); } |
| #define | ERROR_IF_NOT_ZERO(i) { if ((i) != 0) ioError(); } |
| #define | ERROR_IF_MINUS_ONE(i) { if ((i) == (-1)) ioError(); } |
| #define | PATH_SEP '/' |
| #define | MY_LSTAT lstat |
| #define | MY_STAT stat |
| #define | MY_S_ISREG S_ISREG |
| #define | MY_S_ISDIR S_ISDIR |
| #define | APPEND_FILESPEC(root, name) root=snocString((root), (name)) |
| #define | APPEND_FLAG(root, name) root=snocString((root), (name)) |
| #define | SET_BINARY_MODE(fd) |
| #define | NORETURN |
| #define | True ((Bool)1) |
| #define | False ((Bool)0) |
| #define | SM_I2O 1 |
| #define | SM_F2O 2 |
| #define | SM_F2F 3 |
| #define | OM_Z 1 |
| #define | OM_UNZ 2 |
| #define | OM_TEST 3 |
| #define | FILE_NAME_LEN 1034 |
| #define | BZ_N_SUFFIX_PAIRS 4 |
| #define | ISFLAG(s) (strcmp(aa->name, (s))==0) |
Typedefs |
| typedef char | Char |
| typedef unsigned char | Bool |
| typedef unsigned char | UChar |
| typedef int | Int32 |
| typedef unsigned int | UInt32 |
| typedef short | Int16 |
| typedef unsigned short | UInt16 |
| typedef int | IntNative |
Functions |
| static void | panic (const Char *) |
| static void | uInt64_from_UInt32s (UInt64 *n, UInt32 lo32, UInt32 hi32) |
| static double | uInt64_to_double (UInt64 *n) |
| static Bool | uInt64_isZero (UInt64 *n) |
| static Int32 | uInt64_qrm10 (UInt64 *n) |
| static void | uInt64_toAscii (char *outbuf, UInt64 *n) |
| static Bool | myfeof (FILE *f) |
| static void | compressStream (FILE *stream, FILE *zStream) |
| static Bool | uncompressStream (FILE *zStream, FILE *stream) |
| static Bool | testStream (FILE *zStream) |
| static void | setExit (Int32 v) |
| static void | cadvise (void) |
| static void | showFileNames (void) |
| static void | cleanUpAndFail (Int32 ec) |
| static void | crcError (void) |
| static void | compressedStreamEOF (void) |
| static void | ioError (void) |
| static void | mySignalCatcher (IntNative n) |
| static void | mySIGSEGVorSIGBUScatcher (IntNative n) |
| static void | outOfMemory (void) |
| static void | configError (void) |
| static void | pad (Char *s) |
| static void | copyFileName (Char *to, Char *from) |
| static Bool | fileExists (Char *name) |
| static FILE * | fopen_output_safely (Char *name, const char *mode) |
| static Bool | notAStandardFile (Char *name) |
| static Int32 | countHardLinks (Char *name) |
| static void | saveInputFileMetaInfo (Char *srcName) |
| static void | applySavedTimeInfoToOutputFile (Char *dstName) |
| static void | applySavedFileAttrToOutputFile (IntNative fd) |
| static Bool | containsDubiousChars (Char *name) |
| static Bool | hasSuffix (Char *s, const Char *suffix) |
| static Bool | mapSuffix (Char *name, const Char *oldSuffix, const Char *newSuffix) |
| static void | compress (Char *name) |
| static void | uncompress (Char *name) |
| static void | testf (Char *name) |
| static void | license (void) |
| static void | usage (Char *fullProgName) |
| static void | redundant (Char *flag) |
| static void * | myMalloc (Int32 n) |
| static Cell * | mkCell (void) |
| static Cell * | snocString (Cell *root, Char *name) |
| static void | addFlagsFromEnvVar (Cell **argList, Char *varName) |
| IntNative | main (IntNative argc, Char *argv[]) |
Variables |
| Int32 | verbosity |
| Bool | keepInputFiles |
| Bool | smallMode |
| Bool | deleteOutputOnInterrupt |
| Bool | forceOverwrite |
| Bool | testFailsExist |
| Bool | unzFailsExist |
| Bool | noisy |
| Int32 | numFileNames |
| Int32 | numFilesProcessed |
| Int32 | blockSize100k |
| Int32 | exitValue |
| Int32 | opMode |
| Int32 | srcMode |
| Int32 | longestFileName |
| Char | inName [FILE_NAME_LEN] |
| Char | outName [FILE_NAME_LEN] |
| Char | tmpName [FILE_NAME_LEN] |
| Char * | progName |
| Char | progNameReally [FILE_NAME_LEN] |
| FILE * | outputHandleJustInCase |
| Int32 | workFactor |
| | UInt64 |
| static struct MY_STAT | fileMetaInfo |
| const Char * | zSuffix [BZ_N_SUFFIX_PAIRS] = { ".bz2", ".bz", ".tbz2", ".tbz" } |
| const Char * | unzSuffix [BZ_N_SUFFIX_PAIRS] = { "", "", ".tar", ".tar" } |