Lines Matching refs:zipfile
76 /* Set the filetype of the zipfile to "application/zip" */
81 /* Set the filetype of the zipfile to "application/x-zip" */
86 /* Set the Creator/Type of the zipfile to 'IZip' and 'ZIP ' */
91 /* Set the filetype of the zipfile to &DDC */
168 if (zipfile != NULL)
169 free((zvoid *)zipfile);
214 "Usage: zipnote [-w] [-q] [-b fm] zipfile",
216 "Usage: zipnote [-w] [-q] [-b path] zipfile",
218 " the default action is to write the comments in zipfile to stdout",
219 " -w write the zipfile comments from stdin",
390 /* Write the comments in the zipfile to stdout, or read them from stdin. */
456 zipfile = tempzip = NULL;
508 if (zipfile == NULL)
510 if ((zipfile = ziptyp(argv[r])) == NULL)
521 if (zipfile == NULL)
524 if ((in_path = malloc(strlen(zipfile) + 1)) == NULL) {
527 strcpy(in_path, zipfile);
531 ziperr(r, zipfile);
533 ziperr(ZE_NAME, zipfile);
550 if ((x = fopen(zipfile, "a")) == NULL)
551 ziperr(ZE_CREAT, zipfile);
553 t = getfileattr(zipfile);
601 ziperr(r, "was building new zipfile comment");
626 if ((tempzip = malloc(strlen(zipfile) + 12)) == NULL) {
629 strcpy(tempzip, zipfile);
646 if ((tempzf = y = fopen(tempzip = tempname(zipfile), FOPW)) == NULL)
651 if ((in_file = fopen(zipfile, FOPR)) == NULL)
652 ziperr(ZE_NAME, zipfile);
655 ziperr(r, r == ZE_TEMP ? tempzip : zipfile);
680 if ((r = replace(zipfile, tempzip)) != ZE_OK)
689 setfileattr(zipfile, t);
691 /* Set the filetype of the zipfile to &DDC */
692 setfiletype(zipfile,0xDDC);
694 free((zvoid *)zipfile);
695 zipfile = NULL;