ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

bzip2.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <math.h>
#include <errno.h>
#include <ctype.h>
#include "bzlib.h"
#include <fcntl.h>
#include <sys/types.h>
#include <utime.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/times.h>

Go to the source code of this file.

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 FILEfopen_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 voidmyMalloc (Int32 n)
static CellmkCell (void)
static CellsnocString (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]
CharprogName
Char progNameReally [FILE_NAME_LEN]
FILEoutputHandleJustInCase
Int32 workFactor
 UInt64
static struct MY_STAT fileMetaInfo
const CharzSuffix [BZ_N_SUFFIX_PAIRS] = { ".bz2", ".bz", ".tbz2", ".tbz" }
const CharunzSuffix [BZ_N_SUFFIX_PAIRS] = { "", "", ".tar", ".tar" }

Generated on Fri May 25 2012 05:56:50 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.