From owner-svn-src-user@freebsd.org Tue Jul 12 09:32:54 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 826B6B90299 for ; Tue, 12 Jul 2016 09:32:54 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A9531229; Tue, 12 Jul 2016 09:32:54 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6C9WrwX051875; Tue, 12 Jul 2016 09:32:53 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6C9WrBv051874; Tue, 12 Jul 2016 09:32:53 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201607120932.u6C9WrBv051874@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Tue, 12 Jul 2016 09:32:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r302639 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 09:32:54 -0000 Author: pho Date: Tue Jul 12 09:32:53 2016 New Revision: 302639 URL: https://svnweb.freebsd.org/changeset/base/302639 Log: Added a regression test. Sponsored by: EMC / Isilon Storage Division Added: user/pho/stress2/misc/select.sh (contents, props changed) Added: user/pho/stress2/misc/select.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/pho/stress2/misc/select.sh Tue Jul 12 09:32:53 2016 (r302639) @@ -0,0 +1,161 @@ +#!/bin/sh + +# +# Copyright (c) 2016 EMC Corp. +# 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 AND CONTRIBUTORS ``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 OR CONTRIBUTORS 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$ +# + +# The combination of ualarm() firing before and after the select(2) timeout +# triggers select() to return EINTR a number of times. Not seen on Lunux or +# OS X. Problem only seen on i386. + +# Test scenario suggestion by kib@ + +# "FAIL n = 2389" seen on r302369, no debug build. +# Fixed by: r302573. + +. ../default.cfg + +dir=/tmp +odir=`pwd` +cd $dir +sed '1,/^EOF/d' < $odir/$0 > $dir/select.c +mycc -o select -Wall -Wextra -O0 -g select.c || exit 1 +rm -f select.c +cd $odir + +/tmp/select +s=$? + +rm -f /tmp/select +exit $s +EOF +#include +#include +#include +#include + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +volatile u_int *share; +volatile int alarms; +int lines; + +#define N 2000 /* also seen fail with N = 20.000 */ +#define LINES 128000 +#define PARALLEL 16 /* Fails seen with 1 - 16 */ +#define RUNTIME (10 * 60) +#define SYNC 0 + +void +handler(int i __unused) { + alarms++; +} + +void +test(void) +{ + struct timeval tv; + int i, n, r, s; + + atomic_add_int(&share[SYNC], 1); + while (share[SYNC] != PARALLEL) + ; + + signal(SIGALRM, handler); + s = 0; + for (i = 0; i < lines; i++) { + if (arc4random() % 100 < 50) + ualarm(N / 2, 0); + else + ualarm(N * 2, 0); + tv.tv_sec = 0; + tv.tv_usec = N; + n = 0; + do { + r = select(1, NULL, NULL, NULL, &tv); + n++; + } while (r == -1 && errno == EINTR); + if (r == -1) + err(1, "select"); + ualarm(0, 0); + if (n > 2) { + fprintf(stderr, "FAIL n = %d, tv = %ld.%06ld\n", + n, (long)tv.tv_sec, tv.tv_usec); + s = 1; + break; + } + + } + + _exit(s); +} + +int +main(void) +{ + size_t len; + time_t start; + int e, i, j, pids[PARALLEL], status; + + lines = LINES / PARALLEL; + if (lines == 0) + lines = 1; + e = 0; + len = PAGE_SIZE; + if ((share = mmap(NULL, len, PROT_READ | PROT_WRITE, + MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED) + err(1, "mmap"); + + start = time(NULL); + while ((time(NULL) - start) < RUNTIME && e == 0) { + share[SYNC] = 0; + for (i = 0; i < PARALLEL; i++) { + if ((pids[i] = fork()) == 0) + test(); + } + for (i = 0; i < PARALLEL; i++) { + waitpid(pids[i], &status, 0); + e += status == 0 ? 0 : 1; + if (status != 0) { + for (j = i + 1; j < PARALLEL; j++) + kill(pids[j], SIGINT); + } + } + } + + return (e); +} From owner-svn-src-user@freebsd.org Tue Jul 12 19:27:06 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE281B93201 for ; Tue, 12 Jul 2016 19:27:06 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B530314C3; Tue, 12 Jul 2016 19:27:06 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6CJR5ew071941; Tue, 12 Jul 2016 19:27:05 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6CJR5uW071940; Tue, 12 Jul 2016 19:27:05 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201607121927.u6CJR5uW071940@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Tue, 12 Jul 2016 19:27:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r302672 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 19:27:07 -0000 Author: pho Date: Tue Jul 12 19:27:05 2016 New Revision: 302672 URL: https://svnweb.freebsd.org/changeset/base/302672 Log: Kostik suggested that I use pthread_barrier_* in place of rolling my own. Updated comment to reflect the issue found and added check for the number of alarms received. Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Modified: user/pho/stress2/misc/select.sh Modified: user/pho/stress2/misc/select.sh ============================================================================== --- user/pho/stress2/misc/select.sh Tue Jul 12 18:57:28 2016 (r302671) +++ user/pho/stress2/misc/select.sh Tue Jul 12 19:27:05 2016 (r302672) @@ -29,8 +29,8 @@ # # The combination of ualarm() firing before and after the select(2) timeout -# triggers select() to return EINTR a number of times. Not seen on Lunux or -# OS X. Problem only seen on i386. +# triggers select() to return EINTR a number of times. +# Problem only seen on i386. # Test scenario suggestion by kib@ @@ -43,7 +43,7 @@ dir=/tmp odir=`pwd` cd $dir sed '1,/^EOF/d' < $odir/$0 > $dir/select.c -mycc -o select -Wall -Wextra -O0 -g select.c || exit 1 +mycc -o select -Wall -Wextra -O0 -g select.c -lpthread || exit 1 rm -f select.c cd $odir @@ -58,11 +58,10 @@ EOF #include #include -#include - #include #include #include +#include #include #include #include @@ -70,34 +69,34 @@ EOF #include #include -volatile u_int *share; -volatile int alarms; -int lines; +static pthread_barrier_t barr; +static sig_atomic_t alarms; +static int lines; #define N 2000 /* also seen fail with N = 20.000 */ #define LINES 128000 #define PARALLEL 16 /* Fails seen with 1 - 16 */ #define RUNTIME (10 * 60) -#define SYNC 0 -void +static void handler(int i __unused) { alarms++; } -void +static void test(void) { struct timeval tv; int i, n, r, s; - atomic_add_int(&share[SYNC], 1); - while (share[SYNC] != PARALLEL) - ; + r = pthread_barrier_wait(&barr); + if (r != 0 && r != PTHREAD_BARRIER_SERIAL_THREAD) + errc(1, r, "pthread_barrier_wait"); signal(SIGALRM, handler); s = 0; for (i = 0; i < lines; i++) { + alarms = 0; if (arc4random() % 100 < 50) ualarm(N / 2, 0); else @@ -118,31 +117,38 @@ test(void) s = 1; break; } + if (alarms > 1) { + fprintf(stderr, "FAIL alarms = %d\n", (int)alarms); + s = 2; + break; + } } - _exit(s); + exit(s); } int main(void) { - size_t len; + pthread_barrierattr_t attr; time_t start; - int e, i, j, pids[PARALLEL], status; + int e, i, j, pids[PARALLEL], r, status; lines = LINES / PARALLEL; if (lines == 0) lines = 1; e = 0; - len = PAGE_SIZE; - if ((share = mmap(NULL, len, PROT_READ | PROT_WRITE, - MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED) - err(1, "mmap"); + if ((r = pthread_barrierattr_init(&attr)) != 0) + errc(1, r, "pthread_barrierattr_init"); + if ((r = pthread_barrierattr_setpshared(&attr, + PTHREAD_PROCESS_SHARED)) != 0) + errc(1, r, "pthread_barrierattr_setpshared"); + if ((r = pthread_barrier_init(&barr, &attr, PARALLEL)) != 0) + errc(1, r, "pthread_barrier_init"); start = time(NULL); while ((time(NULL) - start) < RUNTIME && e == 0) { - share[SYNC] = 0; for (i = 0; i < PARALLEL; i++) { if ((pids[i] = fork()) == 0) test(); @@ -157,5 +163,8 @@ main(void) } } + if ((r = pthread_barrier_destroy(&barr)) > 0) + errc(1, r, "pthread_barrier_destroy"); + return (e); } From owner-svn-src-user@freebsd.org Thu Jul 14 14:48:43 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA071B9700A for ; Thu, 14 Jul 2016 14:48:43 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 613B71686; Thu, 14 Jul 2016 14:48:43 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6EEmg3b047640; Thu, 14 Jul 2016 14:48:42 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6EEmfQ8047629; Thu, 14 Jul 2016 14:48:41 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201607141448.u6EEmfQ8047629@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Thu, 14 Jul 2016 14:48:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r302844 - in user/ngie/stable-10-libnv: bin/sh contrib/expat contrib/expat/doc contrib/expat/examples contrib/expat/lib contrib/expat/tests contrib/expat/tests/benchmark contrib/expat/x... X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 14:48:43 -0000 Author: ngie Date: Thu Jul 14 14:48:40 2016 New Revision: 302844 URL: https://svnweb.freebsd.org/changeset/base/302844 Log: MFstable/10 @ r302843 Added: user/ngie/stable-10-libnv/contrib/expat/configure.ac - copied unchanged from r302843, stable/10/contrib/expat/configure.ac user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.xml - copied unchanged from r302843, stable/10/contrib/expat/doc/xmlwf.xml user/ngie/stable-10-libnv/contrib/file/magic/Magdir/ber - copied unchanged from r302843, stable/10/contrib/file/magic/Magdir/ber user/ngie/stable-10-libnv/contrib/file/magic/Magdir/coverage - copied unchanged from r302843, stable/10/contrib/file/magic/Magdir/coverage user/ngie/stable-10-libnv/contrib/file/magic/Magdir/pc88 - copied unchanged from r302843, stable/10/contrib/file/magic/Magdir/pc88 user/ngie/stable-10-libnv/contrib/file/magic/Magdir/pc98 - copied unchanged from r302843, stable/10/contrib/file/magic/Magdir/pc98 user/ngie/stable-10-libnv/contrib/file/magic/Magdir/x68000 - copied unchanged from r302843, stable/10/contrib/file/magic/Magdir/x68000 user/ngie/stable-10-libnv/contrib/libarchive/cpio/test/test_missing_file.c - copied unchanged from r302843, stable/10/contrib/libarchive/cpio/test/test_missing_file.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/test/test_read_format_rar_invalid1.c - copied unchanged from r302843, stable/10/contrib/libarchive/libarchive/test/test_read_format_rar_invalid1.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/test/test_read_format_rar_invalid1.rar.uu - copied unchanged from r302843, stable/10/contrib/libarchive/libarchive/test/test_read_format_rar_invalid1.rar.uu user/ngie/stable-10-libnv/contrib/libarchive/libarchive/test/test_write_format_gnutar_filenames.c - copied unchanged from r302843, stable/10/contrib/libarchive/libarchive/test/test_write_format_gnutar_filenames.c user/ngie/stable-10-libnv/contrib/libarchive/tar/test/test_missing_file.c - copied unchanged from r302843, stable/10/contrib/libarchive/tar/test/test_missing_file.c user/ngie/stable-10-libnv/lib/libusb/libusb10_hotplug.c - copied unchanged from r302843, stable/10/lib/libusb/libusb10_hotplug.c user/ngie/stable-10-libnv/sys/dev/hyperv/include/hyperv_busdma.h - copied unchanged from r302843, stable/10/sys/dev/hyperv/include/hyperv_busdma.h user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/amd64/ - copied from r302843, stable/10/sys/dev/hyperv/vmbus/amd64/ user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hyperv.c - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/hyperv.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hyperv_busdma.c - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/hyperv_busdma.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hyperv_machdep.h - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/hyperv_machdep.h user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hyperv_reg.h - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/hyperv_reg.h user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hyperv_var.h - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/hyperv_var.h user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/i386/ - copied from r302843, stable/10/sys/dev/hyperv/vmbus/i386/ user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/vmbus.c - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/vmbus.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/vmbus_et.c - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/vmbus_et.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/vmbus_reg.h - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/vmbus_reg.h user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/vmbus_var.h - copied unchanged from r302843, stable/10/sys/dev/hyperv/vmbus/vmbus_var.h user/ngie/stable-10-libnv/sys/net/mppc.h - copied unchanged from r302843, stable/10/sys/net/mppc.h user/ngie/stable-10-libnv/sys/net/mppcc.c - copied unchanged from r302843, stable/10/sys/net/mppcc.c user/ngie/stable-10-libnv/sys/net/mppcd.c - copied unchanged from r302843, stable/10/sys/net/mppcd.c Deleted: user/ngie/stable-10-libnv/contrib/expat/configure.in user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.sgml user/ngie/stable-10-libnv/contrib/file/src/magic.h user/ngie/stable-10-libnv/sys/dev/filemon/filemon_lock.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_et.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_hv.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c Modified: user/ngie/stable-10-libnv/bin/sh/sh.1 user/ngie/stable-10-libnv/contrib/expat/COPYING user/ngie/stable-10-libnv/contrib/expat/Changes user/ngie/stable-10-libnv/contrib/expat/MANIFEST user/ngie/stable-10-libnv/contrib/expat/Makefile.in user/ngie/stable-10-libnv/contrib/expat/README user/ngie/stable-10-libnv/contrib/expat/doc/expat.png (contents, props changed) user/ngie/stable-10-libnv/contrib/expat/doc/reference.html user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.1 user/ngie/stable-10-libnv/contrib/expat/examples/elements.c user/ngie/stable-10-libnv/contrib/expat/examples/outline.c user/ngie/stable-10-libnv/contrib/expat/expat_config.h.in user/ngie/stable-10-libnv/contrib/expat/lib/expat.h user/ngie/stable-10-libnv/contrib/expat/lib/expat_external.h user/ngie/stable-10-libnv/contrib/expat/lib/internal.h user/ngie/stable-10-libnv/contrib/expat/lib/xmlparse.c user/ngie/stable-10-libnv/contrib/expat/lib/xmlrole.c user/ngie/stable-10-libnv/contrib/expat/lib/xmltok.c user/ngie/stable-10-libnv/contrib/expat/lib/xmltok.h user/ngie/stable-10-libnv/contrib/expat/lib/xmltok_impl.c user/ngie/stable-10-libnv/contrib/expat/tests/benchmark/README.txt user/ngie/stable-10-libnv/contrib/expat/tests/chardata.c user/ngie/stable-10-libnv/contrib/expat/tests/minicheck.c user/ngie/stable-10-libnv/contrib/expat/tests/minicheck.h user/ngie/stable-10-libnv/contrib/expat/tests/runtests.c user/ngie/stable-10-libnv/contrib/expat/tests/xmltest.sh user/ngie/stable-10-libnv/contrib/expat/xmlwf/codepage.c user/ngie/stable-10-libnv/contrib/expat/xmlwf/readfilemap.c user/ngie/stable-10-libnv/contrib/expat/xmlwf/unixfilemap.c user/ngie/stable-10-libnv/contrib/expat/xmlwf/xmlfile.c user/ngie/stable-10-libnv/contrib/expat/xmlwf/xmlwf.c user/ngie/stable-10-libnv/contrib/file/ChangeLog user/ngie/stable-10-libnv/contrib/file/config.h.in user/ngie/stable-10-libnv/contrib/file/configure user/ngie/stable-10-libnv/contrib/file/configure.ac user/ngie/stable-10-libnv/contrib/file/doc/file.man user/ngie/stable-10-libnv/contrib/file/magic/Magdir/c-lang user/ngie/stable-10-libnv/contrib/file/magic/Magdir/console user/ngie/stable-10-libnv/contrib/file/magic/Magdir/database user/ngie/stable-10-libnv/contrib/file/magic/Magdir/elf user/ngie/stable-10-libnv/contrib/file/magic/Magdir/msdos user/ngie/stable-10-libnv/contrib/file/magic/Magdir/msx user/ngie/stable-10-libnv/contrib/file/magic/Magdir/perl user/ngie/stable-10-libnv/contrib/file/magic/Makefile.am user/ngie/stable-10-libnv/contrib/file/magic/Makefile.in user/ngie/stable-10-libnv/contrib/file/src/Makefile.am user/ngie/stable-10-libnv/contrib/file/src/Makefile.in user/ngie/stable-10-libnv/contrib/file/src/apprentice.c user/ngie/stable-10-libnv/contrib/file/src/cdf.c user/ngie/stable-10-libnv/contrib/file/src/compress.c user/ngie/stable-10-libnv/contrib/file/src/der.c user/ngie/stable-10-libnv/contrib/file/src/file.c user/ngie/stable-10-libnv/contrib/file/src/softmagic.c user/ngie/stable-10-libnv/contrib/ipfilter/tools/ipf.c user/ngie/stable-10-libnv/contrib/libarchive/NEWS user/ngie/stable-10-libnv/contrib/libarchive/cat/test/main.c user/ngie/stable-10-libnv/contrib/libarchive/cpio/cpio.c user/ngie/stable-10-libnv/contrib/libarchive/cpio/test/main.c user/ngie/stable-10-libnv/contrib/libarchive/cpio/test/test_option_version.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive.h user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_entry.h user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_entry_xattr.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_ppmd7.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_disk_posix.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_support_format_7zip.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_support_format_iso9660.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_support_format_lha.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_support_format_mtree.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_support_format_rar.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_support_format_warc.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_read_support_format_zip.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_string.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_write_disk_posix.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_write_filter.3 user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_write_set_format_gnutar.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_write_set_format_iso9660.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive/archive_write_set_options.3 user/ngie/stable-10-libnv/contrib/libarchive/libarchive/libarchive-formats.5 user/ngie/stable-10-libnv/contrib/libarchive/libarchive/libarchive_changes.3 user/ngie/stable-10-libnv/contrib/libarchive/libarchive/test/main.c user/ngie/stable-10-libnv/contrib/libarchive/libarchive_fe/passphrase.c user/ngie/stable-10-libnv/contrib/libarchive/tar/test/main.c user/ngie/stable-10-libnv/contrib/libarchive/tar/write.c user/ngie/stable-10-libnv/contrib/netbsd-tests/lib/libc/string/t_memcpy.c user/ngie/stable-10-libnv/etc/defaults/periodic.conf user/ngie/stable-10-libnv/lib/libarchive/tests/Makefile user/ngie/stable-10-libnv/lib/libc/regex/engine.c user/ngie/stable-10-libnv/lib/libc/regex/regex.3 user/ngie/stable-10-libnv/lib/libc/stdlib/l64a.c user/ngie/stable-10-libnv/lib/libcam/camlib.c user/ngie/stable-10-libnv/lib/libmagic/Makefile user/ngie/stable-10-libnv/lib/libmagic/config.h user/ngie/stable-10-libnv/lib/libusb/Makefile user/ngie/stable-10-libnv/lib/libusb/libusb.3 user/ngie/stable-10-libnv/lib/libusb/libusb.h user/ngie/stable-10-libnv/lib/libusb/libusb10.c user/ngie/stable-10-libnv/lib/libusb/libusb10.h user/ngie/stable-10-libnv/lib/libusb/libusb10_desc.c user/ngie/stable-10-libnv/lib/libusb/libusb10_io.c user/ngie/stable-10-libnv/lib/libusb/libusb20.c user/ngie/stable-10-libnv/lib/libusb/libusb20_int.h user/ngie/stable-10-libnv/release/amd64/mkisoimages-uefi.sh user/ngie/stable-10-libnv/sbin/camcontrol/attrib.c user/ngie/stable-10-libnv/sbin/camcontrol/camcontrol.8 user/ngie/stable-10-libnv/sbin/camcontrol/camcontrol.c user/ngie/stable-10-libnv/sbin/camcontrol/fwdownload.c user/ngie/stable-10-libnv/sbin/camcontrol/persist.c user/ngie/stable-10-libnv/sbin/iscontrol/fsm.c user/ngie/stable-10-libnv/sbin/kldstat/kldstat.8 user/ngie/stable-10-libnv/sbin/kldstat/kldstat.c user/ngie/stable-10-libnv/sbin/sysctl/sysctl.c user/ngie/stable-10-libnv/share/man/man4/filemon.4 user/ngie/stable-10-libnv/share/man/man4/ng_mppc.4 user/ngie/stable-10-libnv/share/man/man9/atomic.9 user/ngie/stable-10-libnv/sys/amd64/amd64/apic_vector.S user/ngie/stable-10-libnv/sys/amd64/amd64/exception.S user/ngie/stable-10-libnv/sys/amd64/amd64/pmap.c user/ngie/stable-10-libnv/sys/amd64/conf/GENERIC user/ngie/stable-10-libnv/sys/amd64/include/apicvar.h user/ngie/stable-10-libnv/sys/amd64/include/atomic.h user/ngie/stable-10-libnv/sys/cam/cam_ccb.h user/ngie/stable-10-libnv/sys/cam/cam_xpt.c user/ngie/stable-10-libnv/sys/cam/ctl/ctl_backend_block.c user/ngie/stable-10-libnv/sys/cam/scsi/scsi_da.c user/ngie/stable-10-libnv/sys/cddl/compat/opensolaris/kern/opensolaris_lookup.c user/ngie/stable-10-libnv/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/gfs.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_ctldir.h user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c user/ngie/stable-10-libnv/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c user/ngie/stable-10-libnv/sys/compat/linux/linux_dtrace.h user/ngie/stable-10-libnv/sys/compat/linux/linux_misc.c user/ngie/stable-10-libnv/sys/compat/linux/linux_socket.c user/ngie/stable-10-libnv/sys/compat/linux/linux_uid16.c user/ngie/stable-10-libnv/sys/conf/files.amd64 user/ngie/stable-10-libnv/sys/conf/files.i386 user/ngie/stable-10-libnv/sys/dev/ahci/ahci.c user/ngie/stable-10-libnv/sys/dev/ahci/ahci.h user/ngie/stable-10-libnv/sys/dev/cpuctl/cpuctl.c user/ngie/stable-10-libnv/sys/dev/filemon/filemon.c user/ngie/stable-10-libnv/sys/dev/filemon/filemon_wrapper.c user/ngie/stable-10-libnv/sys/dev/hyperv/include/hyperv.h user/ngie/stable-10-libnv/sys/dev/hyperv/netvsc/hv_net_vsc.c user/ngie/stable-10-libnv/sys/dev/hyperv/netvsc/hv_net_vsc.h user/ngie/stable-10-libnv/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c user/ngie/stable-10-libnv/sys/dev/hyperv/netvsc/hv_rndis.h user/ngie/stable-10-libnv/sys/dev/hyperv/netvsc/hv_rndis_filter.c user/ngie/stable-10-libnv/sys/dev/hyperv/netvsc/hv_rndis_filter.h user/ngie/stable-10-libnv/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c user/ngie/stable-10-libnv/sys/dev/hyperv/utilities/hv_heartbeat.c user/ngie/stable-10-libnv/sys/dev/hyperv/utilities/hv_kvp.c user/ngie/stable-10-libnv/sys/dev/hyperv/utilities/hv_kvp.h user/ngie/stable-10-libnv/sys/dev/hyperv/utilities/hv_shutdown.c user/ngie/stable-10-libnv/sys/dev/hyperv/utilities/hv_timesync.c user/ngie/stable-10-libnv/sys/dev/hyperv/utilities/hv_util.c user/ngie/stable-10-libnv/sys/dev/hyperv/utilities/hv_util.h user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_channel.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_channel_mgmt.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_connection.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_ring_buffer.c user/ngie/stable-10-libnv/sys/dev/hyperv/vmbus/hv_vmbus_priv.h user/ngie/stable-10-libnv/sys/dev/mlx5/driver.h user/ngie/stable-10-libnv/sys/dev/mlx5/mlx5_core/mlx5_vport.c user/ngie/stable-10-libnv/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c user/ngie/stable-10-libnv/sys/dev/mlx5/mlx5_en/mlx5_en_main.c user/ngie/stable-10-libnv/sys/dev/mlx5/vport.h user/ngie/stable-10-libnv/sys/dev/mps/mps.c user/ngie/stable-10-libnv/sys/dev/mps/mps_config.c user/ngie/stable-10-libnv/sys/dev/mps/mps_sas.c user/ngie/stable-10-libnv/sys/dev/mps/mps_sas_lsi.c user/ngie/stable-10-libnv/sys/dev/mps/mps_user.c user/ngie/stable-10-libnv/sys/dev/mps/mpsvar.h user/ngie/stable-10-libnv/sys/dev/mxge/if_mxge.c user/ngie/stable-10-libnv/sys/dev/usb/controller/dwc_otg.c user/ngie/stable-10-libnv/sys/dev/usb/controller/xhci.c user/ngie/stable-10-libnv/sys/dev/usb/controller/xhci.h user/ngie/stable-10-libnv/sys/dev/usb/controller/xhcireg.h user/ngie/stable-10-libnv/sys/fs/devfs/devfs_vnops.c user/ngie/stable-10-libnv/sys/fs/nfsclient/nfs_clnode.c user/ngie/stable-10-libnv/sys/fs/nfsclient/nfs_clvnops.c user/ngie/stable-10-libnv/sys/i386/conf/GENERIC user/ngie/stable-10-libnv/sys/i386/i386/apic_vector.s user/ngie/stable-10-libnv/sys/i386/i386/exception.s user/ngie/stable-10-libnv/sys/i386/include/apicvar.h user/ngie/stable-10-libnv/sys/i386/include/atomic.h user/ngie/stable-10-libnv/sys/kern/bus_if.m user/ngie/stable-10-libnv/sys/kern/imgact_binmisc.c user/ngie/stable-10-libnv/sys/kern/imgact_elf.c user/ngie/stable-10-libnv/sys/kern/inflate.c user/ngie/stable-10-libnv/sys/kern/init_main.c user/ngie/stable-10-libnv/sys/kern/kern_condvar.c user/ngie/stable-10-libnv/sys/kern/kern_descrip.c user/ngie/stable-10-libnv/sys/kern/kern_exec.c user/ngie/stable-10-libnv/sys/kern/kern_exit.c user/ngie/stable-10-libnv/sys/kern/kern_fork.c user/ngie/stable-10-libnv/sys/kern/kern_jail.c user/ngie/stable-10-libnv/sys/kern/kern_linker.c user/ngie/stable-10-libnv/sys/kern/kern_lock.c user/ngie/stable-10-libnv/sys/kern/kern_lockf.c user/ngie/stable-10-libnv/sys/kern/kern_loginclass.c user/ngie/stable-10-libnv/sys/kern/kern_mbuf.c user/ngie/stable-10-libnv/sys/kern/kern_mtxpool.c user/ngie/stable-10-libnv/sys/kern/kern_proc.c user/ngie/stable-10-libnv/sys/kern/kern_prot.c user/ngie/stable-10-libnv/sys/kern/kern_racct.c user/ngie/stable-10-libnv/sys/kern/kern_rctl.c user/ngie/stable-10-libnv/sys/kern/kern_rmlock.c user/ngie/stable-10-libnv/sys/kern/kern_sig.c user/ngie/stable-10-libnv/sys/kern/kern_sysctl.c user/ngie/stable-10-libnv/sys/kern/kern_tc.c user/ngie/stable-10-libnv/sys/kern/kern_thread.c user/ngie/stable-10-libnv/sys/kern/kern_timeout.c user/ngie/stable-10-libnv/sys/kern/link_elf_obj.c user/ngie/stable-10-libnv/sys/kern/linker_if.m user/ngie/stable-10-libnv/sys/kern/sched_4bsd.c user/ngie/stable-10-libnv/sys/kern/subr_blist.c user/ngie/stable-10-libnv/sys/kern/subr_bus.c user/ngie/stable-10-libnv/sys/kern/subr_devstat.c user/ngie/stable-10-libnv/sys/kern/subr_mbpool.c user/ngie/stable-10-libnv/sys/kern/subr_mchain.c user/ngie/stable-10-libnv/sys/kern/subr_msgbuf.c user/ngie/stable-10-libnv/sys/kern/subr_prof.c user/ngie/stable-10-libnv/sys/kern/subr_scanf.c user/ngie/stable-10-libnv/sys/kern/subr_uio.c user/ngie/stable-10-libnv/sys/kern/subr_witness.c user/ngie/stable-10-libnv/sys/kern/sys_capability.c user/ngie/stable-10-libnv/sys/kern/sysv_sem.c user/ngie/stable-10-libnv/sys/kern/tty.c user/ngie/stable-10-libnv/sys/kern/tty_pts.c user/ngie/stable-10-libnv/sys/kern/uipc_mbuf2.c user/ngie/stable-10-libnv/sys/kern/uipc_shm.c user/ngie/stable-10-libnv/sys/kern/uipc_socket.c user/ngie/stable-10-libnv/sys/kern/vfs_cache.c user/ngie/stable-10-libnv/sys/kern/vfs_cluster.c user/ngie/stable-10-libnv/sys/kern/vfs_lookup.c user/ngie/stable-10-libnv/sys/kern/vfs_mount.c user/ngie/stable-10-libnv/sys/kern/vfs_mountroot.c user/ngie/stable-10-libnv/sys/kern/vfs_subr.c user/ngie/stable-10-libnv/sys/kern/vnode_if.src user/ngie/stable-10-libnv/sys/modules/Makefile user/ngie/stable-10-libnv/sys/modules/hyperv/vmbus/Makefile user/ngie/stable-10-libnv/sys/modules/netgraph/mppc/Makefile user/ngie/stable-10-libnv/sys/net/rtsock.c user/ngie/stable-10-libnv/sys/netinet/sctp_cc_functions.c user/ngie/stable-10-libnv/sys/netinet/tcp_input.c user/ngie/stable-10-libnv/sys/netinet/tcp_lro.c user/ngie/stable-10-libnv/sys/netinet/tcp_output.c user/ngie/stable-10-libnv/sys/netinet/tcp_subr.c user/ngie/stable-10-libnv/sys/netpfil/ipfw/dn_aqm_pie.c user/ngie/stable-10-libnv/sys/nlm/nlm_advlock.c user/ngie/stable-10-libnv/sys/ofed/include/linux/etherdevice.h user/ngie/stable-10-libnv/sys/ofed/include/linux/random.h user/ngie/stable-10-libnv/sys/rpc/clnt_bck.c user/ngie/stable-10-libnv/sys/rpc/rpc_generic.c user/ngie/stable-10-libnv/sys/security/audit/audit_syscalls.c user/ngie/stable-10-libnv/sys/security/mac/mac_framework.c user/ngie/stable-10-libnv/sys/security/mac/mac_internal.h user/ngie/stable-10-libnv/sys/security/mac/mac_syscalls.c user/ngie/stable-10-libnv/sys/security/mac_lomac/mac_lomac.c user/ngie/stable-10-libnv/sys/sys/imgact.h user/ngie/stable-10-libnv/sys/sys/param.h user/ngie/stable-10-libnv/sys/sys/proc.h user/ngie/stable-10-libnv/sys/sys/ucred.h user/ngie/stable-10-libnv/sys/ufs/ufs/ufs_extattr.c user/ngie/stable-10-libnv/sys/vm/swap_pager.c user/ngie/stable-10-libnv/sys/vm/vm_fault.c user/ngie/stable-10-libnv/sys/vm/vm_meter.c user/ngie/stable-10-libnv/sys/vm/vm_object.h user/ngie/stable-10-libnv/tests/sys/acl/Makefile user/ngie/stable-10-libnv/usr.bin/bsdcat/Makefile user/ngie/stable-10-libnv/usr.bin/cpio/Makefile user/ngie/stable-10-libnv/usr.bin/cpio/tests/Makefile user/ngie/stable-10-libnv/usr.bin/lastcomm/tests/Makefile user/ngie/stable-10-libnv/usr.bin/lastcomm/tests/legacy_test.sh user/ngie/stable-10-libnv/usr.bin/lastcomm/tests/v1-i386.out user/ngie/stable-10-libnv/usr.bin/lastcomm/tests/v2-i386.out user/ngie/stable-10-libnv/usr.bin/sed/process.c user/ngie/stable-10-libnv/usr.bin/tar/Makefile user/ngie/stable-10-libnv/usr.bin/tar/tests/Makefile user/ngie/stable-10-libnv/usr.sbin/bhyve/bhyverun.c user/ngie/stable-10-libnv/usr.sbin/bhyve/bhyverun.h user/ngie/stable-10-libnv/usr.sbin/bhyve/pci_ahci.c user/ngie/stable-10-libnv/usr.sbin/bhyve/pci_emul.c user/ngie/stable-10-libnv/usr.sbin/bhyve/pci_emul.h user/ngie/stable-10-libnv/usr.sbin/bhyve/pci_passthru.c user/ngie/stable-10-libnv/usr.sbin/bhyve/task_switch.c user/ngie/stable-10-libnv/usr.sbin/camdd/camdd.c user/ngie/stable-10-libnv/usr.sbin/cpucontrol/cpucontrol.c user/ngie/stable-10-libnv/usr.sbin/extattr/tests/extattr_test.sh user/ngie/stable-10-libnv/usr.sbin/freebsd-update/freebsd-update.sh user/ngie/stable-10-libnv/usr.sbin/mptutil/mpt_cam.c user/ngie/stable-10-libnv/usr.sbin/periodic/periodic.8 user/ngie/stable-10-libnv/usr.sbin/periodic/periodic.sh user/ngie/stable-10-libnv/usr.sbin/rpc.lockd/lockd_lock.c user/ngie/stable-10-libnv/usr.sbin/rpcbind/rpcb_stat.c user/ngie/stable-10-libnv/usr.sbin/rpcbind/tests/addrmerge_test.c user/ngie/stable-10-libnv/usr.sbin/sa/tests/Makefile Directory Properties: user/ngie/stable-10-libnv/ (props changed) Modified: user/ngie/stable-10-libnv/bin/sh/sh.1 ============================================================================== --- user/ngie/stable-10-libnv/bin/sh/sh.1 Thu Jul 14 14:35:25 2016 (r302843) +++ user/ngie/stable-10-libnv/bin/sh/sh.1 Thu Jul 14 14:48:40 2016 (r302844) @@ -32,7 +32,7 @@ .\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 .\" $FreeBSD$ .\" -.Dd May 24, 2016 +.Dd May 30, 2016 .Dt SH 1 .Os .Sh NAME @@ -1371,9 +1371,9 @@ may include any of the following formatt which are replaced by the given information: .Bl -tag -width indent .It Li \eH -The fully-qualified hostname. +This system's fully-qualified hostname (FQDN). .It Li \eh -The local hostname. +This system's hostname. .It Li \eW The final component of the current working directory. .It Li \ew Modified: user/ngie/stable-10-libnv/contrib/expat/COPYING ============================================================================== --- user/ngie/stable-10-libnv/contrib/expat/COPYING Thu Jul 14 14:35:25 2016 (r302843) +++ user/ngie/stable-10-libnv/contrib/expat/COPYING Thu Jul 14 14:48:40 2016 (r302844) @@ -1,6 +1,5 @@ -Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd - and Clark Cooper -Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers. +Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper +Copyright (c) 2001-2016 Expat maintainers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Modified: user/ngie/stable-10-libnv/contrib/expat/Changes ============================================================================== --- user/ngie/stable-10-libnv/contrib/expat/Changes Thu Jul 14 14:35:25 2016 (r302843) +++ user/ngie/stable-10-libnv/contrib/expat/Changes Thu Jul 14 14:48:40 2016 (r302844) @@ -1,3 +1,67 @@ +Release 2.2.0 Tue June 21 2016 + Security fixes: + #537 CVE-2016-0718 -- Fix crash on malformed input + CVE-2016-4472 -- Improve insufficient fix to CVE-2015-1283 / + CVE-2015-2716 introduced with Expat 2.1.1 + #499 CVE-2016-5300 -- Use more entropy for hash initialization + than the original fix to CVE-2012-0876 + #519 CVE-2012-6702 -- Resolve troublesome internal call to srand + that was introduced with Expat 2.1.0 + when addressing CVE-2012-0876 (issue #496) + + Bug fixes: + Fix uninitialized reads of size 1 + (e.g. in little2_updatePosition) + Fix detection of UTF-8 character boundaries + + Other changes: + #532 Fix compilation for Visual Studio 2010 (keyword "C99") + Autotools: Resolve use of "$<" to better support bmake + Autotools: Add QA script "qa.sh" (and make target "qa") + Autotools: Respect CXXFLAGS if given + Autotools: Fix "make run-xmltest" + Autotools: Have "make run-xmltest" check for expected output + p90 CMake: Fix static build (BUILD_shared=OFF) on Windows + #536 CMake: Add soversion, support -DNO_SONAME=yes to bypass + #323 CMake: Add suffix "d" to differentiate debug from release + CMake: Define WIN32 with CMake on Windows + Annotate memory allocators for GCC + Address all currently known compile warnings + Make sure that API symbols remain visible despite + -fvisibility=hidden + Remove executable flag from source files + Resolve COMPILED_FROM_DSP in favor of WIN32 + + Special thanks to: + Björn Lindahl + Christian Heimes + Cristian Rodríguez + Daniel Krügler + Gustavo Grieco + Karl Waclawek + László Böszörményi + Marco Grassi + Pascal Cuoq + Sergei Nikulov + Thomas Beutlich + Warren Young + Yann Droneaud + +Release 2.1.1 Sat March 12 2016 + Security fixes: + #582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer + + Bug fixes: + #502: Fix potential null pointer dereference + #520: Symbol XML_SetHashSalt was not exported + Output of "xmlwf -h" was incomplete + + Other changes: + #503: Document behavior of calling XML_SetHashSalt with salt 0 + Minor improvements to man page xmlwf(1) + Improvements to the experimental CMake build system + libtool now invoked with --verbose + Release 2.1.0 Sat March 24 2012 - Bug Fixes: #1742315: Harmful XML_ParserCreateNS suggestion. @@ -23,7 +87,7 @@ Release 2.1.0 Sat March 24 2012 #3312568: CMake support. #3446384: Report byte offsets for attr names and values. - New Features / API changes: - Added new API member XML_SetHashSalt() that allows setting an intial + Added new API member XML_SetHashSalt() that allows setting an initial value (salt) for hash calculations. This is part of the fix for bug #3496608 to randomize hash parameters. When compiled with XML_ATTR_INFO defined, adds new API member Modified: user/ngie/stable-10-libnv/contrib/expat/MANIFEST ============================================================================== --- user/ngie/stable-10-libnv/contrib/expat/MANIFEST Thu Jul 14 14:35:25 2016 (r302843) +++ user/ngie/stable-10-libnv/contrib/expat/MANIFEST Thu Jul 14 14:48:40 2016 (r302844) @@ -44,7 +44,7 @@ doc/reference.html doc/style.css doc/valid-xhtml10.png doc/xmlwf.1 -doc/xmlwf.sgml +doc/xmlwf.xml CMakeLists.txt CMake.README COPYING @@ -54,7 +54,7 @@ MANIFEST Makefile.in README configure -configure.in +configure.ac expat_config.h.in expat_config.h.cmake expat.pc.in Modified: user/ngie/stable-10-libnv/contrib/expat/Makefile.in ============================================================================== --- user/ngie/stable-10-libnv/contrib/expat/Makefile.in Thu Jul 14 14:35:25 2016 (r302843) +++ user/ngie/stable-10-libnv/contrib/expat/Makefile.in Thu Jul 14 14:48:40 2016 (r302844) @@ -42,7 +42,7 @@ INSTALL_DATA = @INSTALL_DATA@ mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs MANFILE = $(srcdir)/doc/xmlwf.1 -APIHEADER = $(srcdir)/lib/expat.h $(srcdir)/lib/expat_external.h +APIHEADER = $(srcdir)/lib/expat.h $(srcdir)/lib/expat_external.h expat_config.h LIBRARY = libexpat.la DESTDIR = $(INSTALL_ROOT) @@ -51,7 +51,7 @@ default: buildlib xmlwf/xmlwf@EXEEXT@ buildlib: $(LIBRARY) expat.pc -all: $(LIBRARY) expat.pc xmlwf/xmlwf@EXEEXT@ examples/elements examples/outline +all: $(LIBRARY) expat.pc xmlwf/xmlwf@EXEEXT@ examples/elements examples/outline $(MANFILE) clean: cd lib && rm -f $(LIBRARY) *.@OBJEXT@ *.lo && rm -rf .libs _libs @@ -77,7 +77,10 @@ check: tests/runtests tests/runtestspp tests/runtests tests/runtestspp -install: xmlwf/xmlwf@EXEEXT@ installlib +$(MANFILE): + $(MAKE) -C doc xmlwf.1 + +install: xmlwf/xmlwf@EXEEXT@ installlib $(MANFILE) $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf@EXEEXT@ $(DESTDIR)$(bindir)/xmlwf $(INSTALL_DATA) $(MANFILE) $(DESTDIR)$(man1dir) @@ -116,7 +119,7 @@ CXXFLAGS = @CXXFLAGS@ VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@ ### autoconf this? -LTFLAGS = --silent +LTFLAGS = --verbose COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS) CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) $(DEFS) $(CPPFLAGS) @@ -154,11 +157,11 @@ xmlwf/xmlwf@EXEEXT@: $(XMLWF_OBJS) $(LIB examples/elements.@OBJEXT@: examples/elements.c examples/elements: examples/elements.@OBJEXT@ $(LIBRARY) - $(LINK_EXE) $< $(LIBRARY) + $(LINK_EXE) examples/elements.@OBJEXT@ $(LIBRARY) examples/outline.@OBJEXT@: examples/outline.c examples/outline: examples/outline.@OBJEXT@ $(LIBRARY) - $(LINK_EXE) $< $(LIBRARY) + $(LINK_EXE) examples/outline.@OBJEXT@ $(LIBRARY) tests/chardata.@OBJEXT@: tests/chardata.c tests/chardata.h tests/minicheck.@OBJEXT@: tests/minicheck.c tests/minicheck.h @@ -180,11 +183,19 @@ tests/xmlts.zip: wget --output-document=tests/xmlts.zip \ http://www.w3.org/XML/Test/xmlts20080827.zip -tests/XML-Test-Suite: tests/xmlts.zip +tests/xmlconf: tests/xmlts.zip cd tests && unzip -q xmlts.zip -run-xmltest: xmlwf/xmlwf@EXEEXT@ tests/XML-Test-Suite - tests/xmltest.sh +run-xmltest: xmlwf/xmlwf@EXEEXT@ tests/xmlconf + tests/xmltest.sh 2>&1 | tee tests/xmltest.log + diff -u tests/xmltest.log.expected tests/xmltest.log + +.PHONY: qa +qa: + ./qa.sh address + ./qa.sh memory + ./qa.sh undefined + ./qa.sh coverage .SUFFIXES: .c .cpp .lo .@OBJEXT@ Modified: user/ngie/stable-10-libnv/contrib/expat/README ============================================================================== --- user/ngie/stable-10-libnv/contrib/expat/README Thu Jul 14 14:35:25 2016 (r302843) +++ user/ngie/stable-10-libnv/contrib/expat/README Thu Jul 14 14:48:40 2016 (r302844) @@ -1,5 +1,5 @@ - Expat, Release 2.1.0 + Expat, Release 2.2.0 This is Expat, a C library for parsing XML, written by James Clark. Expat is a stream-oriented XML parser. This means that you register @@ -114,7 +114,7 @@ Note for Solaris users: The "ar" comman "/usr/ccs/bin", which is not in the default PATH. You will need to add this to your path for the "make" command, and probably also switch to GNU make (the "make" found in /usr/ccs/bin does not seem to work -properly -- appearantly it does not understand .PHONY directives). If +properly -- apparently it does not understand .PHONY directives). If you're using ksh or bash, use this command to build: PATH=/usr/ccs/bin:$PATH make Copied: user/ngie/stable-10-libnv/contrib/expat/configure.ac (from r302843, stable/10/contrib/expat/configure.ac) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/ngie/stable-10-libnv/contrib/expat/configure.ac Thu Jul 14 14:48:40 2016 (r302844, copy of r302843, stable/10/contrib/expat/configure.ac) @@ -0,0 +1,157 @@ +dnl configuration script for expat +dnl Process this file with autoconf to produce a configure script. +dnl +dnl Copyright 2000 Clark Cooper +dnl +dnl This file is part of EXPAT. +dnl +dnl EXPAT is free software; you can redistribute it and/or modify it +dnl under the terms of the License (based on the MIT/X license) contained +dnl in the file COPYING that comes with this distribution. +dnl + +dnl Ensure that Expat is configured with autoconf 2.58 or newer +AC_PREREQ(2.58) + +dnl Get the version number of Expat, using m4's esyscmd() command to run +dnl the command at m4-generation time. This allows us to create an m4 +dnl symbol holding the correct version number. AC_INIT() requires the +dnl version number at m4-time, rather than when ./configure is run, so +dnl all this must happen as part of m4, not as part of the shell code +dnl contained in ./configure. +dnl +dnl NOTE: esyscmd() is a GNU M4 extension. Thus, we wrap it in an appropriate +dnl test. I believe this test will work, but I don't have a place with non- +dnl GNU M4 to test it right now. +define([expat_version], ifdef([__gnu__], + [esyscmd(conftools/get-version.sh lib/expat.h)], + [2.2.x])) +AC_INIT(expat, expat_version, expat-bugs@libexpat.org) +undefine([expat_version]) + +AC_CONFIG_SRCDIR(Makefile.in) +AC_CONFIG_AUX_DIR(conftools) +AC_CONFIG_MACRO_DIR([m4]) + + +dnl +dnl Increment LIBREVISION if source code has changed at all +dnl +dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0 +dnl +dnl If the API changes compatibly (i.e. simply adding a new function +dnl without changing or removing earlier interfaces), then increment LIBAGE. +dnl +dnl If the API changes incompatibly set LIBAGE back to 0 +dnl + +LIBCURRENT=7 # sync +LIBREVISION=2 # with +LIBAGE=6 # CMakeLists.txt! + +AC_CONFIG_HEADER(expat_config.h) + +sinclude(conftools/ac_c_bigendian_cross.m4) + +AC_LIBTOOL_WIN32_DLL +AC_PROG_LIBTOOL + +AC_SUBST(LIBCURRENT) +AC_SUBST(LIBREVISION) +AC_SUBST(LIBAGE) + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_CXX +AC_PROG_INSTALL + +if test "$GCC" = yes ; then + dnl + dnl Be careful about adding the -fexceptions option; some versions of + dnl GCC don't support it and it causes extra warnings that are only + dnl distracting; avoid. + dnl + OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes" + CFLAGS="$OLDCFLAGS -fexceptions" + AC_MSG_CHECKING(whether $CC accepts -fexceptions) + AC_TRY_LINK( , , + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no); CFLAGS="$OLDCFLAGS") + if test "x$CXXFLAGS" = x ; then + CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'` + fi +fi + +dnl Checks for header files. +AC_HEADER_STDC + +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Note: Avoid using AC_C_BIGENDIAN because it does not +dnl work in a cross compile. +AC_C_BIGENDIAN_CROSS + +AC_C_CONST +AC_TYPE_SIZE_T +AC_CHECK_FUNCS(memmove bcopy) + +dnl Only needed for xmlwf: +AC_CHECK_HEADERS(fcntl.h unistd.h) +AC_TYPE_OFF_T +AC_FUNC_MMAP + +if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then + FILEMAP=unixfilemap +else + FILEMAP=readfilemap +fi +AC_SUBST(FILEMAP) + +dnl Needed for the test support code; this was found at +dnl http://lists.gnu.org/archive/html/bug-autoconf/2002-07/msg00028.html + +# AC_CPP_FUNC +# ------------------ # +# Checks to see if ANSI C99 CPP variable __func__ works. +# If not, perhaps __FUNCTION__ works instead. +# If not, we'll just define __func__ to "". +AC_DEFUN([AC_CPP_FUNC], +[AC_REQUIRE([AC_PROG_CC_STDC])dnl +AC_CACHE_CHECK([for an ANSI C99-conforming __func__], ac_cv_cpp_func, +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], +[[char *foo = __func__;]])], + [ac_cv_cpp_func=yes], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], +[[char *foo = __FUNCTION__;]])], + [ac_cv_cpp_func=__FUNCTION__], + [ac_cv_cpp_func=no])])]) +if test $ac_cv_cpp_func = __FUNCTION__; then + AC_DEFINE(__func__,__FUNCTION__, + [Define to __FUNCTION__ or "" if `__func__' does not conform to +ANSI C.]) +elif test $ac_cv_cpp_func = no; then + AC_DEFINE(__func__,"", + [Define to __FUNCTION__ or "" if `__func__' does not conform to +ANSI C.]) +fi +])# AC_CPP_FUNC + +AC_CPP_FUNC + + +dnl Some basic configuration: +AC_DEFINE([XML_NS], 1, + [Define to make XML Namespaces functionality available.]) +AC_DEFINE([XML_DTD], 1, + [Define to make parameter entity parsing functionality available.]) +AC_DEFINE([XML_CONTEXT_BYTES], 1024, + [Define to specify how much context to retain around the current parse point.]) + +AC_CONFIG_FILES([Makefile expat.pc]) +AC_OUTPUT + +abs_srcdir="`cd $srcdir && pwd`" +abs_builddir="`pwd`" +if test "$abs_srcdir" != "$abs_builddir"; then + make mkdir-init +fi Modified: user/ngie/stable-10-libnv/contrib/expat/doc/expat.png ============================================================================== Binary file (source and/or target). No diff available. Modified: user/ngie/stable-10-libnv/contrib/expat/doc/reference.html ============================================================================== --- user/ngie/stable-10-libnv/contrib/expat/doc/reference.html Thu Jul 14 14:35:25 2016 (r302843) +++ user/ngie/stable-10-libnv/contrib/expat/doc/reference.html Thu Jul 14 14:48:40 2016 (r302844) @@ -2151,8 +2151,12 @@ Helps in preventing DoS attacks based on function behavior. In order to have an effect this must be called before parsing has started. Returns 1 if successful, 0 when called after XML_Parse or XML_ParseBuffer. -

