Lines Matching defs:src_fd
70 static int unzip_extract(zip_header_t *zip_header, int src_fd, int dst_fd)
76 bb_copyfd_exact_size(src_fd, dst_fd, size);
80 /* err = */ inflate_unzip(&res, zip_header->formatted.cmpsize, src_fd, dst_fd);
104 int src_fd = -1, dst_fd = -1;
188 src_fd = STDIN_FILENO;
194 for (i = 0; (i < 3) && (src_fd == -1); i++) {
196 src_fd = open(src_fn, O_RDONLY);
198 if (src_fd == -1) {
217 xread(src_fd, &magic, 4);
225 xread(src_fd, zip_header.raw, 26);
243 xread(src_fd, dst_fn, zip_header.formatted.filename_len);
246 unzip_skip(src_fd, zip_header.formatted.extra_len);
332 if (unzip_extract(&zip_header, src_fd, dst_fd)) {
345 unzip_skip(src_fd, zip_header.formatted.cmpsize);
367 unzip_skip(src_fd, 12);