svn commit: r248462 - in projects/libzfs_core: . bin/cp bin/ls bin/mkdir bin/mv bin/ps bin/rm bin/rmdir bin/sh cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/zfs cddl/contrib/opensol...

Martin Matuska mm at FreeBSD.org
Mon Mar 18 11:06:35 UTC 2013


Author: mm
Date: Mon Mar 18 09:39:51 2013
New Revision: 248462
URL: http://svnweb.freebsd.org/changeset/base/248462

Log:
  MFC @248461

Added:
  projects/libzfs_core/contrib/unvis/
     - copied from r248461, head/contrib/unvis/
  projects/libzfs_core/contrib/vis/
     - copied from r248461, head/contrib/vis/
  projects/libzfs_core/lib/libusb/libusb_global_linux.h
     - copied unchanged from r248461, head/lib/libusb/libusb_global_linux.h
  projects/libzfs_core/sys/cddl/dev/fbt/fbt_powerpc.c
     - copied unchanged from r248461, head/sys/cddl/dev/fbt/fbt_powerpc.c
  projects/libzfs_core/sys/libkern/arm/aeabi_unwind.c
     - copied unchanged from r248461, head/sys/libkern/arm/aeabi_unwind.c
  projects/libzfs_core/sys/libkern/arm/memcpy.S
     - copied unchanged from r248461, head/sys/libkern/arm/memcpy.S
  projects/libzfs_core/sys/libkern/arm/memset.S
     - copied unchanged from r248461, head/sys/libkern/arm/memset.S
  projects/libzfs_core/sys/vm/_vm_radix.h
     - copied unchanged from r248461, head/sys/vm/_vm_radix.h
  projects/libzfs_core/sys/vm/vm_radix.c
     - copied unchanged from r248461, head/sys/vm/vm_radix.c
  projects/libzfs_core/sys/vm/vm_radix.h
     - copied unchanged from r248461, head/sys/vm/vm_radix.h
  projects/libzfs_core/tools/regression/bin/sh/builtins/wait6.0
     - copied unchanged from r248461, head/tools/regression/bin/sh/builtins/wait6.0
  projects/libzfs_core/tools/regression/bin/sh/builtins/wait7.0
     - copied unchanged from r248461, head/tools/regression/bin/sh/builtins/wait7.0
Deleted:
  projects/libzfs_core/games/fortune/datfiles/fortunes-o.fake
  projects/libzfs_core/games/fortune/datfiles/fortunes-o.real
  projects/libzfs_core/games/fortune/datfiles/fortunes-o.sp.ok
  projects/libzfs_core/lib/libncp/
  projects/libzfs_core/lib/libprocstat/nwfs.c
  projects/libzfs_core/share/examples/cvsup/ports-supfile
  projects/libzfs_core/share/examples/cvsup/refuse
  projects/libzfs_core/share/examples/cvsup/refuse.README
  projects/libzfs_core/share/examples/nwclient/
  projects/libzfs_core/share/man/man4/vinum.4
  projects/libzfs_core/sys/fs/nwfs/
  projects/libzfs_core/sys/modules/ncp/
  projects/libzfs_core/sys/modules/nwfs/
  projects/libzfs_core/sys/netncp/
  projects/libzfs_core/usr.bin/ncplist/
  projects/libzfs_core/usr.bin/ncplogin/
  projects/libzfs_core/usr.bin/unvis/unvis.1
  projects/libzfs_core/usr.bin/unvis/unvis.c
  projects/libzfs_core/usr.bin/vis/extern.h
  projects/libzfs_core/usr.bin/vis/foldit.c
  projects/libzfs_core/usr.bin/vis/vis.1
  projects/libzfs_core/usr.bin/vis/vis.c
  projects/libzfs_core/usr.sbin/mount_nwfs/
