]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
IFC
authorTim Kientzle <kientzle@gmail.com>
Sat, 21 Jun 2008 10:54:15 +0000 (06:54 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 21 Jun 2008 10:54:15 +0000 (06:54 -0400)
SVN-Revision: 134

20 files changed:
cpio/Makefile
cpio/cmdline.c
cpio/cpio.h
cpio/matching.c
cpio/test/main.c
cpio/test/test.h
libarchive/archive_read_support_compression_program.c
libarchive/archive_read_support_format_mtree.c
libarchive/archive_string.c
libarchive/archive_write_set_compression_program.c
libarchive/filter_fork.c
libarchive/test/main.c
libarchive/test/test.h
libarchive/test/test_read_extract.c
libarchive/test/test_write_disk.c
libarchive/test/test_write_disk_perms.c
libarchive/test/test_write_disk_secure.c
tar/subst.c
tar/test/main.c
tar/test/test.h

index 2e91ba3b066dd06c9b3b1713dc2c262145417ffe..aca09846709a891f8b0a5c6c8a874018ae859447 100644 (file)
@@ -1,4 +1,6 @@
-# $FreeBSD$
+# $FreeBSD: src/usr.bin/cpio/Makefile,v 1.4 2008/06/16 07:24:05 dougb Exp $
+
+.include <bsd.own.mk>
 
 PROG=  bsdcpio
 BSDCPIO_VERSION_STRING=1.0.0
@@ -9,7 +11,7 @@ CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\"
 CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
 LDADD+=        -larchive -lz -lbz2
 
-.if defined(WITH_BSDCPIO)
+.if ${MK_GNU_CPIO} != "yes"
 SYMLINKS=bsdcpio ${BINDIR}/cpio
 MLINKS= bsdcpio.1 cpio.1
 .endif
index 29183f1ca1ffa6b779dda01eef6c32c24eb0b1da..a602e39c179b3bec66dd7670bf5a92d9be0e4d09 100644 (file)
@@ -26,7 +26,7 @@
 
 
 #include "cpio_platform.h"
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: src/usr.bin/cpio/cmdline.c,v 1.3 2008/06/21 02:20:20 kientzle Exp $");
 
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
index 78086331bb0d23ebd164670a9399bd1cee6aac4f..3afd9520309a361893b3303e0abe724e7973aa2a 100644 (file)
@@ -22,7 +22,7 @@
  * (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$
+ * $FreeBSD: src/usr.bin/cpio/cpio.h,v 1.2 2008/06/21 02:20:20 kientzle Exp $
  */
 
 #ifndef CPIO_H_INCLUDED
index 8d1798fd50fffdbc6c0fb0db6aa4c6acf681949d..3e4ddc3bfdb522bb728974b0060fac7658ee6715 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #include "cpio_platform.h"
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: src/usr.bin/cpio/matching.c,v 1.2 2008/06/21 02:20:20 kientzle Exp $");
 
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
index 133f4a9893904e08c9dbbb93421f240ed1af7e39..e0f8c2e1175ab37fb19dde71c14f14d50c117cc6 100644 (file)
@@ -44,7 +44,7 @@
 #undef EXTRA_DUMP           /* How to dump extra data */
 /* How to generate extra version info. */
 #define        EXTRA_VERSION    (systemf("%s --version", testprog) ? "" : "")
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: src/usr.bin/cpio/test/main.c,v 1.2 2008/06/21 02:17:18 kientzle Exp $");
 
 /*
  * "list.h" is simply created by "grep DEFINE_TEST"; it has
index 39a98376f3306d0360a2c40295e14a59a3c94157..431d5d7c4d5d6ef9541c0adaf2738d073ccc01a0 100644 (file)
@@ -22,7 +22,7 @@
  * (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$
+ * $FreeBSD: src/usr.bin/cpio/test/test.h,v 1.2 2008/06/21 02:17:18 kientzle Exp $
  */
 
 /* Every test program should #include "test.h" as the first thing. */
index 0404482e1624787959402a20f7fc9eb7b560683e..4f25d6ed56159aa694702dfb847ab767702c2613 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #include "archive_platform.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/archive_read_support_compression_program.c,v 1.3 2008/05/26 17:00:22 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/archive_read_support_compression_program.c,v 1.4 2008/06/15 10:45:57 kientzle Exp $");
 
 /* This capability is only available on POSIX systems. */
 #if !defined(HAVE_PIPE) || !defined(HAVE_FCNTL) || \
index 81a14669abf9ba604f022d4ac1fe41fecb1667bc..6d5a84a50bfb7600751417efb3131deddd1dcffe 100644 (file)
@@ -25,7 +25,7 @@
  */
 
 #include "archive_platform.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/archive_read_support_format_mtree.c,v 1.7 2008/06/09 14:44:56 cperciva Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/archive_read_support_format_mtree.c,v 1.8 2008/06/15 10:43:59 kientzle Exp $");
 
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
index 5fd5f835cb177e954bfcadd3737f5a17754bc2fa..21fe5711516f5688ea7f1896152499fe541b4a30 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #include "archive_platform.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/archive_string.c,v 1.13 2008/06/15 05:12:47 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/archive_string.c,v 1.16 2008/06/15 11:28:56 kientzle Exp $");
 
 /*
  * Basic resizable string support, to simplify manipulating arbitrary-sized
@@ -206,7 +206,7 @@ static int
 my_wcstombs(struct archive_string *as, const wchar_t *w,
     int (*func)(char *, wchar_t))
 {
-       size_t n;
+       int n;
        char *p;
        char buff[256];
 
@@ -227,7 +227,7 @@ my_wcstombs(struct archive_string *as, const wchar_t *w,
                        p = buff;
                }
                n = (*func)(p, *w++);
-               if (n == (size_t)-1)
+               if (n == -1)
                        return (-1);
                p += n;
        }
@@ -275,7 +275,7 @@ __archive_strappend_w_mbs(struct archive_string *as, const wchar_t *w)
  * format.  So please don't replace this with a call to the
  * standard mbtowc() function!
  */
-static size_t
+static int
 my_mbtowc_utf8(wchar_t *pwc, const char *s, size_t n)
 {
         int ch;
@@ -285,7 +285,7 @@ my_mbtowc_utf8(wchar_t *pwc, const char *s, size_t n)
                 return (0);
        /* If length argument is zero, don't look at the first character. */
        if (n <= 0)
-               return ((size_t)-2);
+               return (-1);
 
         /*
         * Decode 1-4 bytes depending on the value of the first byte.
@@ -300,16 +300,16 @@ my_mbtowc_utf8(wchar_t *pwc, const char *s, size_t n)
         }
        if ((ch & 0xe0) == 0xc0) {
                if (n < 2)
-                       return ((size_t)-2);
-               if ((s[1] & 0xc0) != 0x80) return (size_t)-1;
+                       return (-1);
+               if ((s[1] & 0xc0) != 0x80) return (-1);
                 *pwc = ((ch & 0x1f) << 6) | (s[1] & 0x3f);
                return (2);
         }
        if ((ch & 0xf0) == 0xe0) {
                if (n < 3)
-                       return ((size_t)-2);
-               if ((s[1] & 0xc0) != 0x80) return (size_t)-1;
-               if ((s[2] & 0xc0) != 0x80) return (size_t)-1;
+                       return (-1);
+               if ((s[1] & 0xc0) != 0x80) return (-1);
+               if ((s[2] & 0xc0) != 0x80) return (-1);
                 *pwc = ((ch & 0x0f) << 12)
                    | ((s[1] & 0x3f) << 6)
                    | (s[2] & 0x3f);
@@ -317,10 +317,10 @@ my_mbtowc_utf8(wchar_t *pwc, const char *s, size_t n)
         }
        if ((ch & 0xf8) == 0xf0) {
                if (n < 4)
-                       return ((size_t)-2);
-               if ((s[1] & 0xc0) != 0x80) return (size_t)-1;
-               if ((s[2] & 0xc0) != 0x80) return (size_t)-1;
-               if ((s[3] & 0xc0) != 0x80) return (size_t)-1;
+                       return (-1);
+               if ((s[1] & 0xc0) != 0x80) return (-1);
+               if ((s[2] & 0xc0) != 0x80) return (-1);
+               if ((s[3] & 0xc0) != 0x80) return (-1);
                 *pwc = ((ch & 0x07) << 18)
                    | ((s[1] & 0x3f) << 12)
                    | ((s[2] & 0x3f) << 6)
@@ -328,7 +328,7 @@ my_mbtowc_utf8(wchar_t *pwc, const char *s, size_t n)
                return (4);
         }
        /* Invalid first byte. */
-       return ((size_t)-1);
+       return (-1);
 }
 
 /*
@@ -340,7 +340,7 @@ __archive_string_utf8_w(struct archive_string *as)
 {
        wchar_t *ws, *dest;
        const char *src;
-       size_t n;
+       int n;
        int err;
 
        ws = (wchar_t *)malloc((as->length + 1) * sizeof(wchar_t));
@@ -353,7 +353,7 @@ __archive_string_utf8_w(struct archive_string *as)
                n = my_mbtowc_utf8(dest, src, 8);
                if (n == 0)
                        break;
-               if (n == (size_t)-1 || n == (size_t)-2) {
+               if (n < 0) {
                        free(ws);
                        return (NULL);
                }
index e7d894b7120cb1eabc42044eaa08d6a5018bcb41..69c5d4286332b768fa83e2db508a7ac7dde1570f 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "archive_platform.h"
 
-__FBSDID("$FreeBSD: src/lib/libarchive/archive_write_set_compression_program.c,v 1.2 2008/05/26 17:00:23 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/archive_write_set_compression_program.c,v 1.3 2008/06/15 10:45:57 kientzle Exp $");
 
 /* This capability is only available on POSIX systems. */
 #if !defined(HAVE_PIPE) || !defined(HAVE_FCNTL) || \
index 721e4c2b787b197fe5416038bfeb3382617dc484..c746a186f52f734784835a51ff5a90dcea7a349f 100644 (file)
@@ -29,7 +29,7 @@
 #if defined(HAVE_PIPE) && defined(HAVE_FCNTL) && \
     (defined(HAVE_FORK) || defined(HAVE_VFORK))
 
-__FBSDID("$FreeBSD: src/lib/libarchive/filter_fork.c,v 1.3 2008/05/26 17:00:23 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/filter_fork.c,v 1.4 2008/06/15 10:45:57 kientzle Exp $");
 
 #if defined(HAVE_POLL)
 #  if defined(HAVE_POLL_H)
index 0b479e3ac1200b38b8a0129211ca251b9fd38fff..83d3147d9f82e5c93ef6b53fed3c2538622279a4 100644 (file)
@@ -43,7 +43,7 @@
 #define        ENVBASE "LIBARCHIVE" /* Prefix for environment variables. */
 #define        EXTRA_DUMP(x)   archive_error_string((struct archive *)(x))
 #define        EXTRA_VERSION   archive_version()
-__FBSDID("$FreeBSD: src/lib/libarchive/test/main.c,v 1.12 2008/05/26 17:00:24 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/test/main.c,v 1.13 2008/06/15 10:35:22 kientzle Exp $");
 
 /*
  * "list.h" is simply created by "grep DEFINE_TEST"; it has
index 30efce80bc7d7500bc09ebcd36fd7e0bfbbf5ba1..fbbf10a8c3d6b0db1f4915ec54649b90e9537d40 100644 (file)
@@ -22,7 +22,7 @@
  * (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/test/test.h,v 1.9 2008/03/12 05:12:23 kientzle Exp $
+ * $FreeBSD: src/lib/libarchive/test/test.h,v 1.10 2008/06/15 10:35:22 kientzle Exp $
  */
 
 /* Every test program should #include "test.h" as the first thing. */
index 36976b0bccf890fa479f9d4477d6adcec8928c3d..ec8483077c2fea4afc58376bbb71750ae0ae79ec 100644 (file)
@@ -23,7 +23,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "test.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/test/test_read_extract.c,v 1.3 2007/05/29 01:00:20 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/test/test_read_extract.c,v 1.4 2008/06/15 10:35:22 kientzle Exp $");
 
 #define BUFF_SIZE 1000000
 #define FILE_BUFF_SIZE 100000
index 0576c8ca528ba208a545f4fc94a839edc4084f74..fe44a4538e2bb66b703bdbbdcb68e5b321172099 100644 (file)
@@ -23,7 +23,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "test.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/test/test_write_disk.c,v 1.8 2008/01/23 05:47:08 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/test/test_write_disk.c,v 1.9 2008/06/15 10:35:22 kientzle Exp $");
 
 #if ARCHIVE_VERSION_STAMP >= 1009000
 
