![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#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] |
Char * | progName |
Char | progNameReally [FILE_NAME_LEN] |
FILE * | outputHandleJustInCase |
Int32 | workFactor |
UInt64 | |
const Char * | zSuffix [BZ_N_SUFFIX_PAIRS] = { ".bz2", ".bz", ".tbz2", ".tbz" } |
const Char * | unzSuffix [BZ_N_SUFFIX_PAIRS] = { "", "", ".tar", ".tar" } |
#define APPEND_FILESPEC | ( | root, | |
name ) |
#define BZ_LCCWIN32 0 |
#define BZ_N_SUFFIX_PAIRS 4 |
#define BZ_UNIX 1 |
#define ERROR_IF_EOF | ( | i | ) |
#define False ((Bool)0) |
#define FILE_NAME_LEN 1034 |
#define ISFLAG | ( | s | ) |
#define MY_LSTAT lstat |
#define MY_S_ISDIR S_ISDIR |
#define MY_S_ISREG S_ISREG |
#define MY_STAT stat |
#define NORETURN |
#define OM_TEST 3 |
#define OM_UNZ 2 |
#define OM_Z 1 |
#define PATH_SEP '/' |
#define SET_BINARY_MODE | ( | fd | ) |
#define SM_F2F 3 |
#define SM_F2O 2 |
#define SM_I2O 1 |
#define True ((Bool)1) |
Int32 blockSize100k |
Bool deleteOutputOnInterrupt |
Int32 exitValue |
Bool forceOverwrite |
Char inName[FILE_NAME_LEN] |
Bool keepInputFiles |
Int32 longestFileName |
Bool noisy |
Int32 numFileNames |
Int32 numFilesProcessed |
Int32 opMode |
Char outName[FILE_NAME_LEN] |
FILE* outputHandleJustInCase |
Char* progName |
Char progNameReally[FILE_NAME_LEN] |
Bool smallMode |
Int32 srcMode |
Bool testFailsExist |
Char tmpName[FILE_NAME_LEN] |
Bool unzFailsExist |
const Char* unzSuffix[BZ_N_SUFFIX_PAIRS] = { "", "", ".tar", ".tar" } |
Int32 verbosity |
Int32 workFactor |
const Char* zSuffix[BZ_N_SUFFIX_PAIRS] = { ".bz2", ".bz", ".tbz2", ".tbz" } |