Modified:
  projects/libzfs_core/ObsoleteFiles.inc
  projects/libzfs_core/bin/cp/cp.1
  projects/libzfs_core/bin/ls/ls.1
  projects/libzfs_core/bin/mkdir/mkdir.1
  projects/libzfs_core/bin/mv/mv.1
  projects/libzfs_core/bin/ps/ps.1
  projects/libzfs_core/bin/rm/rm.1
  projects/libzfs_core/bin/rmdir/rmdir.1
  projects/libzfs_core/bin/sh/jobs.c
  projects/libzfs_core/cddl/contrib/opensolaris/cmd/zdb/zdb.c
  projects/libzfs_core/cddl/contrib/opensolaris/cmd/zfs/zfs.8
  projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool.8
  projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
  projects/libzfs_core/contrib/binutils/gas/config/tc-arm.c
  projects/libzfs_core/contrib/libc-vis/unvis.3
  projects/libzfs_core/contrib/libc-vis/unvis.c
  projects/libzfs_core/contrib/libc-vis/vis.3
  projects/libzfs_core/contrib/libc-vis/vis.c
  projects/libzfs_core/contrib/libc-vis/vis.h
  projects/libzfs_core/contrib/tzdata/africa
  projects/libzfs_core/contrib/tzdata/antarctica
  projects/libzfs_core/contrib/tzdata/asia
  projects/libzfs_core/contrib/tzdata/australasia
  projects/libzfs_core/contrib/tzdata/europe
  projects/libzfs_core/contrib/tzdata/northamerica
  projects/libzfs_core/contrib/tzdata/southamerica
  projects/libzfs_core/contrib/tzdata/zone.tab
  projects/libzfs_core/crypto/openssh/session.c
  projects/libzfs_core/etc/mtree/BSD.include.dist
  projects/libzfs_core/games/fortune/datfiles/Makefile
  projects/libzfs_core/gnu/lib/libgcc/Makefile
  projects/libzfs_core/lib/libc/gen/Makefile.inc
  projects/libzfs_core/lib/libc/gen/Symbol.map
  projects/libzfs_core/lib/libc/gen/getcontext.3
  projects/libzfs_core/lib/libc/net/nscachedcli.c
  projects/libzfs_core/lib/libc/stdlib/realpath.3
  projects/libzfs_core/lib/libc/sys/chflags.2
  projects/libzfs_core/lib/libipsec/test-policy.c
  projects/libzfs_core/lib/libnetgraph/msg.c
  projects/libzfs_core/lib/libusb/Makefile
  projects/libzfs_core/lib/libusb/libusb.h
  projects/libzfs_core/lib/libusb/libusb01.c
  projects/libzfs_core/lib/libusb/libusb10.c
  projects/libzfs_core/lib/libusb/libusb10.h
  projects/libzfs_core/lib/libusb/libusb10_desc.c
  projects/libzfs_core/lib/libusb/libusb10_io.c
  projects/libzfs_core/lib/libusb/libusb20.c
  projects/libzfs_core/lib/libusb/libusb20.h
  projects/libzfs_core/lib/libusb/libusb20_desc.c
  projects/libzfs_core/lib/libusb/libusb20_desc.h
  projects/libzfs_core/lib/libusb/libusb20_ugen20.c
  projects/libzfs_core/lib/libusb/usb.h
  projects/libzfs_core/lib/libutil/gr_util.c
  projects/libzfs_core/lib/libutil/pidfile.c
  projects/libzfs_core/sbin/ccdconfig/ccdconfig.8
  projects/libzfs_core/sbin/ffsinfo/ffsinfo.8
  projects/libzfs_core/sbin/geom/class/concat/gconcat.8
  projects/libzfs_core/sbin/geom/class/mirror/gmirror.8
  projects/libzfs_core/sbin/geom/class/raid/graid.8
  projects/libzfs_core/sbin/geom/class/stripe/gstripe.8
  projects/libzfs_core/sbin/gvinum/gvinum.8
  projects/libzfs_core/sbin/hastctl/hastctl.8
  projects/libzfs_core/sbin/hastctl/hastctl.c
  projects/libzfs_core/sbin/hastd/hastd.8
  projects/libzfs_core/sbin/hastd/secondary.c
  projects/libzfs_core/sbin/hastd/subr.c
  projects/libzfs_core/sbin/recoverdisk/recoverdisk.c
  projects/libzfs_core/share/examples/Makefile
  projects/libzfs_core/share/examples/cvsup/README
  projects/libzfs_core/share/examples/cvsup/cvs-supfile
  projects/libzfs_core/share/examples/cvsup/stable-supfile
  projects/libzfs_core/share/man/man4/Makefile
  projects/libzfs_core/share/man/man4/cas.4
  projects/libzfs_core/share/man/man4/ccd.4
  projects/libzfs_core/share/man/man4/geom.4
  projects/libzfs_core/share/man/man4/sge.4
  projects/libzfs_core/share/man/man4/udp.4
  projects/libzfs_core/share/misc/bsd-family-tree
  projects/libzfs_core/share/misc/committers-ports.dot
  projects/libzfs_core/share/misc/organization.dot
  projects/libzfs_core/sys/Makefile
  projects/libzfs_core/sys/amd64/amd64/pmap.c
  projects/libzfs_core/sys/amd64/include/pmap.h
  projects/libzfs_core/sys/amd64/vmm/intel/vmx.c
  projects/libzfs_core/sys/amd64/vmm/vmm.c
  projects/libzfs_core/sys/amd64/vmm/vmm_stat.c
  projects/libzfs_core/sys/amd64/vmm/vmm_stat.h
  projects/libzfs_core/sys/arm/arm/bcopy_page.S
  projects/libzfs_core/sys/arm/arm/bcopyinout.S
  projects/libzfs_core/sys/arm/arm/bcopyinout_xscale.S
  projects/libzfs_core/sys/arm/arm/blockio.S
  projects/libzfs_core/sys/arm/arm/bus_space_asm_generic.S
  projects/libzfs_core/sys/arm/arm/copystr.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_arm10.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_arm11.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_arm11x6.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_arm7tdmi.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_arm8.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_arm9.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_armv4.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_armv5.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_armv5_ec.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_armv6.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_armv7.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_fa526.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_ixp12x0.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_pj4b.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_sa1.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_sa11x0.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_sheeva.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_xscale.S
  projects/libzfs_core/sys/arm/arm/cpufunc_asm_xscale_c3.S
  projects/libzfs_core/sys/arm/arm/db_trace.c
  projects/libzfs_core/sys/arm/arm/disassem.c
  projects/libzfs_core/sys/arm/arm/elf_trampoline.c
  projects/libzfs_core/sys/arm/arm/exception.S
  projects/libzfs_core/sys/arm/arm/fiq_subr.S
  projects/libzfs_core/sys/arm/arm/fusu.S
  projects/libzfs_core/sys/arm/arm/in_cksum_arm.S
  projects/libzfs_core/sys/arm/arm/irq_dispatch.S
  projects/libzfs_core/sys/arm/arm/locore.S
  projects/libzfs_core/sys/arm/arm/pmap-v6.c
  projects/libzfs_core/sys/arm/arm/pmap.c
  projects/libzfs_core/sys/arm/arm/setcpsr.S
  projects/libzfs_core/sys/arm/arm/support.S
  projects/libzfs_core/sys/arm/arm/swtch.S
  projects/libzfs_core/sys/arm/at91/if_ate.c
  projects/libzfs_core/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
  projects/libzfs_core/sys/arm/include/asm.h
  projects/libzfs_core/sys/arm/include/bus.h
  projects/libzfs_core/sys/arm/include/param.h
  projects/libzfs_core/sys/arm/include/pmap.h
  projects/libzfs_core/sys/arm/include/signal.h
  projects/libzfs_core/sys/arm/ti/cpsw/if_cpsw.c
  projects/libzfs_core/sys/arm/ti/ti_mmchs.c
  projects/libzfs_core/sys/boot/common/load_elf.c
  projects/libzfs_core/sys/boot/fdt/fdt_loader_cmd.c
  projects/libzfs_core/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
  projects/libzfs_core/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
  projects/libzfs_core/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S
  projects/libzfs_core/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c
  projects/libzfs_core/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c
  projects/libzfs_core/sys/compat/ndis/kern_ndis.c
  projects/libzfs_core/sys/conf/Makefile.arm
  projects/libzfs_core/sys/conf/NOTES
  projects/libzfs_core/sys/conf/files
  projects/libzfs_core/sys/conf/files.arm
  projects/libzfs_core/sys/conf/ldscript.arm
  projects/libzfs_core/sys/dev/acpica/acpi_hpet.c
  projects/libzfs_core/sys/dev/acpica/acpi_powerres.c
  projects/libzfs_core/sys/dev/ath/ath_hal/ar5416/ar5416reg.h
  projects/libzfs_core/sys/dev/ath/ath_hal/ar9002/ar9285_btcoex.c
  projects/libzfs_core/sys/dev/ath/if_ath.c
  projects/libzfs_core/sys/dev/ath/if_ath_rx.c
  projects/libzfs_core/sys/dev/ath/if_ath_rx_edma.c
  projects/libzfs_core/sys/dev/ath/if_ath_sysctl.c
  projects/libzfs_core/sys/dev/ath/if_ath_tx.c
  projects/libzfs_core/sys/dev/ath/if_athioctl.h
  projects/libzfs_core/sys/dev/ath/if_athvar.h
  projects/libzfs_core/sys/dev/bge/if_bge.c
  projects/libzfs_core/sys/dev/ichwd/ichwd.c
  projects/libzfs_core/sys/dev/iscsi/initiator/isc_soc.c
  projects/libzfs_core/sys/dev/puc/pucdata.c
  projects/libzfs_core/sys/dev/re/if_re.c
  projects/libzfs_core/sys/dev/sis/if_sis.c
  projects/libzfs_core/sys/dev/sis/if_sisreg.h
  projects/libzfs_core/sys/dev/sound/pci/hda/hdaa_patches.c
  projects/libzfs_core/sys/dev/sound/pci/hda/hdac.h
  projects/libzfs_core/sys/dev/sound/pcm/sndstat.c
  projects/libzfs_core/sys/dev/usb/serial/uftdi.c
  projects/libzfs_core/sys/dev/usb/usb_device.c
  projects/libzfs_core/sys/dev/usb/usb_request.c
  projects/libzfs_core/sys/dev/usb/usbdevs
  projects/libzfs_core/sys/dev/usb/wlan/if_run.c
  projects/libzfs_core/sys/fs/cd9660/cd9660_vnops.c
  projects/libzfs_core/sys/fs/ext2fs/ext2_balloc.c
  projects/libzfs_core/sys/fs/ext2fs/ext2_vnops.c
  projects/libzfs_core/sys/fs/msdosfs/msdosfs_vnops.c
  projects/libzfs_core/sys/fs/nfs/nfsport.h
  projects/libzfs_core/sys/fs/nfsclient/nfs_clbio.c
  projects/libzfs_core/sys/fs/nfsclient/nfs_clvnops.c
  projects/libzfs_core/sys/fs/smbfs/smbfs_smb.c
  projects/libzfs_core/sys/fs/smbfs/smbfs_vnops.c
  projects/libzfs_core/sys/fs/tmpfs/tmpfs_vnops.c
  projects/libzfs_core/sys/fs/udf/udf_vnops.c
  projects/libzfs_core/sys/geom/gate/g_gate.c
  projects/libzfs_core/sys/i386/i386/pmap.c
  projects/libzfs_core/sys/i386/include/pmap.h
  projects/libzfs_core/sys/i386/xen/pmap.c
  projects/libzfs_core/sys/ia64/ia64/pmap.c
  projects/libzfs_core/sys/kern/capabilities.conf
  projects/libzfs_core/sys/kern/imgact_elf.c
  projects/libzfs_core/sys/kern/kern_et.c
  projects/libzfs_core/sys/kern/kern_racct.c
  projects/libzfs_core/sys/kern/kern_synch.c
  projects/libzfs_core/sys/kern/kern_time.c
  projects/libzfs_core/sys/kern/kern_timeout.c
  projects/libzfs_core/sys/kern/kern_umtx.c
  projects/libzfs_core/sys/kern/subr_sleepqueue.c
  projects/libzfs_core/sys/kern/subr_trap.c
  projects/libzfs_core/sys/kern/uipc_mbuf.c
  projects/libzfs_core/sys/kern/uipc_sockbuf.c
  projects/libzfs_core/sys/kern/uipc_socket.c
  projects/libzfs_core/sys/kern/uipc_syscalls.c
  projects/libzfs_core/sys/kern/uipc_usrreq.c
  projects/libzfs_core/sys/kern/vfs_bio.c
  projects/libzfs_core/sys/kern/vfs_cluster.c
  projects/libzfs_core/sys/kern/vfs_syscalls.c
  projects/libzfs_core/sys/kern/vfs_vnops.c
  projects/libzfs_core/sys/libkern/arm/divsi3.S
  projects/libzfs_core/sys/libkern/arm/ffs.S
  projects/libzfs_core/sys/libkern/arm/ldivmod.S
  projects/libzfs_core/sys/mips/mips/pmap.c
  projects/libzfs_core/sys/modules/ath/Makefile
  projects/libzfs_core/sys/modules/dtrace/Makefile
  projects/libzfs_core/sys/modules/dtrace/dtraceall/dtraceall.c
  projects/libzfs_core/sys/modules/dtrace/fbt/Makefile
  projects/libzfs_core/sys/modules/uart/Makefile
  projects/libzfs_core/sys/net/bpf.c
  projects/libzfs_core/sys/net/bridgestp.c
  projects/libzfs_core/sys/net/if_bridge.c
  projects/libzfs_core/sys/net/if_gre.c
  projects/libzfs_core/sys/net/rtsock.c
  projects/libzfs_core/sys/net80211/ieee80211_output.c
  projects/libzfs_core/sys/net80211/ieee80211_superg.c
  projects/libzfs_core/sys/netinet/igmp.c
  projects/libzfs_core/sys/netinet/ip_carp.c
  projects/libzfs_core/sys/netinet/ip_input.c
  projects/libzfs_core/sys/netinet/ip_mroute.c
  projects/libzfs_core/sys/netinet/ip_options.c
  projects/libzfs_core/sys/netinet/ip_output.c
  projects/libzfs_core/sys/netinet/libalias/alias.c
  projects/libzfs_core/sys/netinet/libalias/alias_db.c
  projects/libzfs_core/sys/netinet/tcp_output.c
  projects/libzfs_core/sys/netinet/tcp_subr.c
  projects/libzfs_core/sys/netinet6/icmp6.c
  projects/libzfs_core/sys/netinet6/ip6_input.c
  projects/libzfs_core/sys/netinet6/ip6_mroute.c
  projects/libzfs_core/sys/netinet6/ip6_output.c
  projects/libzfs_core/sys/netinet6/mld6.c
  projects/libzfs_core/sys/netinet6/nd6_nbr.c
  projects/libzfs_core/sys/netinet6/raw_ip6.c
  projects/libzfs_core/sys/netipsec/key.c
  projects/libzfs_core/sys/netpfil/pf/if_pfsync.c
  projects/libzfs_core/sys/netpfil/pf/pf.c
  projects/libzfs_core/sys/netsmb/smb_dev.c
  projects/libzfs_core/sys/nfs/krpc_subr.c
  projects/libzfs_core/sys/nfs/nfs_common.c
  projects/libzfs_core/sys/nfsclient/nfs_bio.c
  projects/libzfs_core/sys/nfsclient/nfs_subs.c
  projects/libzfs_core/sys/nfsclient/nfs_vfsops.c
  projects/libzfs_core/sys/nfsclient/nfs_vnops.c
  projects/libzfs_core/sys/nfsclient/nfsm_subs.h
  projects/libzfs_core/sys/nfsclient/nfsmount.h
  projects/libzfs_core/sys/powerpc/aim/mmu_oea.c
  projects/libzfs_core/sys/powerpc/aim/mmu_oea64.c
  projects/libzfs_core/sys/powerpc/aim/trap.c
  projects/libzfs_core/sys/powerpc/aim/trap_subr32.S
  projects/libzfs_core/sys/powerpc/aim/trap_subr64.S
  projects/libzfs_core/sys/powerpc/booke/pmap.c
  projects/libzfs_core/sys/powerpc/powerpc/mmu_if.m
  projects/libzfs_core/sys/powerpc/powerpc/pmap_dispatch.c
  projects/libzfs_core/sys/rpc/clnt_dg.c
  projects/libzfs_core/sys/rpc/clnt_rc.c
  projects/libzfs_core/sys/rpc/clnt_vc.c
  projects/libzfs_core/sys/rpc/rpc_generic.c
  projects/libzfs_core/sys/rpc/rpcm_subs.h
  projects/libzfs_core/sys/rpc/svc.c
  projects/libzfs_core/sys/rpc/svc_dg.c
  projects/libzfs_core/sys/rpc/svc_vc.c
  projects/libzfs_core/sys/sparc64/sparc64/pmap.c
  projects/libzfs_core/sys/sys/buf.h
  projects/libzfs_core/sys/sys/mbuf.h
  projects/libzfs_core/sys/sys/param.h
  projects/libzfs_core/sys/sys/vnode.h
  projects/libzfs_core/sys/ufs/ffs/ffs_balloc.c
  projects/libzfs_core/sys/ufs/ffs/ffs_vnops.c
  projects/libzfs_core/sys/ufs/ufs/ufs_vnops.c
  projects/libzfs_core/sys/vm/pmap.h
  projects/libzfs_core/sys/vm/vm_kern.c
  projects/libzfs_core/sys/vm/vm_object.c
  projects/libzfs_core/sys/vm/vm_object.h
  projects/libzfs_core/sys/vm/vm_page.c
  projects/libzfs_core/sys/vm/vm_page.h
  projects/libzfs_core/sys/vm/vm_reserv.c
  projects/libzfs_core/sys/vm/vnode_pager.c
  projects/libzfs_core/sys/xdr/xdr_mbuf.c
  projects/libzfs_core/tools/regression/pjdfstest/tests/misc.sh
  projects/libzfs_core/tools/regression/security/cap_test/cap_test_capabilities.c
  projects/libzfs_core/usr.bin/ee/nls/ru_RU.KOI8-R/ee.msg
  projects/libzfs_core/usr.bin/find/find.h
  projects/libzfs_core/usr.bin/find/function.c
  projects/libzfs_core/usr.bin/grep/regex/tre-fastmatch.c
  projects/libzfs_core/usr.bin/head/head.1
  projects/libzfs_core/usr.bin/netstat/netstat.1
  projects/libzfs_core/usr.bin/renice/renice.8
  projects/libzfs_core/usr.bin/script/script.1
  projects/libzfs_core/usr.bin/tail/tail.1
  projects/libzfs_core/usr.bin/top/machine.c
  projects/libzfs_core/usr.bin/unifdef/unifdefall.sh
  projects/libzfs_core/usr.bin/unvis/Makefile
  projects/libzfs_core/usr.bin/vis/Makefile
  projects/libzfs_core/usr.sbin/ac/ac.8
  projects/libzfs_core/usr.sbin/bhyve/pci_passthru.c
  projects/libzfs_core/usr.sbin/bhyve/pci_virtio_net.c
  projects/libzfs_core/usr.sbin/pkg/Makefile
  projects/libzfs_core/usr.sbin/usbconfig/usbconfig.c
