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

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

?? zip.c

?? 匯編源代碼大全
?? C
?? 第 1 頁 / 共 3 頁
字號:
  }  else    a = 0;  /* Throw away the garbage in front of the zip file for -F */  if (fix) zipbeg = 0;  /* Open zip file and temporary output file */  diag("opening zip file and creating temporary zip file");  x = NULL;  tempzn = 0;  if (strcmp(zipfile, "-") == 0)  {#if defined(MSDOS) || defined(__human68k__)    /* Set stdout mode to binary for MSDOS systems */    setmode(fileno(stdout), O_BINARY);    tempzf = y = fdopen(fileno(stdout), FOPW);#else    tempzf = y = stdout;#endif    /* tempzip must be malloced so a later free won't barf */    tempzip = malloc(4);    if (tempzip == NULL)      err(ZE_MEM, "allocating temp filename");    strcpy(tempzip, "-");  }  else if (d) /* d true if just appending (-g) */  {    if ((y = fopen(zipfile, FOPM)) == NULL)      err(ZE_NAME, zipfile);    tempzip = zipfile;    tempzf = y;    if (fseek(y, cenbeg, SEEK_SET))      err(ferror(y) ? ZE_READ : ZE_EOF, zipfile);    tempzn = cenbeg;  }  else  {    if ((zfiles != NULL || zipbeg) && (x = fopen(zipfile, FOPR_EX)) == NULL)      err(ZE_NAME, zipfile);    if ((tempzip = tempname(zipfile)) == NULL)      err(ZE_MEM, "allocating temp filename");    if ((tempzf = y = fopen(tempzip, FOPW)) == NULL)      err(ZE_TEMP, tempzip);    if (zipbeg && (r = fcopy(x, y, zipbeg)) != ZE_OK)      err(r, r == ZE_TEMP ? tempzip : zipfile);    tempzn = zipbeg;  }#ifndef VMS  /* Use large buffer to speed up stdio: */  zipbuf = (char *)malloc(ZBSZ);  if (zipbuf == NULL)    err(ZE_MEM, tempzip);# ifdef _IOFBF  setvbuf(y, zipbuf, _IOFBF, ZBSZ);# else  setbuf(y, zipbuf);# endif /* _IOBUF */#endif /* VMS */  o = 0;                                /* no ZE_OPEN errors yet */  /* Process zip file, updating marked files */  if (zfiles != NULL)    diag("going through old zip file");  w = &zfiles;  while ((z = *w) != NULL)    if (z->mark)    {      /* if not deleting, zip it up */      if (action != DELETE)      {        if (noisy)        {          fprintf(mesg, "updating: %s", z->zname);          fflush(mesg);        }        if ((r = zipup(z, y)) != ZE_OK && r != ZE_OPEN)        {          if (noisy)          {            putc('\n', mesg);            fflush(mesg);          }          sprintf(errbuf, "was zipping %s", z->name);          err(r, errbuf);        }        if (r == ZE_OPEN)        {          o = 1;          if (noisy)          {            putc('\n', mesg);            fflush(mesg);          }          perror("zip warning");          warn("could not open for reading: ", z->name);          warn("will just copy entry over: ", z->zname);          if ((r = zipcopy(z, x, y)) != ZE_OK)          {            sprintf(errbuf, "was copying %s", z->zname);            err(r, errbuf);          }          z->mark = 0;        }        w = &z->nxt;      }      else      {        if (noisy)        {          fprintf(mesg, "deleting: %s\n", z->zname);          fflush(mesg);        }        v = z->nxt;                     /* delete entry from list */        free((voidp *)(z->name));        free((voidp *)(z->zname));        if (z->ext)          free((voidp *)(z->extra));        if (z->cext && z->cextra != z->extra)          free((voidp *)(z->cextra));        if (z->com)          free((voidp *)(z->comment));        farfree((voidp far *)z);        *w = v;        zcount--;      }    }    else    {      /* copy the original entry verbatim */      if (!d && (r = zipcopy(z, x, y)) != ZE_OK)      {        sprintf(errbuf, "was copying %s", z->zname);        err(r, errbuf);      }      w = &z->nxt;    }  /* Process the edited found list, adding them to the zip file */  diag("zipping up new entries, if any");  for (f = found; f != NULL; f = fexpel(f))  {    /* add a new zfiles entry and set the name */    if ((z = (struct zlist far *)farmalloc(sizeof(struct zlist))) == NULL)      err(ZE_MEM, "was adding files to zip file");    z->nxt = NULL;    z->name = f->name;    f->name = NULL;    z->zname = f->zname;    f->zname = NULL;    z->ext = z->cext = z->com = 0;    z->mark = 1;    z->dosflag = f->dosflag;    /* zip it up */    if (noisy)    {      fprintf(mesg, "  adding: %s", z->zname);      fflush(mesg);    }    if ((r = zipup(z, y)) != ZE_OK  && r != ZE_OPEN)    {      if (noisy)      {        putc('\n', mesg);        fflush(mesg);      }      sprintf(errbuf, "was zipping %s", z->name);      err(r, errbuf);    }    if (r == ZE_OPEN)    {      o = 1;      if (noisy)      {        putc('\n', mesg);        fflush(mesg);      }      perror("zip warning");      warn("could not open for reading: ", z->name);      free((voidp *)(z->name));      free((voidp *)(z->zname));      farfree((voidp far *)z);    }    else    {      *w = z;      w = &z->nxt;      zcount++;    }  }  if (key != NULL)  {    free((voidp *)key);    key = NULL;  }  /* Get one line comment for each new entry */  if (comadd)  {    if (comment_stream == NULL) {      comment_stream = fdopen(fileno(stderr), "r");    }    if ((e = malloc(MAXCOM + 1)) == NULL)      err(ZE_MEM, "was reading comment lines");    for (z = zfiles; z != NULL; z = z->nxt)      if (z->mark)      {        if (noisy)          fprintf(mesg, "Enter comment for %s:\n", z->name);        if (fgets(e, MAXCOM+1, comment_stream) != NULL)        {          if ((p = malloc((k = strlen(e))+1)) == NULL)          {            free((voidp *)e);            err(ZE_MEM, "was reading comment lines");          }          strcpy(p, e);          if (p[k-1] == '\n')            p[--k] = 0;          z->comment = p;          z->com = k;        }      }    free((voidp *)e);  }  /* Get multi-line comment for the zip file */  if (zipedit)  {    if (comment_stream == NULL) {      comment_stream = fdopen(fileno(stderr), "r");    }    if ((e = malloc(MAXCOM + 1)) == NULL)      err(ZE_MEM, "was reading comment lines");    if (noisy && zcomlen)    {      fputs("current zip file comment is:\n", mesg);      fwrite(zcomment, 1, zcomlen, mesg);      if (zcomment[zcomlen-1] != '\n')        putc('\n', mesg);      free((voidp *)zcomment);    }    zcomment = malloc(1);    *zcomment = 0;    if (noisy)      fputs("enter new zip file comment (end with .):\n", mesg);#if (defined(AMIGA) && (defined(LATTICE)||defined(__SASC)))      flushall();  /* tty input/output is out of sync here */#endif    while (fgets(e, MAXCOM+1, comment_stream) != NULL && strcmp(e, ".\n"))    {      if (e[(r = strlen(e)) - 1] == '\n')        e[--r] = 0;      if ((p = malloc((*zcomment ? strlen(zcomment) + 3 : 1) + r)) == NULL)      {        free((voidp *)e);        err(ZE_MEM, "was reading comment lines");      }      if (*zcomment)        strcat(strcat(strcpy(p, zcomment), "\r\n"), e);      else        strcpy(p, *e ? e : "\r\n");      free((voidp *)zcomment);      zcomment = p;    }    zcomlen = strlen(zcomment);    free((voidp *)e);  }  /* Write central directory and end header to temporary zip */  diag("writing central directory");  k = 0;                        /* keep count for end header */  c = tempzn;                   /* get start of central */  n = t = 0;  for (z = zfiles; z != NULL; z = z->nxt)  {    if ((r = putcentral(z, y)) != ZE_OK)      err(r, tempzip);    tempzn += 4 + CENHEAD + z->nam + z->cext + z->com;    n += z->len;    t += z->siz;    k++;  }  if (k == 0)    warn("zip file empty", "");  if (verbose)    fprintf(mesg, "total bytes=%lu, compressed=%lu -> %d%% savings\n",           n, t, percent(n, t));  t = tempzn - c;               /* compute length of central */  diag("writing end of central directory");  if ((r = putend(k, t, c, zcomlen, zcomment, y)) != ZE_OK)    err(r, tempzip);  tempzf = NULL;  if (fclose(y))    err(d ? ZE_WRITE : ZE_TEMP, tempzip);  if (x != NULL)    fclose(x);  /* Free some memory before spawning unzip */  lm_free();  /* Test new zip file before overwriting old one or removing input files */  if (test) {    check_zipfile(tempzip);  }  /* Replace old zip file with new zip file, leaving only the new one */  if (strcmp(zipfile, "-") && !d)  {    diag("replacing old zip file with new zip file");    if ((r = replace(zipfile, tempzip)) != ZE_OK)    {      warn("new zip file left as: ", tempzip);      free((voidp *)tempzip);      tempzip = NULL;      err(r, "was replacing the original zip file");    }    free((voidp *)tempzip);  }  tempzip = NULL;  if (a && strcmp(zipfile, "-")) {    setfileattr(zipfile, a);#ifdef VMS    /* If the zip file existed previously, restore its record format: */    if (x != NULL)      VMSmunch(zipfile, RESTORE_RTYPE, NULL);#endif  }  /* Finish up (process -o, -m, clean up).  Exit code depends on o. */  leave(o ? ZE_OPEN : ZE_OK);  return 0; /* just to avoid compiler warning */}/***************************************************************** | envargs - add default options from environment to command line |---------------------------------------------------------------- | Author: Bill Davidsen, original 10/13/91, revised 23 Oct 1991. | This program is in the public domain. |---------------------------------------------------------------- | Minor program notes: |  1. Yes, the indirection is a tad complex |  2. Parenthesis were added where not needed in some cases |     to make the action of the code less obscure. ****************************************************************/local voidenvargs(Pargc, Pargv, envstr)int *Pargc;char ***Pargv;char *envstr;{    char *getenv();    char *envptr;                               /* value returned by getenv */    char *bufptr;                               /* copy of env info */    int argc = 0;                               /* internal arg count */    int ch;                                             /* spare temp value */    char **argv;                                /* internal arg vector */    char **argvect;                             /* copy of vector address */    /* see if anything in the environment */    envptr = getenv(envstr);    if (envptr == NULL || *envptr == 0) return;    /* count the args so we can allocate room for them */    argc = count_args(envptr);    bufptr = malloc(1+strlen(envptr));    if (bufptr == NULL)        err(ZE_MEM, "Can't get memory for arguments");    strcpy(bufptr, envptr);    /* allocate a vector large enough for all args */    argv = (char **)malloc((argc+*Pargc+1)*sizeof(char *));    if (argv == NULL)        err(ZE_MEM, "Can't get memory for arguments");    argvect = argv;    /* copy the program name first, that's always true */    *(argv++) = *((*Pargv)++);    /* copy the environment args first, may be changed */    do {        *(argv++) = bufptr;        /* skip the arg and any trailing blanks */        while ((ch = *bufptr) != '\0' && ch != ' ') ++bufptr;        if (ch == ' ') *(bufptr++) = '\0';        while ((ch = *bufptr) != '\0' && ch == ' ') ++bufptr;    } while (ch);    /* now save old argc and copy in the old args */    argc += *Pargc;    while (--(*Pargc)) *(argv++) = *((*Pargv)++);    /* finally, add a NULL after the last arg, like UNIX */    *argv = NULL;    /* save the values and return */    *Pargv = argvect;    *Pargc = argc;}static intcount_args(s)char *s;{    int count = 0;    int ch;    do {        /* count and skip args */        ++count;        while ((ch = *s) != '\0' && ch != ' ') ++s;        while ((ch = *s) != '\0' && ch == ' ') ++s;    } while (ch);    return count;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品18久久久久| 欧美性大战xxxxx久久久| 在线观看亚洲专区| 欧美电影免费观看高清完整版 | 欧美午夜精品电影| 欧美精品一区二区三| 一区二区国产视频| 国产精品中文字幕欧美| 欧美体内she精高潮| 国产天堂亚洲国产碰碰| 青青草97国产精品免费观看| 成人久久18免费网站麻豆| 欧美一区二区三区的| 亚洲精品高清在线| 成人小视频免费在线观看| 日韩欧美一区二区久久婷婷| 一区二区三区欧美在线观看| 国产99久久久精品| 精品免费日韩av| 日本中文在线一区| 欧美午夜一区二区| 亚洲精品写真福利| 成人高清免费观看| 国产午夜久久久久| 激情综合色丁香一区二区| 欧美电影一区二区| 亚洲电影你懂得| 色婷婷狠狠综合| 亚洲美女免费在线| aaa亚洲精品一二三区| 中文字幕成人网| 国产成人夜色高潮福利影视| 久久综合九色综合97_久久久 | 欧美亚洲动漫制服丝袜| 亚洲欧美激情插| 99久久精品久久久久久清纯| 国产精品色呦呦| 成人国产一区二区三区精品| 国产精品嫩草影院com| 成人av网址在线观看| 欧美韩日一区二区三区四区| 国产精品1024| 国产精品欧美经典| 99免费精品在线观看| 亚洲欧洲精品成人久久奇米网| 成人性视频免费网站| 中文天堂在线一区| 91毛片在线观看| 亚洲美女屁股眼交| 欧美女孩性生活视频| 日韩精品午夜视频| 欧美精品一区二区三区很污很色的| 黄色小说综合网站| 中文av字幕一区| 91蜜桃在线观看| 亚洲va在线va天堂| 欧美xxxx老人做受| 成人手机在线视频| 亚洲日本在线看| 在线电影欧美成精品| 久久99精品久久久| 国产精品久久久99| 欧美四级电影网| 美女国产一区二区| 国产精品色哟哟| 欧美日韩三级在线| 国产一区二区电影| 亚洲激情自拍偷拍| 欧美成人艳星乳罩| 99re这里只有精品首页| 天天色天天爱天天射综合| 久久久亚洲午夜电影| 一本大道久久a久久综合婷婷| 手机精品视频在线观看| 国产欧美一区二区精品秋霞影院| 色综合婷婷久久| 另类小说一区二区三区| 欧美国产成人精品| 欧美肥妇毛茸茸| 成人av网址在线| 蜜臀a∨国产成人精品| 国产精品三级av| 日韩欧美国产综合| 色欧美片视频在线观看| 久久99精品国产.久久久久久| 国产精品久久久久久久岛一牛影视 | 亚洲一级不卡视频| 久久综合资源网| 欧美日韩视频在线观看一区二区三区| 国产乱人伦精品一区二区在线观看| 亚洲另类一区二区| 国产拍揄自揄精品视频麻豆| 欧美色精品天天在线观看视频| 国产精品系列在线播放| 偷拍一区二区三区| 亚洲免费观看高清完整| 国产欧美一区二区三区鸳鸯浴| 91精品国产综合久久久久久 | 中文字幕五月欧美| 久久伊人蜜桃av一区二区| 精品视频资源站| 99精品视频在线观看免费| 国产一区二区三区在线观看精品 | 91在线视频网址| 国产精品18久久久久久久久久久久| 天天综合网天天综合色| 亚洲精品国产无套在线观| 中文字幕亚洲不卡| 国产精品无人区| 国产亚洲成av人在线观看导航| 日韩欧美一区二区在线视频| 欧美另类久久久品| 欧美性一区二区| 在线观看一区二区视频| 91成人在线精品| 在线中文字幕一区| 欧美在线|欧美| 欧美中文字幕久久| 欧美中文字幕一区| 欧美亚洲一区二区在线观看| 91成人在线观看喷潮| 欧美唯美清纯偷拍| 欧美三级日韩在线| 欧美日韩一区 二区 三区 久久精品| 色婷婷综合久久久中文一区二区| 99精品黄色片免费大全| 色综合久久久久久久| 一本高清dvd不卡在线观看| 一本久久a久久精品亚洲| 日本高清视频一区二区| 在线视频国产一区| 欧美精品在线观看播放| 欧美一区二区三区不卡| 欧美成人a∨高清免费观看| 亚洲精品一区二区三区99| 久久久久久久综合日本| 中文无字幕一区二区三区| 一区视频在线播放| 一区二区三区四区高清精品免费观看 | 日产欧产美韩系列久久99| 日韩vs国产vs欧美| 国产一区视频导航| 91影院在线观看| 欧美日韩免费电影| 精品久久久久久久久久久久久久久久久 | 亚洲三级视频在线观看| 亚瑟在线精品视频| 久久99精品久久久久久| 99久久伊人网影院| 精品国产欧美一区二区| 中文字幕永久在线不卡| 亚洲成人动漫一区| 国产高清成人在线| 欧美亚洲综合色| 久久久久国产免费免费| 亚洲免费大片在线观看| 免费看日韩精品| 粉嫩高潮美女一区二区三区| 欧美三区在线观看| 久久久.com| 午夜影院久久久| 国产成人超碰人人澡人人澡| 色婷婷av久久久久久久| 精品免费99久久| 亚洲午夜私人影院| 国产99久久精品| 制服丝袜亚洲色图| 中文字幕在线不卡| 狠狠狠色丁香婷婷综合激情| 色婷婷综合在线| 欧美激情综合在线| 免费欧美日韩国产三级电影| 99v久久综合狠狠综合久久| 欧美成人三级电影在线| 亚洲一区二区成人在线观看| 风间由美一区二区三区在线观看| 欧美精品一卡二卡| 亚洲色图在线看| 国产二区国产一区在线观看| 8x福利精品第一导航| 亚洲激情男女视频| 成人激情视频网站| 久久久美女毛片| 日本v片在线高清不卡在线观看| 91亚洲精品久久久蜜桃网站 | 日韩电影一区二区三区四区| 色欧美乱欧美15图片| 中文字幕第一区综合| 韩国三级在线一区| 日韩欧美一级精品久久| 日韩在线一二三区| 欧美日韩电影一区| 亚洲影院免费观看| 色伊人久久综合中文字幕| 国产精品午夜春色av| 国产**成人网毛片九色| 国产日韩欧美麻豆| 国产精品1区二区.| 国产日韩精品一区二区浪潮av| 老司机精品视频线观看86|