亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? minigzip.c

?? 一個本地database引擎,支持中文T_Sql查詢,兼容DELPHI標準數據庫控件
?? C
字號:
/* minigzip.c -- simulate gzip using the zlib compression library
 * Copyright (C) 1995-2005 Jean-loup Gailly.
 * For conditions of distribution and use, see copyright notice in zlib.h
 */

/*
 * minigzip is a minimal implementation of the gzip utility. This is
 * only an example of using zlib and isn't meant to replace the
 * full-featured gzip. No attempt is made to deal with file systems
 * limiting names to 14 or 8+3 characters, etc... Error checking is
 * very limited. So use minigzip only for testing; use gzip for the
 * real thing. On MSDOS, use only on file names without extension
 * or in pipe mode.
 */

/* @(#) $Id$ */

#include <stdio.h>
#include "zlib.h"

#ifdef STDC
#  include <string.h>
#  include <stdlib.h>
#endif

#ifdef USE_MMAP
#  include <sys/types.h>
#  include <sys/mman.h>
#  include <sys/stat.h>
#endif

#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
#  include <fcntl.h>
#  include <io.h>
#  define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
#else
#  define SET_BINARY_MODE(file)
#endif

#ifdef VMS
#  define unlink delete
#  define GZ_SUFFIX "-gz"
#endif
#ifdef RISCOS
#  define unlink remove
#  define GZ_SUFFIX "-gz"
#  define fileno(file) file->__file
#endif
#if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
#  include <unix.h> /* for fileno */
#endif

#ifndef WIN32 /* unlink already in stdio.h for WIN32 */
  extern int unlink OF((const char *));
#endif

#ifndef GZ_SUFFIX
#  define GZ_SUFFIX ".gz"
#endif
#define SUFFIX_LEN (sizeof(GZ_SUFFIX)-1)

#define BUFLEN      16384
#define MAX_NAME_LEN 1024

#ifdef MAXSEG_64K
#  define local static
   /* Needed for systems with limitation on stack size. */
#else
#  define local
#endif

char *prog;

void error            OF((const char *msg));
void gz_compress      OF((FILE   *in, gzFile out));
#ifdef USE_MMAP
int  gz_compress_mmap OF((FILE   *in, gzFile out));
#endif
void gz_uncompress    OF((gzFile in, FILE   *out));
void file_compress    OF((char  *file, char *mode));
void file_uncompress  OF((char  *file));
int  main             OF((int argc, char *argv[]));

/* ===========================================================================
 * Display error message and exit
 */
void error(msg)
    const char *msg;
{
    fprintf(stderr, "%s: %s\n", prog, msg);
    exit(1);
}

/* ===========================================================================
 * Compress input to output then close both files.
 */

void gz_compress(in, out)
    FILE   *in;
    gzFile out;
{
    local char buf[BUFLEN];
    int len;
    int err;

#ifdef USE_MMAP
    /* Try first compressing with mmap. If mmap fails (minigzip used in a
     * pipe), use the normal fread loop.
     */
    if (gz_compress_mmap(in, out) == Z_OK) return;
#endif
    for (;;) {
        len = (int)fread(buf, 1, sizeof(buf), in);
        if (ferror(in)) {
            perror("fread");
            exit(1);
        }
        if (len == 0) break;

        if (gzwrite(out, buf, (unsigned)len) != len) error(gzerror(out, &err));
    }
    fclose(in);
    if (gzclose(out) != Z_OK) error("failed gzclose");
}

#ifdef USE_MMAP /* MMAP version, Miguel Albrecht <malbrech@eso.org> */

/* Try compressing the input file at once using mmap. Return Z_OK if
 * if success, Z_ERRNO otherwise.
 */
int gz_compress_mmap(in, out)
    FILE   *in;
    gzFile out;
{
    int len;
    int err;
    int ifd = fileno(in);
    caddr_t buf;    /* mmap'ed buffer for the entire input file */
    off_t buf_len;  /* length of the input file */
    struct stat sb;

    /* Determine the size of the file, needed for mmap: */
    if (fstat(ifd, &sb) < 0) return Z_ERRNO;
    buf_len = sb.st_size;
    if (buf_len <= 0) return Z_ERRNO;

    /* Now do the actual mmap: */
    buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
    if (buf == (caddr_t)(-1)) return Z_ERRNO;

    /* Compress the whole file at once: */
    len = gzwrite(out, (char *)buf, (unsigned)buf_len);

    if (len != (int)buf_len) error(gzerror(out, &err));

    munmap(buf, buf_len);
    fclose(in);
    if (gzclose(out) != Z_OK) error("failed gzclose");
    return Z_OK;
}
#endif /* USE_MMAP */

/* ===========================================================================
 * Uncompress input to output then close both files.
 */
void gz_uncompress(in, out)
    gzFile in;
    FILE   *out;
{
    local char buf[BUFLEN];
    int len;
    int err;

    for (;;) {
        len = gzread(in, buf, sizeof(buf));
        if (len < 0) error (gzerror(in, &err));
        if (len == 0) break;

        if ((int)fwrite(buf, 1, (unsigned)len, out) != len) {
            error("failed fwrite");
        }
    }
    if (fclose(out)) error("failed fclose");

    if (gzclose(in) != Z_OK) error("failed gzclose");
}


