• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/libarchive-30/libarchive/tar/

Lines Matching +refs:archive +refs:next +refs:line

110 	struct archive_dir_entry	*next;
132 static int append_archive(struct bsdtar *, struct archive *,
133 struct archive *ina);
135 struct archive *, const char *fname);
137 struct archive *a);
138 static int copy_file_data(struct bsdtar *, struct archive *a,
139 struct archive *ina, struct archive_entry *);
142 static void report_write(struct bsdtar *, struct archive *,
145 static void write_archive(struct archive *, struct bsdtar *);
146 static void write_entry_backend(struct bsdtar *, struct archive *,
148 static int write_file_data(struct bsdtar *, struct archive *,
150 static void write_hierarchy(struct bsdtar *, struct archive *,
173 struct archive *a;
258 struct archive *a;
283 "Can't read archive %s: %s", bsdtar->filename,
290 "Cannot append to compressed archive.");
292 /* Keep going until we hit end-of-archive */
299 /* Re-open archive for writing */
319 "Format %s is incompatible with the archive %s.",
335 lafe_errc(1, errno, "Could not seek to archive end");
351 struct archive *a;
388 "Cannot append to compressed archive.");
395 /* Keep going until we hit end-of-archive */
401 /* Re-open archive for writing. */
418 lafe_errc(1, errno, "Could not seek to archive end");
430 p = bsdtar->archive_dir->head->next;
440 * Write user-specified files/dirs to opened archive.
443 write_archive(struct archive *a, struct bsdtar *bsdtar)
524 * Unless --null was specified, a line containing exactly "-C" will
525 * cause the next line to be a directory to pass to chdir(). If
526 * --null is specified, then a line "-C" is just another filename.
529 archive_names_from_file(struct bsdtar *bsdtar, struct archive *a)
532 const char *line;
537 while ((line = lafe_line_reader_next(lr)) != NULL) {
539 set_chdir(bsdtar, line);
541 } else if (!bsdtar->option_null && strcmp(line, "-C") == 0)
544 if (*line != '/')
546 write_hierarchy(bsdtar, a, line);
557 * Copy from specified archive to current archive. Returns non-zero
559 * operation). If there are errors reading the input archive, we set
564 append_archive_filename(struct bsdtar *bsdtar, struct archive *a,
567 struct archive *ina;
585 lafe_warnc(0, "Error reading archive %s: %s",
595 append_archive(struct bsdtar *bsdtar, struct archive *a, struct archive *ina)
644 copy_file_data(struct bsdtar *bsdtar, struct archive *a,
645 struct archive *ina, struct archive_entry *entry)
671 * Add the file or dir hierarchy named by 'path' to the archive
674 write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path)
736 /* 'H': First item (from command line) like 'L'. */
797 * already in the archive; in all modes, obey --newerXXX flags.
962 write_entry_backend(struct bsdtar *bsdtar, struct archive *a,
997 * to inform us that the archive body won't get stored. In
1007 * which made us decide not to write the archive body.
1014 report_write(struct bsdtar *bsdtar, struct archive *a,
1036 /* Helper function to copy file to archive. */
1038 write_file_data(struct bsdtar *bsdtar, struct archive *a,
1071 * Test if the specified file is new enough to include in the archive.
1100 * what was already in the archive.
1104 for (p = bsdtar->archive_dir->head; p != NULL; p = p->next) {
1139 p = p->next;
1144 lafe_errc(1, ENOMEM, "Can't read archive directory");
1148 lafe_errc(1, ENOMEM, "Can't read archive directory");
1151 p->next = NULL;
1155 bsdtar->archive_dir->tail->next = p;