Lines Matching refs:zipfile
78 if (zipfile != NULL)
79 free((zvoid *)zipfile);
124 "Usage: zipnote [-w] [-q] [-b fm] zipfile",
126 "Usage: zipnote [-w] [-q] [-b path] zipfile",
128 " the default action is to write the comments in zipfile to stdout",
129 " -w write the zipfile comments from stdin",
300 /* Write the comments in the zipfile to stdout, or read them from stdin. */
330 zipfile = tempzip = NULL;
382 if (zipfile == NULL)
384 if ((zipfile = ziptyp(argv[r])) == NULL)
395 if (zipfile == NULL)
400 ziperr(r, zipfile);
402 ziperr(ZE_NAME, zipfile);
419 if ((x = fopen(zipfile, "a")) == NULL)
420 ziperr(ZE_CREAT, zipfile);
422 t = getfileattr(zipfile);
475 if ((tempzf = y = fopen(tempzip = tempname(zipfile), FOPW)) == NULL)
479 if ((x = fopen(zipfile, FOPR)) == NULL)
480 ziperr(ZE_NAME, zipfile);
482 ziperr(r, r == ZE_TEMP ? tempzip : zipfile);
507 if ((r = replace(zipfile, tempzip)) != ZE_OK)
516 setfileattr(zipfile, t);
518 /* Set the filetype of the zipfile to &DDC */
519 setfiletype(zipfile,0xDDC);
521 free((zvoid *)zipfile);
522 zipfile = NULL;