Home | History | Annotate | Download | only in gzip

Lines Matching defs:outfile

49  *	- handle some signals better (remove outfile?)
260 static int check_outfile(const char *outfile);
1181 /* check the outfile is OK. */
1183 check_outfile(const char *outfile)
1188 if (lflag == 0 && stat(outfile, &sb) == 0) {
1190 unlink(outfile);
1195 "overwrite (y or n)? " , outfile);
1201 unlink(outfile);
1203 maybe_warnx("%s already exists -- skipping", outfile);
1299 file_compress(char *file, char *outfile, size_t outsize)
1344 if ((size_t)snprintf(outfile, outsize, "%s%s",
1346 memcpy(outfile + outsize - suffixes[0].ziplen - 1,
1350 if (check_outfile(outfile) == 0) {
1358 out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
1360 maybe_warn("could not create output: %s", outfile);
1383 maybe_warn("couldn't stat: %s", outfile);
1390 outfile, osb.st_size, size);
1394 copymodes(out, &isb, outfile);
1409 unlink(outfile);
1416 file_uncompress(char *file, char *outfile, size_t outsize)
1449 strlcpy(outfile, file, outsize);
1450 if (check_suffix(outfile, 1) == NULL && !(cflag || lflag)) {
1519 snprintf(outfile, outsize, "%.*s%.*s",
1537 if (check_outfile(outfile) == 0)
1547 zfd = open(outfile
1554 maybe_warn("can't open %s", outfile);
1589 maybe_warn("fdopen for write: %s", outfile);
1598 unlink(outfile);
1602 maybe_warn("failed outfile fclose");
1603 unlink(outfile);
1652 print_list(fd, in_size, outfile, isb.st_mtime);
1668 unlink(outfile);
1689 ofd = open(outfile, O_RDWR, 0);
1692 outfile);
1697 outfile);
1706 unlink(outfile);
1711 copymodes(ofd, &isb, outfile);
2021 char outfile[PATH_MAX];
2025 usize = file_uncompress(file, outfile, sizeof(outfile));
2034 gsize = file_compress(file, outfile, sizeof(outfile));
2043 print_verbage(file, (cflag) ? NULL : outfile, usize, gsize);
2157 print_list(int fd, off_t out, const char *outfile, time_t ts)
2227 print_list_out(out, in, outfile);
2231 print_list_out(off_t out, off_t in, const char *outfile)
2235 printf(" %s\n", outfile);