Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
bzip2.c.old.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>

Data Structures

struct  zzzz
 

Macros

#define BZ_UNIX   1
 
#define BZ_LCCWIN32   0
 
#define ERROR_IF_EOF(i)
 
#define ERROR_IF_NOT_ZERO(i)
 
#define ERROR_IF_MINUS_ONE(i)
 
#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)
 
#define APPEND_FLAG(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)
 

Typedefs

typedef int IntNative
 
typedef struct zzzz Cell
 

Functions

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]
 
FILE * outputHandleJustInCase
 
Int32 workFactor
 
 UInt64
 
const CharzSuffix [BZ_N_SUFFIX_PAIRS] = { ".bz2", ".bz", ".tbz2", ".tbz" }
 
const CharunzSuffix [BZ_N_SUFFIX_PAIRS] = { "", "", ".tar", ".tar" }
 

Macro Definition Documentation

◆ APPEND_FILESPEC

#define APPEND_FILESPEC ( root,
name )
Value:
root=snocString((root), (name))
char name[NAME_LEN_MAX+1]
Name of the filter.
Definition string_conversion.c:450

◆ APPEND_FLAG

#define APPEND_FLAG ( root,
name )
Value:
root=snocString((root), (name))

◆ BZ_LCCWIN32

#define BZ_LCCWIN32   0

◆ BZ_N_SUFFIX_PAIRS

#define BZ_N_SUFFIX_PAIRS   4

◆ BZ_UNIX

#define BZ_UNIX   1

◆ ERROR_IF_EOF

#define ERROR_IF_EOF ( i)
Value:
{ if ((i) == EOF) ioError(); }
lzma_index ** i
Definition index.h:629

◆ ERROR_IF_MINUS_ONE

#define ERROR_IF_MINUS_ONE ( i)
Value:
{ if ((i) == (-1)) ioError(); }

◆ ERROR_IF_NOT_ZERO

#define ERROR_IF_NOT_ZERO ( i)
Value:
{ if ((i) != 0) ioError(); }

◆ False

#define False   ((Bool)0)

◆ FILE_NAME_LEN

#define FILE_NAME_LEN   1034

◆ ISFLAG

#define ISFLAG ( s)
Value:
(strcmp(aa->name, (s))==0)

◆ MY_LSTAT

#define MY_LSTAT   lstat

◆ MY_S_ISDIR

#define MY_S_ISDIR   S_ISDIR

◆ MY_S_ISREG

#define MY_S_ISREG   S_ISREG

◆ MY_STAT

#define MY_STAT   stat

◆ NORETURN

#define NORETURN

◆ OM_TEST

#define OM_TEST   3

◆ OM_UNZ

#define OM_UNZ   2

◆ OM_Z

#define OM_Z   1

◆ PATH_SEP

#define PATH_SEP   '/'

◆ SET_BINARY_MODE

#define SET_BINARY_MODE ( fd)

◆ SM_F2F

#define SM_F2F   3

◆ SM_F2O

#define SM_F2O   2

◆ SM_I2O

#define SM_I2O   1

◆ True

#define True   ((Bool)1)

Typedef Documentation

◆ Cell

typedef struct zzzz Cell

◆ IntNative

typedef int IntNative

Function Documentation

◆ main()

IntNative main ( IntNative argc,
Char * argv[] )

Variable Documentation

◆ blockSize100k

Int32 blockSize100k

◆ deleteOutputOnInterrupt

Bool deleteOutputOnInterrupt

◆ exitValue

Int32 exitValue

◆ forceOverwrite

Bool forceOverwrite

◆ inName

◆ keepInputFiles

Bool keepInputFiles

◆ longestFileName

Int32 longestFileName

◆ noisy

Bool noisy

◆ numFileNames

Int32 numFileNames

◆ numFilesProcessed

Int32 numFilesProcessed

◆ opMode

Int32 opMode

◆ outName

Char outName[FILE_NAME_LEN]

◆ outputHandleJustInCase

FILE* outputHandleJustInCase

◆ progName

Char* progName

◆ progNameReally

Char progNameReally[FILE_NAME_LEN]

◆ smallMode

Bool smallMode

◆ srcMode

Int32 srcMode

◆ testFailsExist

Bool testFailsExist

◆ tmpName

Char tmpName[FILE_NAME_LEN]

◆ UInt64

◆ unzFailsExist

Bool unzFailsExist

◆ unzSuffix

const Char* unzSuffix[BZ_N_SUFFIX_PAIRS] = { "", "", ".tar", ".tar" }

◆ verbosity

Int32 verbosity

◆ workFactor

Int32 workFactor

◆ zSuffix

const Char* zSuffix[BZ_N_SUFFIX_PAIRS] = { ".bz2", ".bz", ".tbz2", ".tbz" }