/* ===========================================================================
 * Compress the given file: create a corresponding .gz file and remove the
 * original.
 */
void file_compress(file, mode)
    char  *file;
    char  *mode;
{
    local char outfile[MAX_NAME_LEN];
    FILE  *in;
    gzFile out;

    strcpy(outfile, file);
    strcat(outfile, GZ_SUFFIX);

    in = fopen(file, "rb");
    if (in == NULL) {
        perror(file);
        exit(1);
    }
    out = gzopen(outfile, mode);
    if (out == NULL) {
        fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile);
        exit(1);
    }
    gz_compress(in, out);

    unlink(file);
}


/* ===========================================================================
 * Uncompress the given file and remove the original.
 */
void file_uncompress(file)
    char  *file;
{
    local char buf[MAX_NAME_LEN];
    char *infile, *outfile;
    FILE  *out;
    gzFile in;
    uInt len = (uInt)strlen(file);

    strcpy(buf, file);

    if (len > SUFFIX_LEN && strcmp(file+len-SUFFIX_LEN, GZ_SUFFIX) == 0) {
        infile = file;
        outfile = buf;
        outfile[len-3] = '\0';
    } else {
        outfile = file;
        infile = buf;
        strcat(infile, GZ_SUFFIX);
    }
    in = gzopen(infile, "rb");
    if (in == NULL) {
        fprintf(stderr, "%s: can't gzopen %s\n", prog, infile);
        exit(1);
    }
    out = fopen(outfile, "wb");
    if (out == NULL) {
        perror(file);
        exit(1);
    }

    gz_uncompress(in, out);

    unlink(infile);
}


/* ===========================================================================
 * Usage:  minigzip [-d] [-f] [-h] [-r] [-1 to -9] [files...]
 *   -d : decompress
 *   -f : compress with Z_FILTERED
 *   -h : compress with Z_HUFFMAN_ONLY
 *   -r : compress with Z_RLE
 *   -1 to -9 : compression level
 */

