![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include <windows.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <errno.h>#include <fcntl.h>#include <ctype.h>#include <math.h>#include <wctype.h>#include <wchar.h>#include <stdarg.h>#include <stddef.h>#include <setjmp.h>#include <locale.h>#include <signal.h>#include <limits.h>#include <float.h>#include <iso646.h>#include <assert.h>#include <stdbool.h>#include "stdio_v2.h"#include "stdio_v3.h"#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include "patchlevel.h"#include "decompress_for_all_z.c"Data Structures | |
| struct | utimbuf |
| union | bytes |
Macros | |
| #define | HAS_UNCOMPRESS_Z /*if defined the decompress function is also available */ |
| #define | THE_COMPRESSOR_FUNCION_NAME_Z compress_thread_1 /* the name of the compressor function */ |
| #define | THE_DECOMPRESSOR_FUNCION_NAME_Z decompress_thread_1 |
| #define | ARGS(a) |
| #define | SIG_TYPE void (*)() |
| #define | lstat stat |
| #define | min(a, b) |
| #define | IBUFSIZ BUFSIZ /* Defailt input buffer size */ |
| #define | OBUFSIZ BUFSIZ /* Default output buffer size */ |
| #define | MAGIC_1 (char_type)'\037' /* First byte of compressed file */ |
| #define | MAGIC_2 (char_type)'\235' /* Second byte of compressed file */ |
| #define | BIT_MASK 0x1f /* Mask for 'number of compresssion bits' */ |
| #define | BLOCK_MODE 0x80 /* Block compresssion if table is full and */ |
| #define | FIRST 257 /* first free entry */ |
| #define | CLEAR 256 /* table clear output code */ |
| #define | INIT_BITS 9 /* initial number of bits/code */ |
| #define | SACREDMEM 0 |
| #define | USERMEM 450000 /* default user memory */ |
| #define | BYTEORDER 0000 |
| #define | NOALLIGN 0 |
| #define | O_BINARY 0 /* System has no binary mode */ |
| #define | BITS 16 |
| #define | HSIZE 69001 /* 95% occupancy */ |
| #define | CHECK_GAP 10000 |
| #define | ARGVAL() |
| #define | MAXCODE(n) |
| #define | REGISTERS 2 |
| #define | REG1 |
| #define | REG2 |
| #define | REG3 |
| #define | REG4 |
| #define | REG5 |
| #define | REG6 |
| #define | REG7 |
| #define | REG8 |
| #define | REG9 |
| #define | REG10 |
| #define | REG11 |
| #define | REG12 |
| #define | REG13 |
| #define | REG14 |
| #define | REG15 |
| #define | REG16 |
| #define | REG1 register |
| #define | REG2 register |
| #define | output(b, o, c, n) |
| #define | input(b, o, c, n, m) |
| #define | htabof(i) |
| #define | codetabof(i) |
| #define | tab_prefixof(i) |
| #define | tab_suffixof(i) |
| #define | de_stack ((char_type *)&(amanda->htab[HSIZE - 1])) |
| #define | clear_htab() |
| #define | clear_tab_prefixof() |
| #define | fc fcode.code |
Functions | |
| int THE_COMPRESSOR_FUNCION_NAME_Z | ARGS ((FILE *, FILE *, my_thread_struct_z *)) |
| void | Usage (int status) |
| void | init_vars_ric (my_thread_struct_z *amanda) |
| int | THE_COMPRESSOR_FUNCION_NAME_Z (FILE *fdin, FILE *fdout, my_thread_struct_z *amanda) |
| void | read_error () |
| void | write_error () |
| void | abort_compress () |
| void | prratio (FILE *stream, long int num, long int den) |
| void | about () |
| #define ARGS | ( | a | ) |
| #define ARGVAL | ( | ) |
| #define BIT_MASK 0x1f /* Mask for 'number of compresssion bits' */ |
| #define BITS 16 |
| #define BYTEORDER 0000 |
| #define CHECK_GAP 10000 |
| #define clear_htab | ( | ) |
| #define clear_tab_prefixof | ( | ) |
| #define fc fcode.code |
| #define FIRST 257 /* first free entry */ |
| #define HAS_UNCOMPRESS_Z /*if defined the decompress function is also available */ |
| #define HSIZE 69001 /* 95% occupancy */ |
| #define INIT_BITS 9 /* initial number of bits/code */ |
| #define lstat stat |
| #define MAGIC_1 (char_type)'\037' /* First byte of compressed file */ |
| #define MAGIC_2 (char_type)'\235' /* Second byte of compressed file */ |
| #define MAXCODE | ( | n | ) |
| #define NOALLIGN 0 |
| #define O_BINARY 0 /* System has no binary mode */ |
| #define REG1 |
| #define REG1 register |
| #define REG10 |
| #define REG11 |
| #define REG12 |
| #define REG13 |
| #define REG14 |
| #define REG15 |
| #define REG16 |
| #define REG2 |
| #define REG2 register |
| #define REG3 |
| #define REG4 |
| #define REG5 |
| #define REG6 |
| #define REG7 |
| #define REG8 |
| #define REG9 |
| #define REGISTERS 2 |
| #define SACREDMEM 0 |
| #define SIG_TYPE void (*)() |
| #define tab_prefixof | ( | i | ) |
| #define THE_COMPRESSOR_FUNCION_NAME_Z compress_thread_1 /* the name of the compressor function */ |
| #define THE_DECOMPRESSOR_FUNCION_NAME_Z decompress_thread_1 |
| #define USERMEM 450000 /* default user memory */ |
| void abort_compress | ( | ) |
| void about | ( | ) |
| int THE_DECOMPRESSOR_FUNCION_NAME_Z ARGS | ( | (FILE *, FILE *, my_thread_struct_z *) | ) |
| void init_vars_ric | ( | my_thread_struct_z * | amanda | ) |
| void read_error | ( | ) |
| int THE_COMPRESSOR_FUNCION_NAME_Z | ( | FILE * | fdin, |
| FILE * | fdout, | ||
| my_thread_struct_z * | amanda ) |
| void Usage | ( | int | status | ) |
| void write_error | ( | ) |