Lines Matching refs:entry

106 	 * the 'L' (longname) entry instead.
494 struct archive_entry *entry)
500 * assign fake dev/inode numbers to each tar entry. Note that
519 archive_entry_set_dev(entry, 1 + default_dev); /* Don't use zero. */
520 archive_entry_set_ino(entry, ++default_inode); /* Don't use zero. */
544 r = tar_read_header(a, tar, entry, &unconsumed);
561 archive_entry_sparse_add_entry(entry,
566 if (r == ARCHIVE_OK && archive_entry_filetype(entry) == AE_IFREG) {
568 * "Regular" entry with trailing '/' is really
572 if ((wp = archive_entry_pathname_w(entry)) != NULL) {
575 archive_entry_set_filetype(entry, AE_IFDIR);
577 } else if ((p = archive_entry_pathname(entry)) != NULL) {
580 archive_entry_set_filetype(entry, AE_IFDIR);
690 * with a single entry.
694 struct archive_entry *entry, size_t *unconsumed)
776 err = header_Solaris_ACL(a, tar, entry, h, unconsumed);
781 err = header_pax_global(a, tar, entry, h, unconsumed);
786 err = header_longlink(a, tar, entry, h, unconsumed);
789 err = header_longname(a, tar, entry, h, unconsumed);
792 err = header_volume(a, tar, entry, h, unconsumed);
800 err = header_pax_extensions(a, tar, entry, h, unconsumed);
805 err = header_pax_extensions(a, tar, entry, h, unconsumed);
812 err = header_gnutar(a, tar, entry, h, unconsumed);
818 err = header_ustar(a, tar, entry, h);
822 err = header_old_tar(a, tar, entry, h);
835 * extensions for both the AppleDouble extension entry and the
836 * regular entry.
841 int err2 = read_mac_metadata_blob(a, tar, entry, h, unconsumed);
957 struct archive_entry *entry, const void *h, size_t *unconsumed)
976 err = tar_read_header(a, tar, entry, unconsumed);
1040 err = archive_acl_from_text_l(archive_entry_acl(entry),
1058 struct archive_entry *entry, const void *h, size_t *unconsumed)
1065 err = tar_read_header(a, tar, entry, unconsumed);
1069 archive_entry_copy_link(entry, tar->longlink.s);
1093 struct archive_entry *entry, const void *h, size_t *unconsumed)
1101 err = tar_read_header(a, tar, entry, unconsumed);
1104 if (archive_entry_copy_pathname_l(entry, tar->longname.s,
1116 struct archive_entry *entry, const void *h, size_t *unconsumed)
1121 return (tar_read_header(a, tar, entry, unconsumed));
1125 * Read body of an archive entry into an archive_string object.
1178 struct archive_entry *entry, const void *h)
1192 archive_entry_set_mode(entry,
1194 archive_entry_set_uid(entry, tar_atol(header->uid, sizeof(header->uid)));
1195 archive_entry_set_gid(entry, tar_atol(header->gid, sizeof(header->gid)));
1200 "Tar entry has negative size");
1207 "Tar entry size overflow");
1211 archive_entry_set_size(entry, tar->entry_bytes_remaining);
1212 archive_entry_set_mtime(entry, tar_atol(header->mtime, sizeof(header->mtime)), 0);
1219 if (archive_entry_copy_hardlink_l(entry, tar->entry_linkpath.s,
1229 * entry, only the fact that it is a hard link. So, I
1232 * implies that the underlying entry is a regular
1235 if (archive_entry_size(entry) > 0)
1236 archive_entry_set_filetype(entry, AE_IFREG);
1251 if (archive_entry_size(entry) == 0) {
1260 archive_entry_set_size(entry, 0);
1269 archive_entry_set_size(entry, 0);
1274 * = a ustar non-pax archive with a hardlink entry at
1277 * and has an entry which is a hardlink entry storing
1284 archive_entry_set_filetype(entry, AE_IFLNK);
1285 archive_entry_set_size(entry, 0);
1287 if (archive_entry_copy_symlink_l(entry, tar->entry_linkpath.s,
1296 archive_entry_set_filetype(entry, AE_IFCHR);
1297 archive_entry_set_size(entry, 0);
1301 archive_entry_set_filetype(entry, AE_IFBLK);
1302 archive_entry_set_size(entry, 0);
1306 archive_entry_set_filetype(entry, AE_IFDIR);
1307 archive_entry_set_size(entry, 0);
1311 archive_entry_set_filetype(entry, AE_IFIFO);
1312 archive_entry_set_size(entry, 0);
1321 archive_entry_set_filetype(entry, AE_IFDIR);
1326 * entry, except that the contents should be _appended_ to
1331 case 'N': /* Old GNU "long filename" entry. */
1332 /* The body of this entry is a script for renaming
1335 archive_entry_set_filetype(entry, AE_IFREG);
1356 archive_entry_set_filetype(entry, AE_IFREG);
1367 struct archive_entry *entry, const void *h)
1374 if (archive_entry_copy_pathname_l(entry,
1382 err2 = header_common(a, tar, entry, h);
1396 struct archive_entry *entry, const void *h, size_t *unconsumed)
1405 wname = wp = archive_entry_pathname_w(entry);
1420 name = p = archive_entry_pathname(entry);
1436 size = archive_entry_size(entry);
1442 * entry as-is, without consuming the body here.
1455 archive_entry_copy_mac_metadata(entry, data, (size_t)size);
1458 return (tar_read_header(a, tar, entry, unconsumed));
1462 * Parse a file header for a pax extended archive entry.
1466 struct archive_entry *entry, const void *h, size_t *unconsumed)
1473 err = tar_read_header(a, tar, entry, unconsumed);
1479 struct archive_entry *entry, const void *h, size_t *unconsumed)
1488 err = tar_read_header(a, tar, entry, unconsumed);
1493 * TODO: Parse global/default options into 'entry' struct here
1502 err2 = pax_header(a, tar, entry, &tar->pax_header);
1510 * Parse a file header for a Posix "ustar" archive entry. This also
1515 struct archive_entry *entry, const void *h)
1533 if (archive_entry_copy_pathname_l(entry, as->s, archive_strlen(as),
1541 r = header_common(a, tar, entry, h);
1548 if (archive_entry_copy_uname_l(entry,
1555 if (archive_entry_copy_gname_l(entry,
1564 archive_entry_set_rdevmajor(entry, (dev_t)
1566 archive_entry_set_rdevminor(entry, (dev_t)
1583 struct archive_entry *entry, struct archive_string *in_as)
1663 /* Identify this attribute and set it in the entry. */
1664 err2 = pax_attribute(a, tar, entry, key, value, value_length);
1696 if (archive_entry_copy_gname_l(entry, tar->entry_gname.s,
1702 archive_entry_copy_gname(entry, tar->entry_gname.s);
1706 if (archive_entry_copy_link_l(entry, tar->entry_linkpath.s,
1712 archive_entry_copy_link(entry, tar->entry_linkpath.s);
1730 if (archive_entry_copy_pathname_l(entry, as->s,
1736 archive_entry_copy_pathname(entry, as->s);
1740 if (archive_entry_copy_uname_l(entry, tar->entry_uname.s,
1746 archive_entry_copy_uname(entry, tar->entry_uname.s);
1753 pax_attribute_xattr(struct archive_entry *entry,
1777 archive_entry_xattr_add_entry(entry, name_decoded,
1786 pax_attribute_schily_xattr(struct archive_entry *entry,
1794 archive_entry_xattr_add_entry(entry, name, value, value_length);
1800 pax_attribute_rht_security_selinux(struct archive_entry *entry,
1803 archive_entry_xattr_add_entry(entry, "security.selinux",
1811 struct archive_entry *entry, const char *value, int type)
1840 r = archive_acl_from_text_l(archive_entry_acl(entry), value, type,
1870 struct archive_entry *entry, const char *key, const char *value, size_t value_length)
1922 archive_entry_set_size(entry, tar->realsize);
1954 archive_entry_set_size(entry, tar->realsize);
1963 archive_entry_set_xxxxxx(entry, value);
1967 archive_entry_set_birthtime(entry, s, n);
1971 archive_entry_set_symlink_type(entry,
1974 archive_entry_set_symlink_type(entry,
1979 pax_attribute_xattr(entry, key, value);
1985 pax_attribute_rht_security_selinux(entry, value,
1992 r = pax_attribute_acl(a, tar, entry, value,
1997 r = pax_attribute_acl(a, tar, entry, value,
2002 r = pax_attribute_acl(a, tar, entry, value,
2007 archive_entry_set_rdevmajor(entry,
2010 archive_entry_set_rdevminor(entry,
2013 archive_entry_copy_fflags_text(entry, value);
2015 archive_entry_set_dev(entry,
2018 archive_entry_set_ino(entry,
2021 archive_entry_set_nlink(entry, (unsigned)
2026 archive_entry_set_size(entry, tar->realsize);
2028 pax_attribute_schily_xattr(entry, key, value,
2032 r = solaris_sparse_parse(a, tar, entry, value);
2046 archive_entry_set_atime(entry, s, n);
2052 archive_entry_set_ctime(entry, s, n);
2054 /* TODO: Publish charset information in entry. */
2056 /* TODO: Publish comment in entry. */
2061 archive_entry_set_gid(entry,
2085 archive_entry_set_mtime(entry, s, n);
2100 /* "size" is the size of the data in the entry. */
2110 archive_entry_set_size(entry,
2119 archive_entry_set_uid(entry,
2186 struct archive_entry *entry, const void *h, size_t *unconsumed)
2199 err = header_common(a, tar, entry, h);
2205 if (archive_entry_copy_pathname_l(entry,
2216 if (archive_entry_copy_uname_l(entry,
2223 if (archive_entry_copy_gname_l(entry,
2232 archive_entry_set_rdevmajor(entry, (dev_t)
2234 archive_entry_set_rdevminor(entry, (dev_t)
2237 archive_entry_set_rdev(entry, 0);
2244 archive_entry_set_atime(entry, t, 0);
2247 archive_entry_set_ctime(entry, t, 0);
2252 archive_entry_set_size(entry, tar->realsize);
2527 /* Add a new sparse entry. */
2551 struct archive_entry *entry, const char *p)
2557 (void)entry; /* UNUSED */