index e0ca9f4bab64bb323ceb267b57ca3ced830399cc..2e872a1e359bc08752b7ad5cc00d65b815717364 100644 (file)
@@ -23,7 +23,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "test.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/test/test_write_disk_perms.c,v 1.8 2008/01/01 22:28:04 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/test/test_write_disk_perms.c,v 1.9 2008/06/15 10:35:22 kientzle Exp $");
 
 #if ARCHIVE_VERSION_STAMP >= 1009000
 
index 2de3efbfa1b8bdc57187bdd5a1563d823a76d306..2bcc95762c3554b87904e56945e0658736676867 100644 (file)
@@ -23,7 +23,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "test.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/test/test_write_disk_secure.c,v 1.3 2007/07/06 15:43:11 kientzle Exp $");
+__FBSDID("$FreeBSD: src/lib/libarchive/test/test_write_disk_secure.c,v 1.4 2008/06/15 10:35:22 kientzle Exp $");
 
 #define UMASK 022
 
index 6757533dc98f565bb3e9383b00bd9d6f0d186491..1c32fb0752b5c1be417c4a6655d2fc0557fbd63c 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #include "bsdtar_platform.h"
-__FBSDID("$FreeBSD: src/usr.bin/tar/subst.c,v 1.3 2008/06/09 14:41:28 cperciva Exp $");
+__FBSDID("$FreeBSD: src/usr.bin/tar/subst.c,v 1.4 2008/06/15 10:08:16 kientzle Exp $");
 
 #if HAVE_REGEX_H
 #include "bsdtar.h"
