pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/libarchive/files Resolve conflicts.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/199a0396e58f
branches:  trunk
changeset: 542706:199a0396e58f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun May 25 19:45:02 2008 +0000

description:
Resolve conflicts.

diffstat:

 archivers/libarchive/files/libarchive/archive.h.in                  |  578 ----------
 archivers/libarchive/files/libarchive/archive_entry_link_resolver.c |   38 +-
 archivers/libarchive/files/tar/test/old/config.sh                   |   75 -
 archivers/libarchive/files/tar/test/old/test-acl.sh                 |   76 -
 archivers/libarchive/files/tar/test/old/test-basic.sh               |  432 -------
 archivers/libarchive/files/tar/test/old/test-deep-dir.sh            |   60 -
 archivers/libarchive/files/tar/test/old/test-flags.sh               |   74 -
 archivers/libarchive/files/tar/test/old/test-nodump.sh              |   52 -
 archivers/libarchive/files/tar/test/old/test-overwrite.sh           |   51 -
 archivers/libarchive/files/tar/test/old/test-utf8.sh                |   40 -
 10 files changed, 29 insertions(+), 1447 deletions(-)

diffs (truncated from 1584 to 300 lines):

diff -r 2300d3379a79 -r 199a0396e58f archivers/libarchive/files/libarchive/archive.h.in
--- a/archivers/libarchive/files/libarchive/archive.h.in        Sun May 25 19:41:18 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,578 +0,0 @@
-/*-
- * Copyright (c) 2003-2007 Tim Kientzle
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD: src/lib/libarchive/archive.h.in,v 1.49 2008/03/14 22:19:50 kientzle Exp $
- */
-
-#ifndef ARCHIVE_H_INCLUDED
-#define        ARCHIVE_H_INCLUDED
-
-#include <sys/types.h>  /* Linux requires this for off_t */
-/* TODO: Conditionalize this include on platforms that don't support it. */
-#include <inttypes.h> /* int64_t, etc. */
-#include <stdio.h> /* For FILE * */
-
-/* Get appropriate definitions of standard POSIX-style types. */
-/* These should match the types used in 'struct stat' */
-#ifdef _WIN32
-#define        __LA_SSIZE_T    long
-#define        __LA_UID_T      unsigned int
-#define        __LA_GID_T      unsigned int
-#else
-#include <unistd.h>  /* ssize_t, uid_t, and gid_t */
-#define        __LA_SSIZE_T    ssize_t
-#define        __LA_UID_T      uid_t
-#define        __LA_GID_T      gid_t
-#endif
-
-/*
- * On Windows, define LIBARCHIVE_STATIC if you're building or using a
- * .lib.  The default here assumes you're building a DLL.  Only
- * libarchive source should ever define __LIBARCHIVE_BUILD.
- */
-#if ((defined __WIN32__) || (defined _WIN32)) && (!defined LIBARCHIVE_STATIC)
-# ifdef __LIBARCHIVE_BUILD
-#  ifdef __GNUC__
-#   define __LA_DECL   __attribute__((dllexport)) extern
-#  else
-#   define __LA_DECL   __declspec(dllexport)
-#  endif
-# else
-#  ifdef __GNUC__
-#   define __LA_DECL   __attribute__((dllimport)) extern
-#  else
-#   define __LA_DECL   __declspec(dllimport)
-#  endif
-# endif
-#else
-/* Static libraries or non-Windows needs no special declaration. */
-# define __LA_DECL
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * The version number is provided as both a macro and a function.
- * The macro identifies the installed header; the function identifies
- * the library version (which may not be the same if you're using a
- * dynamically-linked version of the library).  Of course, if the
- * header and library are very different, you should expect some
- * strangeness.  Don't do that.
- */
-
-/*
- * The version number is expressed as a single integer that makes it
- * easy to compare versions at build time: for version a.b.c, the
- * version number is printf("%d%03d%03d",a,b,c).  For example, if you
- * know your application requires version 2.12.108 or later, you can
- * assert that ARCHIVE_VERSION >= 2012108.
- *
- * This single-number format was introduced with libarchive 1.9.0 in
- * the libarchive 1.x family and libarchive 2.2.4 in the libarchive
- * 2.x family.  The following may be useful if you really want to do
- * feature detection for earlier libarchive versions (which defined
- * ARCHIVE_API_VERSION and ARCHIVE_API_FEATURE instead):
- *
- * #ifndef ARCHIVE_VERSION_NUMBER
- * #define ARCHIVE_VERSION_NUMBER      \
- *             (ARCHIVE_API_VERSION * 1000000 + ARCHIVE_API_FEATURE * 1000)
- * #endif
- */
-#define ARCHIVE_VERSION_NUMBER         @LIBARCHIVE_VERSION_NUMBER@
-__LA_DECL int          archive_version_number(void);
-
-/*
- * Textual name/version of the library, useful for version displays.
- */
-#define        ARCHIVE_VERSION_STRING  "libarchive @LIBARCHIVE_VERSION_STRING@"
-__LA_DECL const char * archive_version_string(void);
-
-#if ARCHIVE_VERSION_NUMBER < 3000000
-/*
- * Deprecated; these are older names that will be removed in favor of
- * the simpler definitions above.
- */
-#define        ARCHIVE_VERSION_STAMP   ARCHIVE_VERSION_NUMBER
-__LA_DECL int          archive_version_stamp(void);
-#define        ARCHIVE_LIBRARY_VERSION ARCHIVE_VERSION_STRING
-__LA_DECL const char * archive_version(void);
-#define        ARCHIVE_API_VERSION     (ARCHIVE_VERSION_NUMBER / 1000000)
-__LA_DECL int          archive_api_version(void);
-#define        ARCHIVE_API_FEATURE     ((ARCHIVE_VERSION_NUMBER / 1000) % 1000)
-__LA_DECL int          archive_api_feature(void);
-#endif
-
-#if ARCHIVE_VERSION_NUMBER < 3000000
-/* This should never have been here in the first place. */
-/* Legacy of old tar assumptions, will be removed in libarchive 3.0. */
-#define        ARCHIVE_BYTES_PER_RECORD          512
-#define        ARCHIVE_DEFAULT_BYTES_PER_BLOCK 10240
-#endif
-
-/* Declare our basic types. */
-struct archive;
-struct archive_entry;
-
-/*
- * Error codes: Use archive_errno() and archive_error_string()
- * to retrieve details.  Unless specified otherwise, all functions
- * that return 'int' use these codes.
- */
-#define        ARCHIVE_EOF       1     /* Found end of archive. */
-#define        ARCHIVE_OK        0     /* Operation was successful. */
-#define        ARCHIVE_RETRY   (-10)   /* Retry might succeed. */
-#define        ARCHIVE_WARN    (-20)   /* Partial success. */
-/* For example, if write_header "fails", then you can't push data. */
-#define        ARCHIVE_FAILED  (-25)   /* Current operation cannot complete. */
-/* But if write_header is "fatal," then this archive is dead and useless. */
-#define        ARCHIVE_FATAL   (-30)   /* No more operations are possible. */
-
-/*
- * As far as possible, archive_errno returns standard platform errno codes.
- * Of course, the details vary by platform, so the actual definitions
- * here are stored in "archive_platform.h".  The symbols are listed here
- * for reference; as a rule, clients should not need to know the exact
- * platform-dependent error code.
- */
-/* Unrecognized or invalid file format. */
-/* #define     ARCHIVE_ERRNO_FILE_FORMAT */
-/* Illegal usage of the library. */
-/* #define     ARCHIVE_ERRNO_PROGRAMMER_ERROR */
-/* Unknown or unclassified error. */
-/* #define     ARCHIVE_ERRNO_MISC */
-
-/*
- * Callbacks are invoked to automatically read/skip/write/open/close the
- * archive. You can provide your own for complex tasks (like breaking
- * archives across multiple tapes) or use standard ones built into the
- * library.
- */
-
-/* Returns pointer and size of next block of data from archive. */
-typedef __LA_SSIZE_T   archive_read_callback(struct archive *, void *_client_data,
-                   const void **_buffer);
-/* Skips at most request bytes from archive and returns the skipped amount */
-#if ARCHIVE_VERSION_NUMBER < 2000000
-typedef __LA_SSIZE_T   archive_skip_callback(struct archive *, void *_client_data,
-                   size_t request);
-#else
-typedef off_t  archive_skip_callback(struct archive *, void *_client_data,
-                   off_t request);
-#endif
-/* Returns size actually written, zero on EOF, -1 on error. */
-typedef __LA_SSIZE_T   archive_write_callback(struct archive *, void *_client_data,
-                   const void *_buffer, size_t _length);
-typedef int    archive_open_callback(struct archive *, void *_client_data);
-typedef int    archive_close_callback(struct archive *, void *_client_data);
-
-/*
- * Codes for archive_compression.
- */
-#define        ARCHIVE_COMPRESSION_NONE        0
-#define        ARCHIVE_COMPRESSION_GZIP        1
-#define        ARCHIVE_COMPRESSION_BZIP2       2
-#define        ARCHIVE_COMPRESSION_COMPRESS    3
-#define        ARCHIVE_COMPRESSION_PROGRAM     4
-
-/*
- * Codes returned by archive_format.
- *
- * Top 16 bits identifies the format family (e.g., "tar"); lower
- * 16 bits indicate the variant.  This is updated by read_next_header.
- * Note that the lower 16 bits will often vary from entry to entry.
- * In some cases, this variation occurs as libarchive learns more about
- * the archive (for example, later entries might utilize extensions that
- * weren't necessary earlier in the archive; in this case, libarchive
- * will change the format code to indicate the extended format that
- * was used).  In other cases, it's because different tools have
- * modified the archive and so different parts of the archive
- * actually have slightly different formts.  (Both tar and cpio store
- * format codes in each entry, so it is quite possible for each
- * entry to be in a different format.)
- */
-#define        ARCHIVE_FORMAT_BASE_MASK                0xff0000
-#define        ARCHIVE_FORMAT_CPIO                     0x10000
-#define        ARCHIVE_FORMAT_CPIO_POSIX               (ARCHIVE_FORMAT_CPIO | 1)
-#define        ARCHIVE_FORMAT_CPIO_BIN_LE              (ARCHIVE_FORMAT_CPIO | 2)
-#define        ARCHIVE_FORMAT_CPIO_BIN_BE              (ARCHIVE_FORMAT_CPIO | 3)
-#define        ARCHIVE_FORMAT_CPIO_SVR4_NOCRC          (ARCHIVE_FORMAT_CPIO | 4)
-#define        ARCHIVE_FORMAT_CPIO_SVR4_CRC            (ARCHIVE_FORMAT_CPIO | 5)
-#define        ARCHIVE_FORMAT_SHAR                     0x20000
-#define        ARCHIVE_FORMAT_SHAR_BASE                (ARCHIVE_FORMAT_SHAR | 1)
-#define        ARCHIVE_FORMAT_SHAR_DUMP                (ARCHIVE_FORMAT_SHAR | 2)
-#define        ARCHIVE_FORMAT_TAR                      0x30000
-#define        ARCHIVE_FORMAT_TAR_USTAR                (ARCHIVE_FORMAT_TAR | 1)
-#define        ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE      (ARCHIVE_FORMAT_TAR | 2)
-#define        ARCHIVE_FORMAT_TAR_PAX_RESTRICTED       (ARCHIVE_FORMAT_TAR | 3)
-#define        ARCHIVE_FORMAT_TAR_GNUTAR               (ARCHIVE_FORMAT_TAR | 4)
-#define        ARCHIVE_FORMAT_ISO9660                  0x40000
-#define        ARCHIVE_FORMAT_ISO9660_ROCKRIDGE        (ARCHIVE_FORMAT_ISO9660 | 1)
-#define        ARCHIVE_FORMAT_ZIP                      0x50000
-#define        ARCHIVE_FORMAT_EMPTY                    0x60000
-#define        ARCHIVE_FORMAT_AR                       0x70000
-#define        ARCHIVE_FORMAT_AR_GNU                   (ARCHIVE_FORMAT_AR | 1)
-#define        ARCHIVE_FORMAT_AR_BSD                   (ARCHIVE_FORMAT_AR | 2)
-#define        ARCHIVE_FORMAT_MTREE                    0x80000
-#define        ARCHIVE_FORMAT_MTREE_V1                 (ARCHIVE_FORMAT_MTREE | 1)
-#define        ARCHIVE_FORMAT_MTREE_V2                 (ARCHIVE_FORMAT_MTREE | 2)
-
-/*-
- * Basic outline for reading an archive:
- *   1) Ask archive_read_new for an archive reader object.
- *   2) Update any global properties as appropriate.
- *      In particular, you'll certainly want to call appropriate
- *      archive_read_support_XXX functions.
- *   3) Call archive_read_open_XXX to open the archive
- *   4) Repeatedly call archive_read_next_header to get information about
- *      successive archive entries.  Call archive_read_data to extract
- *      data for entries of interest.
- *   5) Call archive_read_finish to end processing.
- */
-__LA_DECL struct archive       *archive_read_new(void);
-
-/*
- * The archive_read_support_XXX calls enable auto-detect for this
- * archive handle.  They also link in the necessary support code.
- * For example, if you don't want bzlib linked in, don't invoke
- * support_compression_bzip2().  The "all" functions provide the
- * obvious shorthand.
- */
-__LA_DECL int           archive_read_support_compression_all(struct archive *);
-__LA_DECL int           archive_read_support_compression_bzip2(struct archive *);
-__LA_DECL int           archive_read_support_compression_compress(struct archive *);
-__LA_DECL int           archive_read_support_compression_gzip(struct archive *);
-__LA_DECL int           archive_read_support_compression_none(struct archive *);
-__LA_DECL int           archive_read_support_compression_program(struct archive *,
-                    const char *command);
-
-__LA_DECL int           archive_read_support_format_all(struct archive *);
-__LA_DECL int           archive_read_support_format_ar(struct archive *);
-__LA_DECL int           archive_read_support_format_cpio(struct archive *);
-__LA_DECL int           archive_read_support_format_empty(struct archive *);
-__LA_DECL int           archive_read_support_format_gnutar(struct archive *);
-__LA_DECL int           archive_read_support_format_iso9660(struct archive *);
-__LA_DECL int           archive_read_support_format_mtree(struct archive *);
-__LA_DECL int           archive_read_support_format_tar(struct archive *);
-__LA_DECL int           archive_read_support_format_zip(struct archive *);
-
-
-/* Open the archive using callbacks for archive I/O. */
-__LA_DECL int           archive_read_open(struct archive *, void *_client_data,
-                    archive_open_callback *, archive_read_callback *,
-                    archive_close_callback *);
-__LA_DECL int           archive_read_open2(struct archive *, void *_client_data,
-                    archive_open_callback *, archive_read_callback *,
-                    archive_skip_callback *, archive_close_callback *);
-
-/*
- * A variety of shortcuts that invoke archive_read_open() with
- * canned callbacks suitable for common situations.  The ones that
- * accept a block size handle tape blocking correctly.
- */
-/* Use this if you know the filename.  Note: NULL indicates stdin. */



Home | Main Index | Thread Index | Old Index