Directory Properties:
  projects/libzfs_core/   (props changed)
  projects/libzfs_core/cddl/contrib/opensolaris/   (props changed)
  projects/libzfs_core/cddl/contrib/opensolaris/cmd/zfs/   (props changed)
  projects/libzfs_core/contrib/binutils/   (props changed)
  projects/libzfs_core/contrib/libc-vis/   (props changed)
  projects/libzfs_core/contrib/tzdata/   (props changed)
  projects/libzfs_core/crypto/openssh/   (props changed)
  projects/libzfs_core/gnu/lib/   (props changed)
  projects/libzfs_core/lib/libc/   (props changed)
  projects/libzfs_core/lib/libutil/   (props changed)
  projects/libzfs_core/sbin/   (props changed)
  projects/libzfs_core/share/man/man4/   (props changed)
  projects/libzfs_core/sys/   (props changed)
  projects/libzfs_core/sys/amd64/vmm/   (props changed)
  projects/libzfs_core/sys/boot/   (props changed)
  projects/libzfs_core/sys/cddl/contrib/opensolaris/   (props changed)
  projects/libzfs_core/sys/conf/   (props changed)
  projects/libzfs_core/usr.sbin/bhyve/   (props changed)

Modified: projects/libzfs_core/ObsoleteFiles.inc
==============================================================================
--- projects/libzfs_core/ObsoleteFiles.inc	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/ObsoleteFiles.inc	Mon Mar 18 09:39:51 2013	(r248462)
@@ -38,6 +38,51 @@
 #   xargs -n1 | sort | uniq -d;
 # done
 