index 23b0e1eff5386b09bb0c6ce8b0b8f3ce188fb12e..27bb48d40944fe0c7ba756fcd724ad9b52252b1a 100644 (file)
@@ -44,7 +44,7 @@
 #undef EXTRA_DUMP           /* How to dump extra data */
 /* How to generate extra version info. */
 #define        EXTRA_VERSION    (systemf("%s --version", testprog) ? "" : "")
-__FBSDID("$FreeBSD: src/usr.bin/tar/test/main.c,v 1.2 2008/05/26 17:10:10 kientzle Exp $");
+__FBSDID("$FreeBSD: src/usr.bin/tar/test/main.c,v 1.3 2008/06/15 10:07:54 kientzle Exp $");
 
 /*
  * "list.h" is simply created by "grep DEFINE_TEST"; it has
index 6feac22b6099b2de3e15af62777ad9d6f05902cc..30321e845d6fce230f4d91e16ef93c434e1b56b3 100644 (file)
@@ -22,7 +22,7 @@
  * (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/usr.bin/tar/test/test.h,v 1.2 2008/05/26 17:10:10 kientzle Exp $
+ * $FreeBSD: src/usr.bin/tar/test/test.h,v 1.3 2008/06/15 10:07:54 kientzle Exp $
  */
 
 /* Every test program should #include "test.h" as the first thing. */