Annotation of /trunk/mkinitrd-magellan/busybox/archival/libunarchive/get_header_tar_lzma.c
Parent Directory | Revision Log
Revision 816 -
(hide annotations)
(download)
Fri Apr 24 18:33:46 2009 UTC (15 years ago) by niro
File MIME type: text/plain
File size: 620 byte(s)
Fri Apr 24 18:33:46 2009 UTC (15 years ago) by niro
File MIME type: text/plain
File size: 620 byte(s)
-updated to busybox-1.13.4
1 | niro | 532 | /* vi: set sw=4 ts=4: */ |
2 | /* | ||
3 | * Small lzma deflate implementation. | ||
4 | * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org> | ||
5 | * | ||
6 | * Licensed under GPL v2, see file LICENSE in this tarball for details. | ||
7 | */ | ||
8 | |||
9 | niro | 816 | #include "libbb.h" |
10 | niro | 532 | #include "unarchive.h" |
11 | |||
12 | niro | 816 | char FAST_FUNC get_header_tar_lzma(archive_handle_t *archive_handle) |
13 | niro | 532 | { |
14 | /* Can't lseek over pipes */ | ||
15 | archive_handle->seek = seek_by_read; | ||
16 | |||
17 | niro | 816 | open_transformer(archive_handle->src_fd, unpack_lzma_stream, "unlzma"); |
18 | niro | 532 | archive_handle->offset = 0; |
19 | niro | 816 | while (get_header_tar(archive_handle) == EXIT_SUCCESS) |
20 | continue; | ||
21 | niro | 532 | |
22 | /* Can only do one file at a time */ | ||
23 | return EXIT_FAILURE; | ||
24 | } |