+OLD_FILES+=usr/share/man/man4/vinum.4.gz
+# 20130311: Ports are no more available via cvsup
+OLD_FILES+=usr/share/examples/cvsup/ports-supfile
+OLD_FILES+=usr/share/examples/cvsup/refuse
+OLD_FILES+=usr/share/examples/cvsup/refuse.README
+# 20130309: NWFS and NCP supports removed
+OLD_FILES+=usr/bin/ncplist
+OLD_FILES+=usr/bin/ncplogin
+OLD_FILES+=usr/bin/ncplogout
+OLD_FILES+=usr/include/fs/nwfs/nwfs.h
+OLD_FILES+=usr/include/fs/nwfs/nwfs_mount.h
+OLD_FILES+=usr/include/fs/nwfs/nwfs_node.h
+OLD_FILES+=usr/include/fs/nwfs/nwfs_subr.h
+OLD_DIRS+=usr/include/fs/nwfs
+OLD_FILES+=usr/include/netncp/ncp.h
+OLD_FILES+=usr/include/netncp/ncp_cfg.h
+OLD_FILES+=usr/include/netncp/ncp_conn.h
+OLD_FILES+=usr/include/netncp/ncp_file.h
+OLD_FILES+=usr/include/netncp/ncp_lib.h
+OLD_FILES+=usr/include/netncp/ncp_ncp.h
+OLD_FILES+=usr/include/netncp/ncp_nls.h
+OLD_FILES+=usr/include/netncp/ncp_rcfile.h
+OLD_FILES+=usr/include/netncp/ncp_rq.h
+OLD_FILES+=usr/include/netncp/ncp_sock.h
+OLD_FILES+=usr/include/netncp/ncp_subr.h
+OLD_FILES+=usr/include/netncp/ncp_user.h
+OLD_FILES+=usr/include/netncp/ncpio.h
+OLD_FILES+=usr/include/netncp/nwerror.h
+OLD_DIRS+=usr/include/netncp
+OLD_FILES+=usr/lib/libncp.a
+OLD_FILES+=usr/lib/libncp.so
+OLD_LIBS+=usr/lib/libncp.so.4
+OLD_FILES+=usr/lib/libncp_p.a
+OLD_FILES+=usr/lib32/libncp.a
+OLD_FILES+=usr/lib32/libncp.so
+OLD_LIBS+=usr/lib32/libncp.so.4
+OLD_FILES+=usr/lib32/libncp_p.a
+OLD_FILES+=usr/sbin/mount_nwfs
+OLD_FILES+=usr/share/examples/nwclient/dot.nwfsrc
+OLD_FILES+=usr/share/examples/nwclient/nwfs.sh.sample
+OLD_DIRS+=usr/share/examples/nwclient
+OLD_FILES+=usr/share/man/man1/ncplist.1.gz
+OLD_FILES+=usr/share/man/man1/ncplogin.1.gz
+OLD_FILES+=usr/share/man/man1/ncplogout.1.gz
+OLD_FILES+=usr/share/man/man8/mount_nwfs.8.gz
 # 20130302: NTFS support removed
 OLD_FILES+=rescue/mount_ntfs
 OLD_FILES+=sbin/mount_ntfs
@@ -62,6 +107,12 @@ OLD_FILES+=usr/share/man/man8/mount_port
 OLD_FILES+=usr/share/man/man4/coda.4.gz
 # 20130302: XFS support removed
 OLD_FILES+=usr/share/man/man5/xfs.5.gz
+# 20130302: Capsicum overhaul
+OLD_FILES+=usr/share/man/man2/cap_getrights.2.gz
+OLD_FILES+=usr/share/man/man2/cap_new.2.gz
+# 20130213: OpenSSL 1.0.1e import
+OLD_FILES+=usr/share/openssl/man/man3/EVP_PKEY_verifyrecover.3.gz
+OLD_FILES+=usr/share/openssl/man/man3/EVP_PKEY_verifyrecover_init.3.gz
 # 20130116: removed long unused directories for .1aout section manpages
 OLD_FILES+=usr/share/man/en.ISO8859-1/man1aout
 OLD_FILES+=usr/share/man/en.UTF-8/man1aout

Modified: projects/libzfs_core/bin/cp/cp.1
==============================================================================
--- projects/libzfs_core/bin/cp/cp.1	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/cp/cp.1	Mon Mar 18 09:39:51 2013	(r248462)
@@ -32,7 +32,7 @@
 .\"	@(#)cp.1	8.3 (Berkeley) 4/18/94
 .\" $FreeBSD$
 .\"
-.Dd September 4, 2012
+.Dd March 15, 2013
 .Dt CP 1
 .Os
 .Sh NAME
@@ -251,6 +251,27 @@ signal, the current input and output fil
 will be written to the standard output.
 .Sh EXIT STATUS
 .Ex -std
+.Sh EXAMPLES
+Make a copy of file
+.Pa foo
+named
+.Pa bar :
+.Pp
+.Dl $ cp foo bar
+.Pp
+Copy a group of files to the
+.Pa /tmp
+directory:
+.Pp
+.Dl $ cp *.txt /tmp
+.Pp
+Copy the directory
+.Pa junk
+and all of its contents (including any subdirectories) to the
+.Pa /tmp
+directory:
+.Pp
+.Dl $ cp -R junk /tmp
 .Sh COMPATIBILITY
 Historic versions of the
 .Nm

Modified: projects/libzfs_core/bin/ls/ls.1
==============================================================================
--- projects/libzfs_core/bin/ls/ls.1	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/ls/ls.1	Mon Mar 18 09:39:51 2013	(r248462)
@@ -32,7 +32,7 @@
 .\"     @(#)ls.1	8.7 (Berkeley) 7/29/94
 .\" $FreeBSD$
 .\"
-.Dd November 8, 2012
+.Dd March 15, 2013
 .Dt LS 1
 .Os
 .Sh NAME
@@ -718,6 +718,24 @@ for more information.
 .El
 .Sh EXIT STATUS
 .Ex -std
+.Sh EXAMPLES
+List the contents of the current working directory in long format:
+.Pp
+.Dl $ ls -l
+.Pp
+In addition to listing the contents of the current working directory in
+long format, show inode numbers, file flags (see
+.Xr chflags 1 ) ,
+and suffix each filename with a symbol representing its file type:
+.Pp
+.Dl $ ls -lioF
+.Pp
+List the files in
+.Pa /var/log ,
+sorting the output such that the mostly recently modified entries are
+printed first:
+.Pp
+.Dl $ ls -lt /var/log
 .Sh COMPATIBILITY
 The group field is now automatically included in the long listing for
 files in order to be compatible with the