int main(argc, argv)
    int argc;
    char *argv[];
{
    int uncompr = 0;
    gzFile file;
    char outmode[20];

    strcpy(outmode, "wb6 ");

    prog = argv[0];
    argc--, argv++;

    while (argc > 0) {
      if (strcmp(*argv, "-d") == 0)
        uncompr = 1;
      else if (strcmp(*argv, "-f") == 0)
        outmode[3] = 'f';
      else if (strcmp(*argv, "-h") == 0)
        outmode[3] = 'h';
      else if (strcmp(*argv, "-r") == 0)
        outmode[3] = 'R';
      else if ((*argv)[0] == '-' && (*argv)[1] >= '1' && (*argv)[1] <= '9' &&
               (*argv)[2] == 0)
        outmode[2] = (*argv)[1];
      else
        break;
      argc--, argv++;
    }
    if (outmode[3] == ' ')
        outmode[3] = 0;
    if (argc == 0) {
        SET_BINARY_MODE(stdin);
        SET_BINARY_MODE(stdout);
        if (uncompr) {
            file = gzdopen(fileno(stdin), "rb");
            if (file == NULL) error("can't gzdopen stdin");
            gz_uncompress(file, stdout);
        } else {
            file = gzdopen(fileno(stdout), outmode);
            if (file == NULL) error("can't gzdopen stdout");
            gz_compress(stdin, file);
        }
    } else {
        do {
            if (uncompr) {
                file_uncompress(*argv);
            } else {
                file_compress(*argv, outmode);
            }
        } while (argv++, --argc);
    }
    return 0;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品美女在线播放| 99re热这里只有精品免费视频 | 免费在线视频一区| 亚洲欧美日韩小说| 中文字幕一区二区在线播放| 国产精品入口麻豆九色| 最近日韩中文字幕| 亚洲自拍都市欧美小说| 亚洲高清免费观看高清完整版在线观看| 亚洲人快播电影网| 亚洲一区成人在线| 日韩国产欧美一区二区三区| 日本va欧美va精品发布| 国产在线精品一区二区三区不卡 | 亚洲黄色av一区| 一个色妞综合视频在线观看| 丝袜国产日韩另类美女| 久久精品国产99| 成人a级免费电影| 在线亚洲精品福利网址导航| 欧美色视频一区| 精品乱码亚洲一区二区不卡| 亚洲国产高清aⅴ视频| 一区在线观看免费| 青椒成人免费视频| 成人av电影免费在线播放| 91国偷自产一区二区使用方法| 欧美一区二区在线视频| 久久久.com| 一级中文字幕一区二区| 久久国内精品视频| 91社区在线播放| 日韩亚洲国产中文字幕欧美| 国产精品久久久久aaaa| 性欧美大战久久久久久久久| 国产乱一区二区| 91福利视频网站| 国产亚洲一二三区| 无码av中文一区二区三区桃花岛| 国产麻豆一精品一av一免费| 欧美综合在线视频| 中文字幕精品三区| 日韩精品乱码av一区二区| 成人在线综合网站| 日韩午夜电影在线观看| 一区二区三区在线免费观看| 精品一区二区三区蜜桃| 精品视频在线免费| 中文字幕一区二区三区精华液 | 2019国产精品| 亚洲sss视频在线视频| 成人蜜臀av电影| 日韩欧美电影一区| 亚洲国产欧美日韩另类综合| 成人18精品视频| 久久久久青草大香线综合精品| 五月天丁香久久| 欧美在线免费观看亚洲| 亚洲日本va午夜在线影院| 国产一区二区三区香蕉| 日韩午夜精品电影| 免费高清不卡av| 欧美高清视频不卡网| 亚洲综合在线电影| 日本精品一区二区三区四区的功能| 久久久久久久久蜜桃| 久久精品免费观看| 欧美va在线播放| 理论电影国产精品| 欧美一二三区在线观看| 日韩精品一区第一页| 欧美日韩高清一区二区三区| 亚洲福利一区二区三区| 欧美日韩一区二区三区四区| 亚洲狠狠丁香婷婷综合久久久| 91猫先生在线| 亚洲国产日韩a在线播放性色| 欧美视频日韩视频| 视频一区视频二区中文字幕| 欧美一区二区三区四区久久| 丝袜美腿高跟呻吟高潮一区| 欧美一级精品大片| 日韩在线一二三区| 欧美一区二区三区视频在线观看| 奇米精品一区二区三区四区 | 亚洲国产乱码最新视频| 欧美性受极品xxxx喷水| 日韩和欧美的一区| 精品久久国产字幕高潮| 国产91精品入口| 国产亚洲欧美在线| 成av人片一区二区| 一区二区三区电影在线播| 欧美日韩国产影片| 久久爱另类一区二区小说| 久久久国产精品麻豆| av不卡在线观看| 午夜电影网亚洲视频| 精品嫩草影院久久| 成人18视频在线播放| 亚瑟在线精品视频| 国产日韩欧美制服另类| 色狠狠桃花综合| 青青草精品视频| 国产精品护士白丝一区av| 91成人免费网站| 国产美女在线精品| 亚洲黄色av一区| 久久久综合精品| 欧美午夜片在线看| 国产成人综合在线| 亚洲国产你懂的| 国产精品全国免费观看高清 | 国产综合久久久久影院| 亚洲精品自拍动漫在线| 日韩欧美在线综合网| 91免费精品国自产拍在线不卡| 免费的成人av| 亚洲国产精品精华液网站| 欧美国产日韩在线观看| 91精品国产综合久久福利软件| 99视频一区二区三区| 久久激情五月婷婷| 亚洲国产综合色| 1024亚洲合集| 久久久777精品电影网影网| 4438x成人网最大色成网站| 不卡高清视频专区| 韩国女主播成人在线| 日韩国产精品91| 一区二区三区.www| 中文字幕日韩一区二区| 国产欧美一区二区三区网站| 91精品福利在线一区二区三区 | 亚洲一区在线观看网站| 国产精品久久久久久一区二区三区| 欧美一区午夜视频在线观看| 欧美三级中文字| 在线视频国内一区二区| 99精品视频一区| 福利电影一区二区三区| 黄页视频在线91| 经典三级在线一区| 久久精品噜噜噜成人av农村| 麻豆91在线播放免费| 日本系列欧美系列| 亚洲国产成人porn| 亚洲国产精品久久人人爱蜜臀| 一区二区在线观看视频在线观看| 最好看的中文字幕久久| 国产精品国产自产拍在线| 中文字幕一区av| 亚洲欧美在线高清| 亚洲美女免费视频| 亚洲综合男人的天堂| 亚洲国产欧美日韩另类综合| 午夜成人免费电影| 日本欧美大码aⅴ在线播放| 免费观看91视频大全| 国产一区二区三区在线观看免费 | 夜夜精品视频一区二区| 亚洲国产综合在线| 日本一不卡视频| 免费国产亚洲视频| 国产精品1024| 99精品久久只有精品| 欧美日韩在线三级| 日韩欧美国产综合| 国产亚洲欧美日韩日本| 亚洲欧洲日本在线| 午夜精品福利久久久| 精品一区二区三区影院在线午夜 | 国产女人水真多18毛片18精品视频| 欧美精彩视频一区二区三区| 中文字幕一区日韩精品欧美| 亚洲香肠在线观看| 黄网站免费久久| 在线观看成人免费视频| 欧美一卡在线观看| 国产精品久久二区二区| 亚洲一区二三区| 国产一级精品在线| 日本精品免费观看高清观看| 日韩丝袜美女视频| 亚洲欧洲成人自拍| 男男gaygay亚洲| 色猫猫国产区一区二在线视频| 日韩一二三区不卡| 亚洲柠檬福利资源导航| 久久精品国产免费| 91福利区一区二区三区| 亚洲精品一区二区精华| 亚洲主播在线播放| 国产成人精品午夜视频免费 | 国产精品美女久久福利网站| 同产精品九九九| 99re成人精品视频| 久久伊99综合婷婷久久伊| 亚洲成年人影院| 91在线精品一区二区三区|