ifupdown: save some 100+ bytes of code in addstr()
[oweals/busybox.git] / archival / libunarchive / get_header_tar_bz2.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
4  */
5
6 #include <sys/types.h>
7 #include <sys/wait.h>
8 #include <signal.h>
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <unistd.h>
13 #include "libbb.h"
14 #include "unarchive.h"
15
16 char get_header_tar_bz2(archive_handle_t *archive_handle)
17 {
18         /* Can't lseek over pipes */
19         archive_handle->seek = seek_by_read;
20
21         archive_handle->src_fd = open_transformer(archive_handle->src_fd, uncompressStream);
22         archive_handle->offset = 0;
23         while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/;
24
25         /* Can only do one file at a time */
26         return EXIT_FAILURE;
27 }