Lines Matching refs:entry

279 synthesize_ino_value(struct cpio *cpio, struct archive_entry *entry)
281 int64_t ino = archive_entry_ino64(entry);
295 if (archive_entry_nlink(entry) < 2) {
351 archive_write_binary_header(struct archive_write *a, struct archive_entry *entry)
356 if (archive_entry_filetype(entry) == 0 && archive_entry_hardlink(entry) == NULL) {
361 if (archive_entry_pathname_l(entry, &path, &len, get_sconv(a)) != 0
372 if (!archive_entry_size_is_set(entry) || archive_entry_size(entry) < 0) {
376 return write_header(a, entry);
380 write_header(struct archive_write *a, struct archive_entry *entry)
398 entry_main = __la_win_entry_in_posix_pathseparator(entry);
404 if (entry != entry_main)
405 entry = entry_main;
412 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
422 archive_entry_pathname(entry),
430 h.h_dev = swap16(archive_entry_dev(entry));
432 ino = synthesize_ino_value(cpio, entry);
446 h.h_mode = archive_entry_mode(entry);
461 /* and allows v7 cpio to read the entry without confusion */
465 h.h_uid = swap16(archive_entry_uid(entry));
466 h.h_gid = swap16(archive_entry_gid(entry));
467 h.h_nlink = swap16(archive_entry_nlink(entry));
469 if (archive_entry_filetype(entry) == AE_IFBLK
470 || archive_entry_filetype(entry) == AE_IFCHR)
471 h.h_majmin = swap16(archive_entry_rdev(entry));
475 h.h_mtime = swap32(archive_entry_mtime(entry));
479 if (archive_entry_filetype(entry) != AE_IFREG)
480 archive_entry_set_size(entry, 0);
482 /* Symlinks get the link written as the body of the entry. */
483 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
493 archive_entry_symlink(entry),
508 (archive_entry_size(entry) > 256*256*256-1)) {
513 } else if (archive_entry_size(entry) > INT32_MAX) {
519 h.h_filesize = swap32(archive_entry_size(entry)); /* file */
536 cpio->entry_bytes_remaining = archive_entry_size(entry);