Lines Matching refs:entry

176 synthesize_ino_value(struct cpio *cpio, struct archive_entry *entry)
178 int64_t ino = archive_entry_ino64(entry);
192 if (archive_entry_nlink(entry) < 2) {
248 archive_write_odc_header(struct archive_write *a, struct archive_entry *entry)
253 if (archive_entry_filetype(entry) == 0 && archive_entry_hardlink(entry) == NULL) {
258 if (archive_entry_pathname_l(entry, &path, &len, get_sconv(a)) != 0
269 if (!archive_entry_size_is_set(entry) || archive_entry_size(entry) < 0) {
273 return write_header(a, entry);
277 write_header(struct archive_write *a, struct archive_entry *entry)
295 entry_main = __la_win_entry_in_posix_pathseparator(entry);
301 if (entry != entry_main)
302 entry = entry_main;
309 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
319 archive_entry_pathname(entry),
328 format_octal(archive_entry_dev(entry), h + c_dev_offset, c_dev_size);
330 ino = synthesize_ino_value(cpio, entry);
345 format_octal(archive_entry_mode(entry), h + c_mode_offset, c_mode_size);
346 format_octal(archive_entry_uid(entry), h + c_uid_offset, c_uid_size);
347 format_octal(archive_entry_gid(entry), h + c_gid_offset, c_gid_size);
348 format_octal(archive_entry_nlink(entry), h + c_nlink_offset, c_nlink_size);
349 if (archive_entry_filetype(entry) == AE_IFBLK
350 || archive_entry_filetype(entry) == AE_IFCHR)
351 format_octal(archive_entry_rdev(entry), h + c_rdev_offset, c_rdev_size);
354 format_octal(archive_entry_mtime(entry), h + c_mtime_offset, c_mtime_size);
358 if (archive_entry_filetype(entry) != AE_IFREG)
359 archive_entry_set_size(entry, 0);
361 /* Symlinks get the link written as the body of the entry. */
362 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
372 archive_entry_symlink(entry),
380 ret = format_octal(archive_entry_size(entry),
401 cpio->entry_bytes_remaining = archive_entry_size(entry);