Lines Matching refs:src_fd

68   int src_fd;  member
146 writeall(tar->src_fd, (void*) &tmp, sizeof(tmp)); in write_longname()
148 writeall(tar->src_fd, name, sz); in write_longname()
149 if (sz%512) writeall(tar->src_fd, buf, (512-(sz%512))); in write_longname()
252 writeall(tar->src_fd, (void*)&hdr, 512); in add_file()
260 copy_in_out(fd, tar->src_fd, st->st_size); in add_file()
261 if (st->st_size%512) writeall(tar->src_fd, buf, (512-(st->st_size%512))); in add_file()
271 if (!fstat(hdl->src_fd, &st) && st.st_dev == node->st.st_dev in add_to_tar()
300 dup2(tar_hdl->src_fd, 1); //write to tar fd in compress_stream()
304 dup2(pipefd[1], tar_hdl->src_fd); //write to pipe in compress_stream()
312 copy_in_out(tar->src_fd, 0, file_hdr->size); in extract_to_stdout()
352 copy_in_out(tar->src_fd, pipefd[1], file_hdr->size); in extract_to_command()
421 copy_in_out(tar->src_fd, dst_fd, file_hdr->size); in extract_to_disk()
513 dup2(tar_hdl->src_fd, 0); in extract_stream()
518 dup2(pipefd[0], tar_hdl->src_fd); //read from pipe in extract_stream()
526 if (readall(tar->src_fd, buf, size) != size) error_exit("short read"); in process_extended_hdr()
561 while ((x = lskip(tar->src_fd, sz))) { in tar_skip()
583 i = readall(tar_hdl->src_fd, &tar, 512); in unpack_tar()
600 && !lseek(tar_hdl->src_fd, -i, SEEK_CUR)) { in unpack_tar()
671 xread(tar_hdl->src_fd, longlink, file_hdr->size); in unpack_tar()
677 xread(tar_hdl->src_fd, longname, file_hdr->size); in unpack_tar()
772 tar_hdl->src_fd = fd; in tar_main()
795 writeall(tar_hdl->src_fd, toybuf, 1024); in tar_main()
800 close(tar_hdl->src_fd); in tar_main()