Lines Matching defs:archive_handle
16 char get_header_cpio(archive_handle_t *archive_handle)
22 file_header_t *file_header = archive_handle->file_header;
45 if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) {
46 archive_handle->action_data(archive_handle);
47 archive_handle->action_header(archive_handle->file_header);
71 data_align(archive_handle, 4);
73 if (archive_xread_all_eof(archive_handle, (unsigned char*)cpio_header, 110) == 0) {
76 archive_handle->offset += 110;
97 xread(archive_handle->src_fd, file_header->name, namesize);
98 archive_handle->offset += namesize;
101 data_align(archive_handle, 4);
105 printf("%d blocks\n", (int) (archive_handle->offset % 512 ?
106 archive_handle->offset / 512 + 1 :
107 archive_handle->offset / 512
127 xread(archive_handle->src_fd, file_header->link_target, file_header->size);
128 archive_handle->offset += file_header->size;
149 if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) {
150 archive_handle->action_data(archive_handle);
151 archive_handle->action_header(archive_handle->file_header);
153 data_skip(archive_handle);
156 archive_handle->offset += file_header->size;