Modified: projects/libzfs_core/bin/mkdir/mkdir.1
==============================================================================
--- projects/libzfs_core/bin/mkdir/mkdir.1	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/mkdir/mkdir.1	Mon Mar 18 09:39:51 2013	(r248462)
@@ -32,7 +32,7 @@
 .\"	@(#)mkdir.1	8.2 (Berkeley) 1/25/94
 .\" $FreeBSD$
 .\"
-.Dd January 25, 1994
+.Dd March 15, 2013
 .Dt MKDIR 1
 .Os
 .Sh NAME
@@ -87,6 +87,23 @@ Be verbose when creating directories, li
 The user must have write permission in the parent directory.
 .Sh EXIT STATUS
 .Ex -std
+.Sh EXAMPLES
+Create a directory named
+.Pa foobar :
+.Pp
+.Dl $ mkdir foobar
+.Pp
+Create a directory named
+.Pa foobar
+and set its file mode to 700:
+.Pp
+.Dl $ mkdir -m 700 foobar
+.Pp
+Create a directory named
+.Pa cow/horse/monkey ,
+creating any non-existent intermediate directories as necessary:
+.Pp
+.Dl $ mkdir -p cow/horse/monkey
 .Sh COMPATIBILITY
 The
 .Fl v

Modified: projects/libzfs_core/bin/mv/mv.1
==============================================================================
--- projects/libzfs_core/bin/mv/mv.1	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/mv/mv.1	Mon Mar 18 09:39:51 2013	(r248462)
@@ -32,7 +32,7 @@
 .\"	@(#)mv.1	8.1 (Berkeley) 5/31/93
 .\" $FreeBSD$
 .\"
-.Dd August 28, 2012
+.Dd March 15, 2013
 .Dt MV 1
 .Os
 .Sh NAME
@@ -155,6 +155,16 @@ rm -rf source_file
 .Ed
 .Sh EXIT STATUS
 .Ex -std
+.Sh EXAMPLES
+Rename file
+.Pa foo
+to
+.Pa bar ,
+overwriting
+.Pa bar
+if it already exists:
+.Pp
+.Dl $ mv -f foo bar
 .Sh COMPATIBILITY
 The
 .Fl h ,

Modified: projects/libzfs_core/bin/ps/ps.1
==============================================================================
--- projects/libzfs_core/bin/ps/ps.1	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/ps/ps.1	Mon Mar 18 09:39:51 2013	(r248462)
@@ -29,7 +29,7 @@
 .\"     @(#)ps.1	8.3 (Berkeley) 4/18/94
 .\" $FreeBSD$
 .\"
-.Dd February 7, 2013
+.Dd March 15, 2013
 .Dt PS 1
 .Os
 .Sh NAME
@@ -689,6 +689,10 @@ attempts to automatically determine the 
 .It Pa /boot/kernel/kernel
 default system namelist
 .El
+.Sh EXAMPLES
+Display information on all system processes:
+.Pp
+.Dl $ ps -auxw
 .Sh SEE ALSO
 .Xr kill 1 ,
 .Xr pgrep 1 ,

Modified: projects/libzfs_core/bin/rm/rm.1
==============================================================================
--- projects/libzfs_core/bin/rm/rm.1	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/rm/rm.1	Mon Mar 18 09:39:51 2013	(r248462)
@@ -32,7 +32,7 @@
 .\"	@(#)rm.1	8.5 (Berkeley) 12/5/94
 .\" $FreeBSD$
 .\"
-.Dd October 31, 2010
+.Dd March 15, 2013
 .Dt RM 1
 .Os
 .Sh NAME
@@ -193,6 +193,19 @@ When
 is specified with
 .Fl f
 the file will be overwritten and removed even if it has hard links.
+.Sh EXAMPLES
+Recursively remove all files contained within the
+.Pa foobar
+directory hierarchy:
+.Pp
+.Dl $ rm -rf foobar
+.Pp
+Either of these commands will remove the file
+.Pa -f :
+.Bd -literal -offset indent
+$ rm -- -f
+$ rm ./-f
+.Ed
 .Sh COMPATIBILITY
 The
 .Nm

Modified: projects/libzfs_core/bin/rmdir/rmdir.1
==============================================================================
--- projects/libzfs_core/bin/rmdir/rmdir.1	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/rmdir/rmdir.1	Mon Mar 18 09:39:51 2013	(r248462)
@@ -32,7 +32,7 @@
 .\"	@(#)rmdir.1	8.1 (Berkeley) 5/31/93
 .\" $FreeBSD$
 .\"
-.Dd March 21, 2004
+.Dd March 15, 2013
 .Dt RMDIR 1
 .Os
 .Sh NAME
@@ -86,6 +86,18 @@ successfully.
 .It Li >0
 An error occurred.
 .El
+.Sh EXAMPLES
+Remove the directory
+.Pa foobar ,
+if it is empty:
+.Pp
+.Dl $ rmdir foobar
+.Pp
+Remove all directories up to and including
+.Pa cow ,
+stopping at the first non-empty directory (if any):
+.Pp
+.Dl $ rmdir -p cow/horse/monkey
 .Sh SEE ALSO
 .Xr rm 1
 .Sh STANDARDS

Modified: projects/libzfs_core/bin/sh/jobs.c
==============================================================================
--- projects/libzfs_core/bin/sh/jobs.c	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/bin/sh/jobs.c	Mon Mar 18 09:39:51 2013	(r248462)
@@ -458,14 +458,15 @@ freejob(struct job *jp)
 
 
 int