Note: This call is optional, as the parser will auto-generate a new -random salt value if no value has been set at the start of parsing.

+

Note:This call is optional, as the parser will auto-generate +a new random salt value if no value has been set at the start of parsing. +

Note:One should not call XML_SetHashSalt with a +hash salt value of 0, as this value is used as sentinel value to indicate +that XML_SetHashSalt has not been called. Consequently +such a call will have no effect, even if it returns 1.


Modified: user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.1
==============================================================================
--- user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.1	Thu Jul 14 14:35:25 2016	(r302843)
+++ user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.1	Thu Jul 14 14:48:40 2016	(r302844)
@@ -1,33 +1,40 @@
-.\" This manpage has been automatically generated by docbook2man 
-.\" from a DocBook document.  This tool can be found at:
-.\"  
-.\" Please send any bug reports, improvements, comments, patches, 
-.\" etc. to Steve Cheng .
-.TH "XMLWF" "1" "24 January 2003" "" ""
+'\" -*- coding: us-ascii -*-
+.if \n(.g .ds T< \\FC
+.if \n(.g .ds T> \\F[\n[.fam]]
+.de URL
+\\$2 \(la\\$1\(ra\\$3
+..
+.if \n(.g .mso www.tmac
+.TH XMLWF 1 "March 11, 2016" "" ""
 .SH NAME
 xmlwf \- Determines if an XML document is well-formed
 .SH SYNOPSIS
-
-\fBxmlwf\fR [ \fB-s\fR]  [ \fB-n\fR]  [ \fB-p\fR]  [ \fB-x\fR]  [ \fB-e \fIencoding\fB\fR]  [ \fB-w\fR]  [ \fB-d \fIoutput-dir\fB\fR]  [ \fB-c\fR]  [ \fB-m\fR]  [ \fB-r\fR]  [ \fB-t\fR]  [ \fB-v\fR]  [ \fBfile ...\fR] 
-
-.SH "DESCRIPTION"
-.PP
+'nh
+.fi
+.ad l
+\fBxmlwf\fR \kx
+.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
+'in \n(.iu+\nxu
+[\fB-s\fR] [\fB-n\fR] [\fB-p\fR] [\fB-x\fR] [\fB-e \fIencoding\fB\fR] [\fB-w\fR] [\fB-d \fIoutput-dir\fB\fR] [\fB-c\fR] [\fB-m\fR] [\fB-r\fR] [\fB-t\fR] [\fB-v\fR] [file ...]
+'in \n(.iu-\nxu
+.ad b
+'hy
+.SH DESCRIPTION
 \fBxmlwf\fR uses the Expat library to
-determine if an XML document is well-formed.  It is
+determine if an XML document is well-formed. It is
 non-validating.
 .PP
 If you do not specify any files on the command-line, and you
 have a recent version of \fBxmlwf\fR, the
 input file will be read from standard input.
 .SH "WELL-FORMED DOCUMENTS"
-.PP
 A well-formed document must adhere to the
 following rules:
 .TP 0.2i
 \(bu
-The file begins with an XML declaration.  For instance,
-.
-\fBNOTE:\fR
+The file begins with an XML declaration. For instance,
+\*(T<\*(T>.
+\fINOTE:\fR
 \fBxmlwf\fR does not currently
 check for a valid XML declaration.
 .TP 0.2i
@@ -36,8 +43,8 @@ Every start tag is either empty ()
 or has a corresponding end tag.
 .TP 0.2i
 \(bu
-There is exactly one root element.  This element must contain
-all other elements in the document.  Only comments, white
+There is exactly one root element. This element must contain
+all other elements in the document. Only comments, white
 space, and processing instructions may come after the close
 of the root element.
 .TP 0.2i
@@ -49,39 +56,38 @@ All attribute values are enclosed in quo
 or double).
 .PP
 If the document has a DTD, and it strictly complies with that
-DTD, then the document is also considered \fBvalid\fR.
+DTD, then the document is also considered \fIvalid\fR.
 \fBxmlwf\fR is a non-validating parser --
-it does not check the DTD.  However, it does support
-external entities (see the \fB-x\fR option).
-.SH "OPTIONS"
-.PP
+it does not check the DTD. However, it does support
+external entities (see the \*(T<\fB\-x\fR\*(T> option).
+.SH OPTIONS
 When an option includes an argument, you may specify the argument either
-separately ("\fB-d\fR output") or concatenated with the
-option ("\fB-d\fRoutput").  \fBxmlwf\fR
+separately ("\*(T<\fB\-d\fR\*(T> output") or concatenated with the
+option ("\*(T<\fB\-d\fR\*(T>output"). \fBxmlwf\fR
 supports both.
-.TP
-\fB-c\fR
+.TP 
+\*(T<\fB\-c\fR\*(T>
 If the input file is well-formed and \fBxmlwf\fR
 doesn't encounter any errors, the input file is simply copied to
 the output directory unchanged.
-This implies no namespaces (turns off \fB-n\fR) and
-requires \fB-d\fR to specify an output file.
-.TP
-\fB-d output-dir\fR
+This implies no namespaces (turns off \*(T<\fB\-n\fR\*(T>) and
+requires \*(T<\fB\-d\fR\*(T> to specify an output file.
+.TP 
+\*(T<\fB\-d output\-dir\fR\*(T>
 Specifies a directory to contain transformed
 representations of the input files.
-By default, \fB-d\fR outputs a canonical representation
+By default, \*(T<\fB\-d\fR\*(T> outputs a canonical representation
 (described below).
-You can select different output formats using \fB-c\fR
-and \fB-m\fR.
+You can select different output formats using \*(T<\fB\-c\fR\*(T>
+and \*(T<\fB\-m\fR\*(T>.
 
 The output filenames will
 be exactly the same as the input filenames or "STDIN" if the input is
-coming from standard input.  Therefore, you must be careful that the
+coming from standard input. Therefore, you must be careful that the
 output file does not go into the same directory as the input
-file.  Otherwise, \fBxmlwf\fR will delete the
+file. Otherwise, \fBxmlwf\fR will delete the
 input file before it generates the output file (just like running
-cat < file > file in most shells).
+\*(T file\*(T> in most shells).
 
 Two structurally equivalent XML documents have a byte-for-byte
 identical canonical XML representation.
@@ -89,39 +95,39 @@ Note that ignorable white space is consi
 is treated equivalently to data.
 More on canonical XML can be found at
 http://www.jclark.com/xml/canonxml.html .
-.TP
-\fB-e encoding\fR
+.TP 
+\*(T<\fB\-e encoding\fR\*(T>
 Specifies the character encoding for the document, overriding
-any document encoding declaration.  \fBxmlwf\fR
+any document encoding declaration. \fBxmlwf\fR
 supports four built-in encodings:
-US-ASCII,
-UTF-8,
-UTF-16, and
-ISO-8859-1.
-Also see the \fB-w\fR option.
-.TP
-\fB-m\fR
+\*(T,
+\*(T,
+\*(T, and
+\*(T.
+Also see the \*(T<\fB\-w\fR\*(T> option.
+.TP 
+\*(T<\fB\-m\fR\*(T>
 Outputs some strange sort of XML file that completely
 describes the input file, including character positions.
-Requires \fB-d\fR to specify an output file.
-.TP
-\fB-n\fR
-Turns on namespace processing.  (describe namespaces)
-\fB-c\fR disables namespaces.
-.TP
-\fB-p\fR
+Requires \*(T<\fB\-d\fR\*(T> to specify an output file.
+.TP 
+\*(T<\fB\-n\fR\*(T>
+Turns on namespace processing. (describe namespaces)
+\*(T<\fB\-c\fR\*(T> disables namespaces.
+.TP 
+\*(T<\fB\-p\fR\*(T>
 Tells xmlwf to process external DTDs and parameter
 entities.
 
 Normally \fBxmlwf\fR never parses parameter
-entities.  \fB-p\fR tells it to always parse them.
-\fB-p\fR implies \fB-x\fR.
-.TP
-\fB-r\fR
+entities. \*(T<\fB\-p\fR\*(T> tells it to always parse them.
+\*(T<\fB\-p\fR\*(T> implies \*(T<\fB\-x\fR\*(T>.
+.TP 
+\*(T<\fB\-r\fR\*(T>
 Normally \fBxmlwf\fR memory-maps the XML file
 before parsing; this can result in faster parsing on many
 platforms.
-\fB-r\fR turns off memory-mapping and uses normal file
+\*(T<\fB\-r\fR\*(T> turns off memory-mapping and uses normal file
 IO calls instead.
 Of course, memory-mapping is automatically turned off
 when reading from standard input.
@@ -131,34 +137,33 @@ substantially higher memory usage for
 \fBxmlwf\fR, but this appears to be a matter of
 the operating system reporting memory in a strange way; there is
 not a leak in \fBxmlwf\fR.
-.TP
-\fB-s\fR
+.TP 
+\*(T<\fB\-s\fR\*(T>
 Prints an error if the document is not standalone. 
 A document is standalone if it has no external subset and no
 references to parameter entities.
-.TP
-\fB-t\fR
-Turns on timings.  This tells Expat to parse the entire file,
+.TP 
+\*(T<\fB\-t\fR\*(T>
+Turns on timings. This tells Expat to parse the entire file,
 but not perform any processing.
 This gives a fairly accurate idea of the raw speed of Expat itself
 without client overhead.
-\fB-t\fR turns off most of the output options
-(\fB-d\fR, \fB-m\fR, \fB-c\fR,
-\&...).
-.TP
-\fB-v\fR
+\*(T<\fB\-t\fR\*(T> turns off most of the output options
+(\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-m\fR\*(T>, \*(T<\fB\-c\fR\*(T>, ...).
+.TP 
+\*(T<\fB\-v\fR\*(T>
 Prints the version of the Expat library being used, including some
 information on the compile-time configuration of the library, and
 then exits.
-.TP
-\fB-w\fR
+.TP 
+\*(T<\fB\-w\fR\*(T>
 Enables support for Windows code pages.
 Normally, \fBxmlwf\fR will throw an error if it
-runs across an encoding that it is not equipped to handle itself.  With
-\fB-w\fR, xmlwf will try to use a Windows code
-page.  See also \fB-e\fR.
-.TP
-\fB-x\fR
+runs across an encoding that it is not equipped to handle itself. With
+\*(T<\fB\-w\fR\*(T>, xmlwf will try to use a Windows code
+page. See also \*(T<\fB\-e\fR\*(T>.
+.TP 
+\*(T<\fB\-x\fR\*(T>
 Turns on parsing external entities.
 
 Non-validating parsers are not required to resolve external
@@ -172,80 +177,75 @@ data from outside the XML file currently
 This is an example of an internal entity:
 
 .nf
+
 
 .fi
 
 And here are some examples of external entities:
 
 .nf
-  (parsed)
+
+  (parsed)
          (unparsed)
 .fi
-.TP
-\fB--\fR
+.TP 
+\*(T<\fB\-\-\fR\*(T>
 (Two hyphens.)
-Terminates the list of options.  This is only needed if a filename
-starts with a hyphen.  For example:
+Terminates the list of options. This is only needed if a filename
+starts with a hyphen. For example:
 
 .nf
-xmlwf -- -myfile.xml
+
+xmlwf \-\- \-myfile.xml
 .fi
 
 will run \fBxmlwf\fR on the file
-\fI-myfile.xml\fR.
+\*(T<\fI\-myfile.xml\fR\*(T>.
 .PP
 Older versions of \fBxmlwf\fR do not support
 reading from standard input.
-.SH "OUTPUT"
-.PP
+.SH OUTPUT
 If an input file is not well-formed,
 \fBxmlwf\fR prints a single line describing
-the problem to standard output.  If a file is well formed,
+the problem to standard output. If a file is well formed,
 \fBxmlwf\fR outputs nothing.
-Note that the result code is \fBnot\fR set.
-.SH "BUGS"
-.PP
-According to the W3C standard, an XML file without a
-declaration at the beginning is not considered well-formed.
-However, \fBxmlwf\fR allows this to pass.
-.PP
+Note that the result code is \fInot\fR set.
+.SH BUGS
 \fBxmlwf\fR returns a 0 - noerr result,
-even if the file is not well-formed.  There is no good way for
+even if the file is not well-formed. There is no good way for
 a program to use \fBxmlwf\fR to quickly
 check a file -- it must parse \fBxmlwf\fR's
 standard output.
 .PP
 The errors should go to standard error, not standard output.
 .PP
-There should be a way to get \fB-d\fR to send its
+There should be a way to get \*(T<\fB\-d\fR\*(T> to send its
 output to standard output rather than forcing the user to send
 it to a file.
 .PP
 I have no idea why anyone would want to use the
-\fB-d\fR, \fB-c\fR, and
-\fB-m\fR options.  If someone could explain it to
+\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-c\fR\*(T>, and
+\*(T<\fB\-m\fR\*(T> options. If someone could explain it to
 me, I'd like to add this information to this manpage.
-.SH "ALTERNATIVES"
-.PP
+.SH ALTERNATIVES
 Here are some XML validators on the web:
 
 .nf
-http://www.hcrc.ed.ac.uk/~richard/xml-check.html
+
+http://www.hcrc.ed.ac.uk/~richard/xml\-check.html
 http://www.stg.brown.edu/service/xmlvalid/
 http://www.scripting.com/frontier5/xml/code/xmlValidator.html
 http://www.xml.com/pub/a/tools/ruwf/check.html
 .fi
 .SH "SEE ALSO"
-.PP
-
 .nf
+
 The Expat home page:        http://www.libexpat.org/
-The W3 XML specification:   http://www.w3.org/TR/REC-xml
+The W3 XML specification:   http://www.w3.org/TR/REC\-xml
 .fi
-.SH "AUTHOR"
-.PP
-This manual page was written by Scott Bronson  for
-the Debian GNU/Linux system (but may be used by others).  Permission is
+.SH AUTHOR
+This manual page was written by Scott Bronson <\*(T> for
+the Debian GNU/Linux system (but may be used by others). Permission is
 granted to copy, distribute and/or modify this document under
 the terms of the GNU Free Documentation
 License, Version 1.1.

Copied: user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.xml (from r302843, stable/10/contrib/expat/doc/xmlwf.xml)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/ngie/stable-10-libnv/contrib/expat/doc/xmlwf.xml	Thu Jul 14 14:48:40 2016	(r302844, copy of r302843, stable/10/contrib/expat/doc/xmlwf.xml)
@@ -0,0 +1,440 @@
+
+  Scott">
+  Bronson">
+  
+  March 11, 2016">
+  
+  1">
+  bronson@rinspin.com">
+  
+  XMLWF">
+  
+
+  Debian GNU/Linux">
+  GNU">
+]>
+
+
+  
+    
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2001 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + Determines if an XML document is well-formed + + + + &dhpackage; + + + + + + + + + + + + + + + + + + file ... + + + + + DESCRIPTION + + + &dhpackage; uses the Expat library to + determine if an XML document is well-formed. It is + non-validating. + + + + If you do not specify any files on the command-line, and you + have a recent version of &dhpackage;, the + input file will be read from standard input. + + + + + + WELL-FORMED DOCUMENTS + + + A well-formed document must adhere to the + following rules: + + + + + The file begins with an XML declaration. For instance, + <?xml version="1.0" standalone="yes"?>. + NOTE: + &dhpackage; does not currently + check for a valid XML declaration. + + + Every start tag is either empty (<tag/>) + or has a corresponding end tag. + + + There is exactly one root element. This element must contain + all other elements in the document. Only comments, white + space, and processing instructions may come after the close + of the root element. + + + All elements nest properly. + + + All attribute values are enclosed in quotes (either single + or double). + + + + + If the document has a DTD, and it strictly complies with that + DTD, then the document is also considered valid. + &dhpackage; is a non-validating parser -- + it does not check the DTD. However, it does support + external entities (see the option). + + + + + OPTIONS + + +When an option includes an argument, you may specify the argument either +separately (" output") or concatenated with the +option ("output"). &dhpackage; +supports both. + + + + + + + + + If the input file is well-formed and &dhpackage; + doesn't encounter any errors, the input file is simply copied to + the output directory unchanged. + This implies no namespaces (turns off ) and + requires to specify an output file. + + + + + + + + + Specifies a directory to contain transformed + representations of the input files. + By default, outputs a canonical representation + (described below). + You can select different output formats using + and . + + + The output filenames will + be exactly the same as the input filenames or "STDIN" if the input is + coming from standard input. Therefore, you must be careful that the + output file does not go into the same directory as the input + file. Otherwise, &dhpackage; will delete the + input file before it generates the output file (just like running + cat < file > file in most shells). + + + Two structurally equivalent XML documents have a byte-for-byte + identical canonical XML representation. + Note that ignorable white space is considered significant and + is treated equivalently to data. + More on canonical XML can be found at + http://www.jclark.com/xml/canonxml.html . + + + + + + + + + Specifies the character encoding for the document, overriding + any document encoding declaration. &dhpackage; + supports four built-in encodings: + US-ASCII, + UTF-8, + UTF-16, and + ISO-8859-1. + Also see the option. + + + + + + + + + Outputs some strange sort of XML file that completely + describes the input file, including character positions. + Requires to specify an output file. + + + + + + + + + Turns on namespace processing. (describe namespaces) + disables namespaces. + + + + + + + + + Tells xmlwf to process external DTDs and parameter + entities. + + + Normally &dhpackage; never parses parameter + entities. tells it to always parse them. + implies . + + + + + + + + + Normally &dhpackage; memory-maps the XML file + before parsing; this can result in faster parsing on many + platforms. *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***