Lines Matching defs:entry

518 	struct archive_entry *entry, *spare;
619 entry = NULL;
620 archive_entry_linkify(cpio->linkresolver, &entry, &spare);
621 while (entry != NULL) {
622 entry_to_archive(cpio, entry);
623 archive_entry_free(entry);
624 entry = NULL;
625 archive_entry_linkify(cpio->linkresolver, &entry, &spare);
697 struct archive_entry *entry, *spare;
705 entry = archive_entry_new();
706 if (entry == NULL)
707 lafe_errc(1, 0, "Couldn't allocate entry");
708 archive_entry_copy_sourcepath(entry, srcpath);
710 entry, -1, NULL);
718 archive_entry_free(entry);
724 archive_entry_set_uid(entry, cpio->uid_override);
725 archive_entry_set_uname(entry, cpio->uname_override);
728 archive_entry_set_gid(entry, cpio->gid_override);
729 archive_entry_set_gname(entry, cpio->gname_override);
733 * Generate a destination path for this entry.
760 archive_entry_copy_pathname(entry, destpath);
767 && archive_entry_filetype(entry) != AE_IFDIR) {
768 archive_entry_linkify(cpio->linkresolver, &entry, &spare);
771 if (entry != NULL) {
772 r = entry_to_archive(cpio, entry);
773 archive_entry_free(entry);
784 entry_to_archive(struct cpio *cpio, struct archive_entry *entry)
786 const char *destpath = archive_entry_pathname(entry);
787 const char *srcpath = archive_entry_sourcepath(entry);
802 * to copy mode for that entry.
808 && archive_entry_filetype(entry) == AE_IFREG)
811 /* Save the original entry in case we need it later. */
812 t = archive_entry_clone(entry);
831 * the original entry to copy the file over. */
842 if (archive_entry_filetype(entry) == AE_IFREG) {
843 if (archive_entry_size(entry) > 0) {
852 archive_entry_set_size(entry, 0);
855 r = archive_write_header(cpio->archive, entry);
866 if (r >= ARCHIVE_WARN && archive_entry_size(entry) > 0 && fd >= 0) {
885 fd = restore_time(cpio, entry, srcpath, fd);
896 restore_time(struct cpio *cpio, struct archive_entry *entry,
903 (void)entry; /* UNUSED */
920 times[1].tv_sec = archive_entry_mtime(entry);
921 times[1].tv_usec = archive_entry_mtime_nsec(entry) / 1000;
923 times[0].tv_sec = archive_entry_atime(entry);
924 times[0].tv_usec = archive_entry_atime_nsec(entry) / 1000;
942 if ((AE_IFLNK != archive_entry_filetype(entry))
955 struct archive_entry *entry;
984 r = archive_read_next_header(a, &entry);
991 if (archive_match_path_excluded(cpio->matching, entry))
994 destpath = cpio_rename(archive_entry_pathname(entry));
995 archive_entry_set_pathname(entry, destpath);
997 destpath = archive_entry_pathname(entry);
1005 archive_entry_set_uid(entry, cpio->uid_override);
1007 archive_entry_set_gid(entry, cpio->gid_override);
1008 r = archive_write_header(ext, entry);
1011 archive_entry_pathname(entry),
1013 } else if (!archive_entry_size_is_set(entry)
1014 || archive_entry_size(entry) > 0) {
1073 struct archive_entry *entry;
1094 r = archive_read_next_header(a, &entry);
1101 if (archive_match_path_excluded(cpio->matching, entry))
1104 list_item_verbose(cpio, entry);
1106 fprintf(stdout, "%s\n", archive_entry_pathname(entry));
1130 list_item_verbose(struct cpio *cpio, struct archive_entry *entry)
1154 strcpy(uids, cpio_i64toa(archive_entry_uid(entry)));
1156 strcpy(gids, cpio_i64toa(archive_entry_gid(entry)));
1160 uname = archive_entry_uname(entry);
1162 uname = lookup_uname(cpio, (uid_t)archive_entry_uid(entry));
1164 gname = archive_entry_gname(entry);
1166 gname = lookup_gname(cpio, (uid_t)archive_entry_gid(entry));
1170 if (archive_entry_filetype(entry) == AE_IFCHR
1171 || archive_entry_filetype(entry) == AE_IFBLK) {
1173 (unsigned long)archive_entry_rdevmajor(entry),
1174 (unsigned long)archive_entry_rdevminor(entry));
1176 strcpy(size, cpio_i64toa(archive_entry_size(entry)));
1180 mtime = archive_entry_mtime(entry);
1210 archive_entry_strmode(entry),
1211 archive_entry_nlink(entry),
1213 archive_entry_pathname(entry));
1216 if (archive_entry_hardlink(entry)) /* Hard link */
1217 fprintf(out, " link to %s", archive_entry_hardlink(entry));
1218 else if (archive_entry_symlink(entry)) /* Symbolic link */
1219 fprintf(out, " -> %s", archive_entry_symlink(entry));
1281 * Prompt for a new name for this entry. Returns a pointer to the
1282 * new name or NULL if the entry should not be copied. This