rename archival/libunarchive -> archival/libarchive; move bz/ into it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-11-03 02:38:31 +01:00
parent 5e9934028a
commit 833d4e7f84
74 changed files with 57 additions and 57 deletions

View File

@ -464,7 +464,7 @@ core-y := \
libs-y := \ libs-y := \
archival/ \ archival/ \
archival/libunarchive/ \ archival/libarchive/ \
console-tools/ \ console-tools/ \
coreutils/ \ coreutils/ \
coreutils/libcoreutils/ \ coreutils/libcoreutils/ \

View File

@ -4,7 +4,7 @@
# #
# Licensed under GPLv2, see file LICENSE in this source tree. # Licensed under GPLv2, see file LICENSE in this source tree.
libs-y += libunarchive/ libs-y += libarchive/
lib-y:= lib-y:=

View File

@ -18,7 +18,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#include "ar.h" #include "ar.h"
#if ENABLE_FEATURE_AR_CREATE #if ENABLE_FEATURE_AR_CREATE

View File

@ -5,7 +5,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
enum { enum {
OPT_STDOUT = 1 << 0, OPT_STDOUT = 1 << 0,

View File

@ -8,7 +8,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#define CONFIG_BZIP2_FEATURE_SPEED 1 #define CONFIG_BZIP2_FEATURE_SPEED 1
@ -33,14 +33,14 @@
/* Takes ~300 bytes, detects corruption caused by bad RAM etc */ /* Takes ~300 bytes, detects corruption caused by bad RAM etc */
#define BZ_LIGHT_DEBUG 0 #define BZ_LIGHT_DEBUG 0
#include "bz/bzlib.h" #include "libarchive/bz/bzlib.h"
#include "bz/bzlib_private.h" #include "libarchive/bz/bzlib_private.h"
#include "bz/blocksort.c" #include "libarchive/bz/blocksort.c"
#include "bz/bzlib.c" #include "libarchive/bz/bzlib.c"
#include "bz/compress.c" #include "libarchive/bz/compress.c"
#include "bz/huffman.c" #include "libarchive/bz/huffman.c"
/* No point in being shy and having very small buffer here. /* No point in being shy and having very small buffer here.
* bzip2 internal buffers are much bigger anyway, hundreds of kbytes. * bzip2 internal buffers are much bigger anyway, hundreds of kbytes.

View File

@ -12,7 +12,7 @@
* *
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* GNU cpio 2.9 --help (abridged): /* GNU cpio 2.9 --help (abridged):

View File

@ -30,7 +30,7 @@
#include "libbb.h" #include "libbb.h"
#include <fnmatch.h> #include <fnmatch.h>
#include "unarchive.h" #include "archive.h"
/* note: if you vary hash_prime sizes be aware, /* note: if you vary hash_prime sizes be aware,
* 1) tweaking these will have a big effect on how much memory this program uses. * 1) tweaking these will have a big effect on how much memory this program uses.

View File

@ -5,7 +5,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#define DPKG_DEB_OPT_CONTENTS 1 #define DPKG_DEB_OPT_CONTENTS 1
#define DPKG_DEB_OPT_CONTROL 2 #define DPKG_DEB_OPT_CONTROL 2

View File

@ -40,7 +40,7 @@ aa: 85.1% -- replaced with aa.gz
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* =========================================================================== /* ===========================================================================

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC data_align(archive_handle_t *archive_handle, unsigned boundary) void FAST_FUNC data_align(archive_handle_t *archive_handle, unsigned boundary)
{ {

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC data_extract_all(archive_handle_t *archive_handle) void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
{ {

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
enum { enum {
//TAR_FILETYPE, //TAR_FILETYPE,

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC data_extract_to_stdout(archive_handle_t *archive_handle) void FAST_FUNC data_extract_to_stdout(archive_handle_t *archive_handle)
{ {

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC data_skip(archive_handle_t *archive_handle) void FAST_FUNC data_skip(archive_handle_t *archive_handle)
{ {

View File

@ -40,7 +40,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* Constants for Huffman coding */ /* Constants for Huffman coding */
#define MAX_GROUPS 6 #define MAX_GROUPS 6

View File

@ -25,7 +25,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* Default input buffer size */ /* Default input buffer size */

View File

@ -9,7 +9,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#if ENABLE_FEATURE_LZMA_FAST #if ENABLE_FEATURE_LZMA_FAST
# define speed_inline ALWAYS_INLINE # define speed_inline ALWAYS_INLINE

View File

@ -10,7 +10,7 @@
* Licensed under GPLv2, see file LICENSE in this source tree. * Licensed under GPLv2, see file LICENSE in this source tree.
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#define XZ_FUNC FAST_FUNC #define XZ_FUNC FAST_FUNC
#define XZ_EXTERN static #define XZ_EXTERN static

View File

@ -35,7 +35,7 @@
#include <setjmp.h> #include <setjmp.h>
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
typedef struct huft_t { typedef struct huft_t {
unsigned char e; /* number of extra bits or operation */ unsigned char e; /* number of extra bits or operation */

View File

@ -6,7 +6,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* Accept any non-null name, its not really a filter at all */ /* Accept any non-null name, its not really a filter at all */
char FAST_FUNC filter_accept_all(archive_handle_t *archive_handle) char FAST_FUNC filter_accept_all(archive_handle_t *archive_handle)

View File

@ -6,7 +6,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* /*
* Accept names that are in the accept list, ignoring reject list. * Accept names that are in the accept list, ignoring reject list.

View File

@ -6,7 +6,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* Built and used only if ENABLE_DPKG || ENABLE_DPKG_DEB */ /* Built and used only if ENABLE_DPKG || ENABLE_DPKG_DEB */

View File

@ -6,7 +6,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* /*
* Accept names that are in the accept list and not in the reject list * Accept names that are in the accept list and not in the reject list

View File

@ -7,7 +7,7 @@
#include <fnmatch.h> #include <fnmatch.h>
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* Find a string in a shell pattern list */ /* Find a string in a shell pattern list */
const llist_t* FAST_FUNC find_list_entry(const llist_t *list, const char *filename) const llist_t* FAST_FUNC find_list_entry(const llist_t *list, const char *filename)

View File

@ -5,7 +5,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#include "ar.h" #include "ar.h"
static unsigned read_num(const char *str, int base) static unsigned read_num(const char *str, int base)

View File

@ -5,7 +5,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
typedef struct hardlinks_t { typedef struct hardlinks_t {
struct hardlinks_t *next; struct hardlinks_t *next;

View File

@ -12,7 +12,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
typedef uint32_t aliased_uint32_t FIX_ALIASING; typedef uint32_t aliased_uint32_t FIX_ALIASING;
typedef off_t aliased_off_t FIX_ALIASING; typedef off_t aliased_off_t FIX_ALIASING;

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
char FAST_FUNC get_header_tar_bz2(archive_handle_t *archive_handle) char FAST_FUNC get_header_tar_bz2(archive_handle_t *archive_handle)
{ {

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
char FAST_FUNC get_header_tar_gz(archive_handle_t *archive_handle) char FAST_FUNC get_header_tar_gz(archive_handle_t *archive_handle)
{ {

View File

@ -7,7 +7,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
char FAST_FUNC get_header_tar_lzma(archive_handle_t *archive_handle) char FAST_FUNC get_header_tar_lzma(archive_handle_t *archive_handle)
{ {

View File

@ -3,7 +3,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC header_list(const file_header_t *file_header) void FAST_FUNC header_list(const file_header_t *file_header)
{ {

View File

@ -3,7 +3,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC header_skip(const file_header_t *file_header UNUSED_PARAM) void FAST_FUNC header_skip(const file_header_t *file_header UNUSED_PARAM)
{ {

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC header_verbose_list(const file_header_t *file_header) void FAST_FUNC header_verbose_list(const file_header_t *file_header)
{ {

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
archive_handle_t* FAST_FUNC init_handle(void) archive_handle_t* FAST_FUNC init_handle(void)
{ {

View File

@ -4,12 +4,12 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* transformer(), more than meets the eye */ /* transformer(), more than meets the eye */
/* /*
* On MMU machine, the transform_prog is removed by macro magic * On MMU machine, the transform_prog is removed by macro magic
* in include/unarchive.h. On NOMMU, transformer is removed. * in include/archive.h. On NOMMU, transformer is removed.
*/ */
void FAST_FUNC open_transformer(int fd, void FAST_FUNC open_transformer(int fd,
IF_DESKTOP(long long) int FAST_FUNC (*transformer)(int src_fd, int dst_fd), IF_DESKTOP(long long) int FAST_FUNC (*transformer)(int src_fd, int dst_fd),

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
void FAST_FUNC seek_by_jump(int fd, off_t amount) void FAST_FUNC seek_by_jump(int fd, off_t amount)
{ {

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* If we are reading through a pipe, or from stdin then we can't lseek, /* If we are reading through a pipe, or from stdin then we can't lseek,
* we must read and discard the data to skip over it. * we must read and discard the data to skip over it.

View File

@ -4,7 +4,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#include "ar.h" #include "ar.h"
void FAST_FUNC unpack_ar_archive(archive_handle_t *ar_archive) void FAST_FUNC unpack_ar_archive(archive_handle_t *ar_archive)

View File

@ -26,7 +26,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#include "liblzo_interface.h" #include "liblzo_interface.h"
/* lzo-2.03/src/lzo_ptr.h */ /* lzo-2.03/src/lzo_ptr.h */

View File

@ -8,7 +8,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#include "rpm.h" #include "rpm.h"
#define RPM_CHAR_TYPE 1 #define RPM_CHAR_TYPE 1

View File

@ -7,7 +7,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
#include "rpm.h" #include "rpm.h"
enum { rpm_fd = STDIN_FILENO }; enum { rpm_fd = STDIN_FILENO };

View File

@ -25,7 +25,7 @@
#include <fnmatch.h> #include <fnmatch.h>
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
/* FIXME: Stop using this non-standard feature */ /* FIXME: Stop using this non-standard feature */
#ifndef FNM_LEADING_DIR #ifndef FNM_LEADING_DIR
# define FNM_LEADING_DIR 0 # define FNM_LEADING_DIR 0

View File

@ -20,7 +20,7 @@
*/ */
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
enum { enum {
#if BB_BIG_ENDIAN #if BB_BIG_ENDIAN

View File

@ -59,7 +59,7 @@ wait
Example 1 Example 1
One example how to reduce global data usage is in One example how to reduce global data usage is in
archival/libunarchive/decompress_unzip.c: archival/libarchive/decompress_unzip.c:
/* This is somewhat complex-looking arrangement, but it allows /* This is somewhat complex-looking arrangement, but it allows
* to place decompressor state either in bss or in * to place decompressor state either in bss or in

View File

@ -66,7 +66,7 @@ static const char usage_messages[] ALIGN1 = UNPACKED_USAGE;
#if ENABLE_FEATURE_COMPRESS_USAGE #if ENABLE_FEATURE_COMPRESS_USAGE
static const char packed_usage[] ALIGN1 = { PACKED_USAGE }; static const char packed_usage[] ALIGN1 = { PACKED_USAGE };
# include "unarchive.h" # include "archive.h"
static const char *unpack_usage_messages(void) static const char *unpack_usage_messages(void)
{ {
char *outbuf = NULL; char *outbuf = NULL;

View File

@ -15,7 +15,7 @@
) )
#if ZIPPED #if ZIPPED
# include "unarchive.h" # include "archive.h"
#endif #endif

View File

@ -4,7 +4,7 @@
#include "libbb.h" #include "libbb.h"
#include "bbconfigopts.h" #include "bbconfigopts.h"
#if ENABLE_FEATURE_COMPRESS_BBCONFIG #if ENABLE_FEATURE_COMPRESS_BBCONFIG
# include "unarchive.h" # include "archive.h"
# include "bbconfigopts_bz2.h" # include "bbconfigopts_bz2.h"
#endif #endif

View File

@ -20,7 +20,7 @@
//config: a memory usage statistic tool. //config: a memory usage statistic tool.
#include "libbb.h" #include "libbb.h"
#include "unarchive.h" #include "archive.h"
struct fileblock { struct fileblock {
struct fileblock *next; struct fileblock *next;

View File

@ -85,8 +85,8 @@ lib-y:=
include archival/Kbuild include archival/Kbuild
lib-all-y += $(patsubst %,archival/%,$(sort $(lib-y))) lib-all-y += $(patsubst %,archival/%,$(sort $(lib-y)))
lib-y:= lib-y:=
include archival/libunarchive/Kbuild include archival/libarchive/Kbuild
lib-all-y += $(patsubst %,archival/libunarchive/%,$(sort $(lib-y))) lib-all-y += $(patsubst %,archival/libarchive/%,$(sort $(lib-y)))
lib-y:= lib-y:=
include applets/Kbuild include applets/Kbuild
lib-all-y += $(patsubst %,applets/%,$(sort $(lib-y))) lib-all-y += $(patsubst %,applets/%,$(sort $(lib-y)))