-waitcmd(int argc, char **argv)
+waitcmd(int argc __unused, char **argv __unused)
 {
 	struct job *job;
 	int status, retval;
 	struct job *jp;
 
-	if (argc > 1) {
-		job = getjob(argv[1]);
+	nextopt("");
+	if (*argptr != NULL) {
+		job = getjob(*argptr);
 	} else {
 		job = NULL;
 	}

Modified: projects/libzfs_core/cddl/contrib/opensolaris/cmd/zdb/zdb.c
==============================================================================
--- projects/libzfs_core/cddl/contrib/opensolaris/cmd/zdb/zdb.c	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/cddl/contrib/opensolaris/cmd/zdb/zdb.c	Mon Mar 18 09:39:51 2013	(r248462)
@@ -1256,6 +1256,7 @@ dump_bpobj(bpobj_t *bpo, char *name, int
 				continue;
 			}
 			dump_bpobj(&subbpo, "subobj", indent + 1);
+			bpobj_close(&subbpo);
 		}
 	} else {
 		(void) printf("    %*s: object %llu, %llu blkptrs, %s\n",

Modified: projects/libzfs_core/cddl/contrib/opensolaris/cmd/zfs/zfs.8
==============================================================================
--- projects/libzfs_core/cddl/contrib/opensolaris/cmd/zfs/zfs.8	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/cddl/contrib/opensolaris/cmd/zfs/zfs.8	Mon Mar 18 09:39:51 2013	(r248462)
@@ -28,7 +28,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 10, 2013
+.Dd March 1, 2013
 .Dt ZFS 8
 .Os
 .Sh NAME

Modified: projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool.8
==============================================================================
--- projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool.8	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool.8	Mon Mar 18 09:39:51 2013	(r248462)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd November 15, 2012
+.Dd March 14, 2013
 .Dt ZPOOL 8
 .Os
 .Sh NAME
@@ -1608,14 +1608,15 @@ is specified, the command exits after
 .Ar count
 reports are printed.
 .Pp
-If a scrub or resilver is in progress, this command reports the percentage done
-and the estimated time to completion. Both of these are only approximate,
+If a scrub or resilver is in progress, this command reports the percentage
+done and the estimated time to completion. Both of these are only approximate,
 because the amount of data in the pool and the other workloads on the system
 can change.
 .Bl -tag -width indent
 .It Fl x
 Only display status for pools that are exhibiting errors or are otherwise
 unavailable.
+Warnings about pools not using the latest on-disk format will not be included.
 .It Fl v
 Displays verbose data error information, printing out a complete list of all
 data errors since the last complete pool scrub.

Modified: projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
==============================================================================
--- projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Mon Mar 18 09:39:51 2013	(r248462)
@@ -4037,7 +4037,10 @@ status_callback(zpool_handle_t *zhp, voi
 	 * If we were given 'zpool status -x', only report those pools with
 	 * problems.
 	 */
-	if (reason == ZPOOL_STATUS_OK && cbp->cb_explain) {
+	if (cbp->cb_explain &&
+	    (reason == ZPOOL_STATUS_OK ||
+	    reason == ZPOOL_STATUS_VERSION_OLDER ||
+	    reason == ZPOOL_STATUS_FEAT_DISABLED)) {
 		if (!cbp->cb_allpools) {
 			(void) printf(gettext("pool '%s' is healthy\n"),
 			    zpool_get_name(zhp));

Modified: projects/libzfs_core/contrib/binutils/gas/config/tc-arm.c
==============================================================================
--- projects/libzfs_core/contrib/binutils/gas/config/tc-arm.c	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/contrib/binutils/gas/config/tc-arm.c	Mon Mar 18 09:39:51 2013	(r248462)
@@ -651,6 +651,7 @@ struct asm_opcode
 
 #define BAD_ARGS	_("bad arguments to instruction")
 #define BAD_PC		_("r15 not allowed here")
+#define BAD_SP		_("r13 not allowed here")
 #define BAD_COND	_("instruction cannot be conditional")
 #define BAD_OVERLAP	_("registers may not be the same")
 #define BAD_HIREG	_("lo register required")
@@ -659,6 +660,7 @@ struct asm_opcode
 #define BAD_BRANCH	_("branch must be last instruction in IT block")
 #define BAD_NOT_IT	_("instruction not allowed in IT block")
 #define BAD_FPU		_("selected FPU does not support instruction")
+#define BAD_VMRS	_("APSR_nzcv may only be used with fpscr")
 
 static struct hash_control *arm_ops_hsh;
 static struct hash_control *arm_cond_hsh;
@@ -5164,10 +5166,6 @@ parse_neon_mov (char **str, int *which_o
              Case 10: VMOV.F32 <Sd>, #<imm>
              Case 11: VMOV.F64 <Dd>, #<imm>  */
         inst.operands[i].immisfloat = 1;
-      else if (parse_big_immediate (&ptr, i) == SUCCESS)
-          /* Case 2: VMOV<c><q>.<dt> <Qd>, #<imm>
-             Case 3: VMOV<c><q>.<dt> <Dd>, #<imm>  */
-        ;
       else if ((val = arm_typed_reg_parse (&ptr, REG_TYPE_NSDQ, &rtype,
                                            &optype)) != FAIL)
         {
@@ -5207,6 +5205,10 @@ parse_neon_mov (char **str, int *which_o
               inst.operands[i++].present = 1;
             }
         }
+      else if (parse_big_immediate (&ptr, i) == SUCCESS)
+          /* Case 2: VMOV<c><q>.<dt> <Qd>, #<imm>
+             Case 3: VMOV<c><q>.<dt> <Dd>, #<imm>  */
+        ;
       else
         {
           first_error (_("expected <Rm> or <Dm> or <Qm> operand"));
@@ -7095,6 +7097,68 @@ do_vfp_nsyn_msr (void)
   return SUCCESS;
 }
 
+static int
+do_vfp_vmrs (void)
+{
+  int rt;
+
+  /* The destination register can be r0-r14 or APSR_nzcv */
+  if (inst.operands[0].reg > 14)
+    {
+      inst.error = BAD_PC;
+      return FAIL;
+    }
+
+  /* If the destination is r13 and not in ARM mode then unprefictable */
+  if (thumb_mode && inst.operands[0].reg == REG_SP)
+    {
+      inst.error = BAD_SP;
+      return FAIL;
+    }
+
+  /* If the destination is APSR_nzcv */
+  if (inst.operands[0].isvec && inst.operands[1].reg != 1)
+    {
+      inst.error = BAD_VMRS;
+      return FAIL;
+    }
+
+  if (inst.operands[0].isvec)
+    rt = 15;
+  else
+    rt = inst.operands[0].reg;
+
+  /* Or in the registers to use */
+  inst.instruction |= rt << 12;
+  inst.instruction |= inst.operands[1].reg << 16;
+
+  return SUCCESS;
+}
+
+static int
+do_vfp_vmsr (void)
+{
+  /* The destination register can be r0-r14 or APSR_nzcv */
+  if (inst.operands[1].reg > 14)
+    {
+      inst.error = BAD_PC;
+      return FAIL;
+    }
+
+  /* If the destination is r13 and not in ARM mode then unprefictable */
+  if (thumb_mode && inst.operands[0].reg == REG_SP)
+    {
+      inst.error = BAD_SP;
+      return FAIL;
+    }
+
+  /* Or in the registers to use */
+  inst.instruction |= inst.operands[1].reg << 12;
+  inst.instruction |= inst.operands[0].reg << 16;
+
+  return SUCCESS;
+}
+
 static void
 do_mrs (void)
 {
@@ -15726,6 +15790,8 @@ static const struct asm_opcode insns[] =
  cCE(ftouizs,	ebc0ac0, 2, (RVS, RVS),	      vfp_sp_monadic),
  cCE(fmrx,	ef00a10, 2, (RR, RVC),	      rd_rn),
  cCE(fmxr,	ee00a10, 2, (RVC, RR),	      rn_rd),
+ cCE(vmrs,	ef00a10, 2, (APSR_RR, RVC),   vfp_vmrs),
+ cCE(vmsr,	ee00a10, 2, (RVC, RR),        vfp_vmsr),
 
   /* Memory operations.	 */
  cCE(flds,	d100a00, 2, (RVS, ADDRGLDC),  vfp_sp_ldst),

Modified: projects/libzfs_core/contrib/libc-vis/unvis.3
==============================================================================
--- projects/libzfs_core/contrib/libc-vis/unvis.3	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/contrib/libc-vis/unvis.3	Mon Mar 18 09:39:51 2013	(r248462)
@@ -1,4 +1,4 @@
-.\"	$NetBSD: unvis.3,v 1.23 2011/03/17 14:06:29 wiz Exp $
+.\"	$NetBSD: unvis.3,v 1.27 2012/12/15 07:34:36 wiz Exp $
 .\"	$FreeBSD$
 .\"
 .\" Copyright (c) 1989, 1991, 1993
@@ -126,15 +126,17 @@ The
 function has several return codes that must be handled properly.
 They are:
 .Bl -tag -width UNVIS_VALIDPUSH
-.It Li \&0 (zero)
+.It Li \&0 No (zero)
 Another character is necessary; nothing has been recognized yet.
 .It Dv UNVIS_VALID
 A valid character has been recognized and is available at the location
-pointed to by cp.
+pointed to by
+.Fa cp .
 .It Dv UNVIS_VALIDPUSH
 A valid character has been recognized and is available at the location
-pointed to by cp; however, the character currently passed in should
-be passed in again.
+pointed to by
+.Fa cp ;
+however, the character currently passed in should be passed in again.
 .It Dv UNVIS_NOCHAR
 A valid sequence was detected, but no character was produced.
 This return code is necessary to indicate a logical break between characters.
@@ -150,7 +152,7 @@ one more time with flag set to
 to extract any remaining character (the character passed in is ignored).
 .Pp
 The
-.Ar flag
+.Fa flag
 argument is also used to specify the encoding style of the source.
 If set to
 .Dv VIS_HTTPSTYLE
@@ -161,7 +163,8 @@ will decode URI strings as specified in 
 If set to
 .Dv VIS_HTTP1866 ,
 .Fn unvis
-will decode URI strings as specified in RFC 1866.
+will decode entity references and numeric character references
+as specified in RFC 1866.
 If set to
 .Dv VIS_MIMESTYLE ,
 .Fn unvis
@@ -169,7 +172,9 @@ will decode MIME Quoted-Printable string
 If set to
 .Dv VIS_NOESCAPE ,
 .Fn unvis
-will not decode \e quoted characters.
+will not decode
+.Ql \e
+quoted characters.
 .Pp
 The following code fragment illustrates a proper use of
 .Fn unvis .
@@ -204,7 +209,7 @@ The functions
 and
 .Fn strnunvisx
 will return \-1 on error and set
-.Va errno 
+.Va errno
 to:
 .Bl -tag -width Er
 .It Bq Er EINVAL
@@ -212,7 +217,7 @@ An invalid escape sequence was detected,
 .El
 .Pp
 In addition the functions
-.Fn strnunvis 
+.Fn strnunvis
 and
 .Fn strnunvisx
 will can also set
@@ -244,4 +249,14 @@ and
 functions appeared in
 .Nx 6.0
 and
-.Fx 10.0 .
+.Fx 9.2 .
+.Sh BUGS
+The names
+.Dv VIS_HTTP1808
+and
+.Dv VIS_HTTP1866
+are wrong.
+Percent-encoding was defined in RFC 1738, the original RFC for URL.
+RFC 1866 defines HTML 2.0, an application of SGML, from which it
+inherits concepts of numeric character references and entity
+references.

Modified: projects/libzfs_core/contrib/libc-vis/unvis.c
==============================================================================
--- projects/libzfs_core/contrib/libc-vis/unvis.c	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/contrib/libc-vis/unvis.c	Mon Mar 18 09:39:51 2013	(r248462)
@@ -1,4 +1,4 @@
-/*	$NetBSD: unvis.c,v 1.40 2012/12/14 21:31:01 christos Exp $	*/
+/*	$NetBSD: unvis.c,v 1.41 2012/12/15 04:29:53 matt Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)unvis.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: unvis.c,v 1.40 2012/12/14 21:31:01 christos Exp $");
+__RCSID("$NetBSD: unvis.c,v 1.41 2012/12/15 04:29:53 matt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 __FBSDID("$FreeBSD$");
@@ -90,7 +90,7 @@ __weak_alias(strnunvisx,_strnunvisx)
  * RFC 1866
  */
 static const struct nv {
-	const char name[7];
+	char name[7];
 	uint8_t value;
 } nv[] = {
 	{ "AElig",	198 }, /* capital AE diphthong (ligature)  */

Modified: projects/libzfs_core/contrib/libc-vis/vis.3
==============================================================================
--- projects/libzfs_core/contrib/libc-vis/vis.3	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/contrib/libc-vis/vis.3	Mon Mar 18 09:39:51 2013	(r248462)
@@ -1,4 +1,4 @@
-.\"	$NetBSD: vis.3,v 1.29 2012/12/14 22:55:59 christos Exp $
+.\"	$NetBSD: vis.3,v 1.39 2013/02/20 20:05:26 christos Exp $
 .\"	$FreeBSD$
 .\"
 .\" Copyright (c) 1989, 1991, 1993
@@ -30,7 +30,7 @@
 .\"
 .\"     @(#)vis.3	8.1 (Berkeley) 6/9/93
 .\"
-.Dd December 14, 2012
+.Dd February 19, 2013
 .Dt VIS 3
 .Os
 .Sh NAME
@@ -40,12 +40,14 @@
 .Nm strnvis ,
 .Nm strvisx ,
 .Nm strnvisx ,
+.Nm strenvisx ,
 .Nm svis ,
 .Nm snvis ,
 .Nm strsvis ,
 .Nm strsnvis ,
-.Nm strsvisx
-.Nm strsnvisx
+.Nm strsvisx ,
+.Nm strsnvisx ,
+.Nm strsenvisx
 .Nd visually encode characters
 .Sh LIBRARY
 .Lb libc
@@ -63,6 +65,8 @@
 .Fn strvisx "char *dst" "const char *src" "size_t len" "int flag"
 .Ft int
 .Fn strnvisx "char *dst" "size_t dlen" "const char *src" "size_t len" "int flag"
+.Ft int
+.Fn strenvisx "char *dst" "size_t dlen" "const char *src" "size_t len" "int flag" "int *cerr_ptr"
 .Ft char *
 .Fn svis "char *dst" "int c" "int flag" "int nextc" "const char *extra"
 .Ft char *
@@ -75,6 +79,8 @@
 .Fn strsvisx "char *dst" "const char *src" "size_t len" "int flag" "const char *extra"
 .Ft int
 .Fn strsnvisx "char *dst" "size_t dlen" "const char *src" "size_t len" "int flag" "const char *extra"
+.Ft int
+.Fn strsenvisx "char *dst" "size_t dlen" "const char *src" "size_t len" "int flag" "const char *extra" "int *cerr_ptr"
 .Sh DESCRIPTION
 The
 .Fn vis
@@ -89,11 +95,11 @@ needs no encoding, it is copied in unalt
 The string is null terminated, and a pointer to the end of the string is
 returned.
 The maximum length of any encoding is four
-characters (not including the trailing
+bytes (not including the trailing
 .Dv NUL ) ;
 thus, when
 encoding a set of characters into a buffer, the size of the buffer should
-be four times the number of characters encoded, plus one for the trailing
+be four times the number of bytes encoded, plus one for the trailing
 .Dv NUL .
 The flag parameter is used for altering the default range of
 characters considered for encoding and for altering the visual
@@ -142,16 +148,17 @@ terminate
 The size of
 .Fa dst
 must be four times the number
-of characters encoded from
+of bytes encoded from
 .Fa src
 (plus one for the
 .Dv NUL ) .
 Both
-forms return the number of characters in dst (not including
-the trailing
+forms return the number of characters in
+.Fa dst
+(not including the trailing
 .Dv NUL ) .
 The
-.Dq n
+.Dq Nm n
 versions of the functions also take an additional argument
 .Fa dlen
 that indicates the length of the
@@ -159,7 +166,7 @@ that indicates the length of the
 buffer.
 If
 .Fa dlen
-is not large enough to fix the converted string then the
+is not large enough to fit the converted string then the
 .Fn strnvis
 and
 .Fn strnvisx
@@ -167,6 +174,14 @@ functions return \-1 and set
 .Va errno
 to
 .Dv ENOSPC .
+The
+.Fn strenvisx
+function takes an additional argument,
+.Fa cerr_ptr ,
+that is used to pass in and out a multibyte conversion error flag.
+This is useful when processing single characters at a time when
+it is possible that the locale may be set to something other
+than the locale of the characters in the input data.
 .Pp
 The functions
 .Fn svis ,
@@ -174,16 +189,18 @@ The functions
 .Fn strsvis ,
 .Fn strsnvis ,
 .Fn strsvisx ,
+.Fn strsnvisx ,
 and
-.Fn strsnvisx
+.Fn strsenvisx
 correspond to
 .Fn vis ,
 .Fn nvis ,
 .Fn strvis ,
 .Fn strnvis ,
 .Fn strvisx ,
+.Fn strnvisx ,
 and
-.Fn strnvisx
+.Fn strenvisx
 but have an additional argument
 .Fa extra ,
 pointing to a
@@ -214,14 +231,13 @@ and
 .Fn strnvisx ) ,
 and the type of representation used.
 By default, all non-graphic characters,
-except space, tab, and newline are encoded.
-(See
-.Xr isgraph 3 . )
+except space, tab, and newline are encoded (see
+.Xr isgraph 3 ) .
 The following flags
 alter this:
 .Bl -tag -width VIS_WHITEX
 .It Dv VIS_GLOB
-Also encode magic characters
+Also encode the magic characters
 .Ql ( * ,
 .Ql \&? ,
 .Ql \&[
@@ -243,11 +259,13 @@ Synonym for
 \&|
 .Dv VIS_NL .
 .It Dv VIS_SAFE
-Only encode "unsafe" characters.
+Only encode
+.Dq unsafe
+characters.
 Unsafe means control characters which may cause common terminals to perform
 unexpected functions.
 Currently this form allows space, tab, newline, backspace, bell, and
-return - in addition to all graphic characters - unencoded.
+return \(em in addition to all graphic characters \(em unencoded.
 .El
 .Pp
 (The above flags have no effect for
@@ -287,8 +305,8 @@ Use an
 to represent meta characters (characters with the 8th
 bit set), and use caret
 .Ql ^
-to represent control characters see
-.Pf ( Xr iscntrl 3 ) .
+to represent control characters (see
+.Xr iscntrl 3 ) .
 The following formats are used:
 .Bl -tag -width xxxxx
 .It Dv \e^C
@@ -335,19 +353,20 @@ Use C-style backslash sequences to repre
 characters.
 The following sequences are used to represent the indicated characters:
 .Bd -unfilled -offset indent
-.Li \ea Tn  - BEL No (007)
-.Li \eb Tn  - BS No (010)
-.Li \ef Tn  - NP No (014)
-.Li \en Tn  - NL No (012)
-.Li \er Tn  - CR No (015)
-.Li \es Tn  - SP No (040)
-.Li \et Tn  - HT No (011)
-.Li \ev Tn  - VT No (013)
-.Li \e0 Tn  - NUL No (000)
+.Li \ea Tn  \(em BEL No (007)
+.Li \eb Tn  \(em BS No (010)
+.Li \ef Tn  \(em NP No (014)
+.Li \en Tn  \(em NL No (012)
+.Li \er Tn  \(em CR No (015)
+.Li \es Tn  \(em SP No (040)
+.Li \et Tn  \(em HT No (011)
+.Li \ev Tn  \(em VT No (013)
+.Li \e0 Tn  \(em NUL No (000)
 .Ed
 .Pp
-When using this format, the nextc parameter is looked at to determine
-if a
+When using this format, the
+.Fa nextc
+parameter is looked at to determine if a
 .Dv NUL
 character can be encoded as
 .Ql \e0
@@ -374,8 +393,8 @@ represents a lower case hexadecimal digi
 .It Dv VIS_MIMESTYLE
 Use MIME Quoted-Printable encoding as described in RFC 2045, only don't
 break lines and don't handle CRLF.
-The form is:
-.Ql %XX
+The form is
+.Ql =XX
 where
 .Em X
 represents an upper case hexadecimal digit.
@@ -392,6 +411,41 @@ meta characters as
 .Ql M-C ) .
 With this flag set, the encoding is
 ambiguous and non-invertible.
+.Sh MULTIBYTE CHARACTER SUPPORT
+These functions support multibyte character input.
+The encoding conversion is influenced by the setting of the
+.Ev LC_CTYPE
+environment variable which defines the set of characters
+that can be copied without encoding.
+.Pp
+When 8-bit data is present in the input,
+.Ev LC_CTYPE
+must be set to the correct locale or to the C locale.
+If the locales of the data and the conversion are mismatched,
+multibyte character recognition may fail and encoding will be performed
+byte-by-byte instead.
+.Pp
+As noted above,
+.Fa dst
+must be four times the number of bytes processed from
+.Fa src .
+But note that each multibyte character can be up to
+.Dv MB_LEN_MAX
+bytes
+.\" (see
+.\" .Xr multibyte 3 )
+so in terms of multibyte characters,
+.Fa dst
+must be four times
+.Dv MB_LEN_MAX
+times the number of characters processed from
+.Fa src .
+.Sh ENVIRONMENT
+.Bl -tag -width ".Ev LC_CTYPE"
+.It Ev LC_CTYPE
+Specify the locale of the input data.
+Set to C if the input data locale is unknown.
+.El
 .Sh ERRORS
 The functions
 .Fn nvis
@@ -407,11 +461,11 @@ and
 .Fn strsnvisx ,
 will return \-1 when the
 .Fa dlen
-destination buffer length size is not enough to perform the conversion while
+destination buffer size is not enough to perform the conversion while
 setting
 .Va errno
 to:
-.Bl -tag -width Er
+.Bl -tag -width ".Bq Er ENOSPC"
 .It Bq Er ENOSPC
 The destination buffer size is not large enough to perform the conversion.
 .El
@@ -419,18 +473,23 @@ The destination buffer size is not large
 .Xr unvis 1 ,
 .Xr vis 1 ,
 .Xr glob 3 ,
+.\" .Xr multibyte 3 ,
 .Xr unvis 3
 .Rs
 .%A T. Berners-Lee
 .%T Uniform Resource Locators (URL)
-.%O RFC1738
+.%O "RFC 1738"
+.Re
+.Rs
+.%T "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies"
+.%O "RFC 2045"
 .Re
 .Sh HISTORY
 The
 .Fn vis ,
 .Fn strvis ,
 and
-.Fa strvisx
+.Fn strvisx
 functions first appeared in
 .Bx 4.4 .
 The
@@ -441,7 +500,7 @@ and
 functions appeared in
 .Nx 1.5
 and
-.Fx 10.0 .
+.Fx 9.2 .
 The buffer size limited versions of the functions
 .Po Fn nvis ,
 .Fn strnvis ,
@@ -451,6 +510,9 @@ The buffer size limited versions of the 
 and
 .Fn strsnvisx Pc
 appeared in
-.Nx 6.0
 and
-.Fx 10.0 .
+.Fx 9.2 .
+Myltibyte character support was added in
+.Nx 7.0
+and
+.Fx 9.2 .

Modified: projects/libzfs_core/contrib/libc-vis/vis.c
==============================================================================
--- projects/libzfs_core/contrib/libc-vis/vis.c	Mon Mar 18 09:32:29 2013	(r248461)
+++ projects/libzfs_core/contrib/libc-vis/vis.c	Mon Mar 18 09:39:51 2013	(r248462)
@@ -1,4 +1,4 @@
-/*	$NetBSD: vis.c,v 1.45 2012/12/14 21:38:18 christos Exp $	*/
+/*	$NetBSD: vis.c,v 1.60 2013/02/21 16:21:20 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1993
@@ -57,19 +57,23 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.45 2012/12/14 21:38:18 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.60 2013/02/21 16:21:20 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
+#ifdef __FBSDID
 __FBSDID("$FreeBSD$");
+#define	_DIAGASSERT(x)	assert(x)
+#endif
 
 #include "namespace.h"
 #include <sys/types.h>
+#include <sys/param.h>
 
 #include <assert.h>
 #include <vis.h>
 #include <errno.h>
 #include <stdlib.h>
-
-#define	_DIAGASSERT(x)	assert(x)
+#include <wchar.h>
+#include <wctype.h>
 
 #ifdef __weak_alias
 __weak_alias(strvisx,_strvisx)
@@ -81,65 +85,66 @@ __weak_alias(strvisx,_strvisx)
 #include <stdio.h>
 #include <string.h>
 
-static char *do_svis(char *, size_t *, int, int, int, const char *);
+/*
+ * The reason for going through the trouble to deal with character encodings
+ * in vis(3), is that we use this to safe encode output of commands. This
+ * safe encoding varies depending on the character set. For example if we
+ * display ps output in French, we don't want to display French characters
+ * as M-foo.
+ */
+
+static wchar_t *do_svis(wchar_t *, wint_t, int, wint_t, const wchar_t *);
 
 #undef BELL
-#define BELL '\a'
+#define BELL L'\a'
+
+#define iswoctal(c)	(((u_char)(c)) >= L'0' && ((u_char)(c)) <= L'7')
+#define iswwhite(c)	(c == L' ' || c == L'\t' || c == L'\n')
+#define iswsafe(c)	(c == L'\b' || c == BELL || c == L'\r')
+#define xtoa(c)		L"0123456789abcdef"[c]
+#define XTOA(c)		L"0123456789ABCDEF"[c]
 
-#define isoctal(c)	(((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
-#define iswhite(c)	(c == ' ' || c == '\t' || c == '\n')
-#define issafe(c)	(c == '\b' || c == BELL || c == '\r')
-#define xtoa(c)		"0123456789abcdef"[c]
-#define XTOA(c)		"0123456789ABCDEF"[c]

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***


More information about the svn-src-projects mailing list