From owner-svn-src-user@freebsd.org Thu Mar 15 20:25:10 2018 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51098F506AD for ; Thu, 15 Mar 2018 20:25:10 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E9696766B5; Thu, 15 Mar 2018 20:25:09 +0000 (UTC) (envelope-from jeff@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E07141AB73; Thu, 15 Mar 2018 20:25:09 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2FKP9wI095101; Thu, 15 Mar 2018 20:25:09 GMT (envelope-from jeff@FreeBSD.org) Received: (from jeff@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2FKP7tD095075; Thu, 15 Mar 2018 20:25:07 GMT (envelope-from jeff@FreeBSD.org) Message-Id: <201803152025.w2FKP7tD095075@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jeff set sender to jeff@FreeBSD.org using -f From: Jeff Roberson Date: Thu, 15 Mar 2018 20:25:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r331024 - in user/jeff/numa: . bin/ps contrib/llvm/lib/Target/ARM etc/mtree etc/rc.d gnu/usr.bin/gdb/kgdb lib/libc/net lib/libc/sys lib/libdpv lib/libfigpar lib/libipsec lib/libmagic li... X-SVN-Group: user X-SVN-Commit-Author: jeff X-SVN-Commit-Paths: in user/jeff/numa: . bin/ps contrib/llvm/lib/Target/ARM etc/mtree etc/rc.d gnu/usr.bin/gdb/kgdb lib/libc/net lib/libc/sys lib/libdpv lib/libfigpar lib/libipsec lib/libmagic lib/libsysdecode libexec/tf... X-SVN-Commit-Revision: 331024 X-SVN-Commit-Repository: base 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.25 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, 15 Mar 2018 20:25:10 -0000 Author: jeff Date: Thu Mar 15 20:25:06 2018 New Revision: 331024 URL: https://svnweb.freebsd.org/changeset/base/331024 Log: Merge from head. Added: user/jeff/numa/libexec/tftpd/tests/ - copied from r331022, head/libexec/tftpd/tests/ user/jeff/numa/sbin/nvmecontrol/format.c - copied unchanged from r331022, head/sbin/nvmecontrol/format.c user/jeff/numa/stand/efi/libefi/efienv.c - copied unchanged from r331022, head/stand/efi/libefi/efienv.c user/jeff/numa/sys/contrib/zstd/doc/images/zstd_logo86.png - copied unchanged from r331022, head/sys/contrib/zstd/doc/images/zstd_logo86.png user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_compress_internal.h - copied unchanged from r331022, head/sys/contrib/zstd/lib/compress/zstd_compress_internal.h user/jeff/numa/sys/contrib/zstd/tests/seqgen.c - copied unchanged from r331022, head/sys/contrib/zstd/tests/seqgen.c user/jeff/numa/sys/contrib/zstd/tests/seqgen.h - copied unchanged from r331022, head/sys/contrib/zstd/tests/seqgen.h user/jeff/numa/sys/dev/cxgbe/tom/t4_tls.c - copied unchanged from r331022, head/sys/dev/cxgbe/tom/t4_tls.c user/jeff/numa/sys/dev/cxgbe/tom/t4_tls.h - copied unchanged from r331022, head/sys/dev/cxgbe/tom/t4_tls.h user/jeff/numa/usr.sbin/cxgbetool/tcb_common.c - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcb_common.c user/jeff/numa/usr.sbin/cxgbetool/tcb_common.h - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcb_common.h user/jeff/numa/usr.sbin/cxgbetool/tcbinfot4.c - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcbinfot4.c user/jeff/numa/usr.sbin/cxgbetool/tcbinfot5.c - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcbinfot5.c user/jeff/numa/usr.sbin/cxgbetool/tcbinfot6.c - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcbinfot6.c user/jeff/numa/usr.sbin/cxgbetool/tcbshowt4.c - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcbshowt4.c user/jeff/numa/usr.sbin/cxgbetool/tcbshowt5.c - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcbshowt5.c user/jeff/numa/usr.sbin/cxgbetool/tcbshowt6.c - copied unchanged from r331022, head/usr.sbin/cxgbetool/tcbshowt6.c user/jeff/numa/usr.sbin/mpsutil/mps_debug.c - copied unchanged from r331022, head/usr.sbin/mpsutil/mps_debug.c Deleted: user/jeff/numa/sys/arm/conf/BEAGLEBONE-MMCCAM user/jeff/numa/sys/arm/conf/IMX6-MMCCAM user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_compress.h user/jeff/numa/sys/i386/include/pcaudioio.h user/jeff/numa/sys/sys/dataacq.h Modified: user/jeff/numa/Makefile.inc1 user/jeff/numa/bin/ps/extern.h user/jeff/numa/bin/ps/keyword.c user/jeff/numa/bin/ps/print.c user/jeff/numa/bin/ps/ps.1 user/jeff/numa/bin/ps/ps.c user/jeff/numa/contrib/llvm/lib/Target/ARM/ARMISelLowering.cpp user/jeff/numa/etc/mtree/BSD.tests.dist user/jeff/numa/etc/rc.d/fsck user/jeff/numa/etc/rc.d/hostname user/jeff/numa/gnu/usr.bin/gdb/kgdb/trgt_amd64.c user/jeff/numa/lib/libc/net/getnameinfo.3 user/jeff/numa/lib/libc/net/getnameinfo.c user/jeff/numa/lib/libc/sys/sendfile.2 user/jeff/numa/lib/libdpv/dialog_util.c user/jeff/numa/lib/libdpv/dpv.3 user/jeff/numa/lib/libdpv/util.c user/jeff/numa/lib/libfigpar/figpar.3 user/jeff/numa/lib/libipsec/pfkey.c user/jeff/numa/lib/libmagic/Makefile user/jeff/numa/lib/libsysdecode/mktables user/jeff/numa/libexec/tftpd/Makefile user/jeff/numa/libexec/tftpd/tftp-transfer.c user/jeff/numa/libexec/tftpd/tftpd.c user/jeff/numa/release/packages/kernel.ucl user/jeff/numa/sbin/ipfw/ipfw.8 user/jeff/numa/sbin/mount/mount.c user/jeff/numa/sbin/nvmecontrol/Makefile user/jeff/numa/sbin/nvmecontrol/identify.c user/jeff/numa/sbin/nvmecontrol/logpage.c user/jeff/numa/sbin/nvmecontrol/nvmecontrol.8 user/jeff/numa/sbin/nvmecontrol/nvmecontrol.c user/jeff/numa/sbin/nvmecontrol/nvmecontrol.h user/jeff/numa/sbin/sysctl/sysctl.8 user/jeff/numa/sbin/sysctl/sysctl.c user/jeff/numa/share/examples/Makefile user/jeff/numa/share/man/man4/atrtc.4 user/jeff/numa/share/man/man5/rc.conf.5 user/jeff/numa/share/man/man9/style.9 user/jeff/numa/share/misc/committers-ports.dot user/jeff/numa/share/misc/pci_vendors user/jeff/numa/share/termcap/termcap user/jeff/numa/stand/common/bootstrap.h user/jeff/numa/stand/common/disk.c user/jeff/numa/stand/common/disk.h user/jeff/numa/stand/common/interp_lua.c user/jeff/numa/stand/common/isapnp.c user/jeff/numa/stand/common/load_elf.c user/jeff/numa/stand/common/load_elf_obj.c user/jeff/numa/stand/common/metadata.c user/jeff/numa/stand/common/misc.c user/jeff/numa/stand/common/pnp.c user/jeff/numa/stand/efi/boot1/boot1.c user/jeff/numa/stand/efi/boot1/ufs_module.c user/jeff/numa/stand/efi/include/efi.h user/jeff/numa/stand/efi/include/efilib.h user/jeff/numa/stand/efi/libefi/Makefile user/jeff/numa/stand/efi/libefi/devicename.c user/jeff/numa/stand/efi/libefi/efipart.c user/jeff/numa/stand/efi/libefi/efizfs.c user/jeff/numa/stand/efi/libefi/env.c user/jeff/numa/stand/efi/loader/arch/arm/exec.c user/jeff/numa/stand/efi/loader/bootinfo.c user/jeff/numa/stand/efi/loader/main.c user/jeff/numa/stand/ficl/aarch64/sysdep.c user/jeff/numa/stand/ficl/amd64/sysdep.c user/jeff/numa/stand/ficl/arm/sysdep.c user/jeff/numa/stand/ficl/i386/sysdep.c user/jeff/numa/stand/ficl/mips/sysdep.c user/jeff/numa/stand/ficl/mips64/sysdep.c user/jeff/numa/stand/ficl/powerpc/sysdep.c user/jeff/numa/stand/ficl/riscv/sysdep.c user/jeff/numa/stand/ficl/sparc64/sysdep.c user/jeff/numa/stand/i386/btx/lib/btxv86.h user/jeff/numa/stand/i386/libi386/biosacpi.c user/jeff/numa/stand/i386/libi386/bioscd.c user/jeff/numa/stand/i386/libi386/biosdisk.c user/jeff/numa/stand/i386/libi386/biospnp.c user/jeff/numa/stand/i386/libi386/bootinfo32.c user/jeff/numa/stand/i386/libi386/bootinfo64.c user/jeff/numa/stand/i386/libi386/devicename.c user/jeff/numa/stand/i386/libi386/elf64_freebsd.c user/jeff/numa/stand/i386/libi386/libi386.h user/jeff/numa/stand/i386/libi386/multiboot.c user/jeff/numa/stand/i386/libi386/pxe.c user/jeff/numa/stand/i386/loader/chain.c user/jeff/numa/stand/i386/loader/main.c user/jeff/numa/stand/libsa/arp.c user/jeff/numa/stand/libsa/bootp.c user/jeff/numa/stand/libsa/bootparam.c user/jeff/numa/stand/libsa/dosfs.h user/jeff/numa/stand/libsa/ext2fs.c user/jeff/numa/stand/libsa/net.h user/jeff/numa/stand/libsa/rpc.c user/jeff/numa/stand/libsa/stand.h user/jeff/numa/stand/loader.mk user/jeff/numa/stand/lua/config.lua user/jeff/numa/stand/lua/core.lua user/jeff/numa/stand/lua/menu.lua user/jeff/numa/stand/mips/beri/boot2/boot2.c user/jeff/numa/stand/mips/beri/common/altera_jtag_uart.c user/jeff/numa/stand/mips/beri/common/cons.h user/jeff/numa/stand/mips/beri/loader/beri_console.c user/jeff/numa/stand/mips/beri/loader/beri_disk_cfi.c user/jeff/numa/stand/mips/beri/loader/beri_disk_sdcard.c user/jeff/numa/stand/mips/beri/loader/devicename.c user/jeff/numa/stand/ofw/libofw/devicename.c user/jeff/numa/stand/ofw/libofw/libofw.h user/jeff/numa/stand/ofw/libofw/openfirm.c user/jeff/numa/stand/powerpc/boot1.chrp/boot1.c user/jeff/numa/stand/powerpc/kboot/ppc64_elf_freebsd.c user/jeff/numa/stand/powerpc/ofw/elf_freebsd.c user/jeff/numa/stand/powerpc/ofw/main.c user/jeff/numa/stand/powerpc/ofw/ppc64_elf_freebsd.c user/jeff/numa/stand/sparc64/boot1/boot1.c user/jeff/numa/stand/sparc64/loader/main.c user/jeff/numa/stand/uboot/common/main.c user/jeff/numa/stand/uboot/lib/devicename.c user/jeff/numa/stand/uboot/lib/disk.c user/jeff/numa/stand/uboot/lib/elf_freebsd.c user/jeff/numa/stand/uboot/lib/libuboot.h user/jeff/numa/stand/userboot/userboot/bootinfo32.c user/jeff/numa/stand/userboot/userboot/bootinfo64.c user/jeff/numa/stand/userboot/userboot/devicename.c user/jeff/numa/stand/userboot/userboot/elf64_freebsd.c user/jeff/numa/stand/userboot/userboot/main.c user/jeff/numa/stand/userboot/userboot/userboot_disk.c user/jeff/numa/stand/zfs/libzfs.h user/jeff/numa/stand/zfs/zfs.c user/jeff/numa/sys/amd64/amd64/efirt_machdep.c (contents, props changed) user/jeff/numa/sys/amd64/linux/linux_sysvec.c user/jeff/numa/sys/amd64/linux32/linux32_sysvec.c user/jeff/numa/sys/arm/allwinner/clkng/ccu_sun8i_r.c user/jeff/numa/sys/arm/broadcom/bcm2835/bcm2835_rng.c user/jeff/numa/sys/arm64/arm64/efirt_machdep.c user/jeff/numa/sys/arm64/arm64/gicv3_its.c user/jeff/numa/sys/cam/ata/ata_da.c user/jeff/numa/sys/cam/cam_iosched.c user/jeff/numa/sys/cam/cam_periph.c user/jeff/numa/sys/cam/cam_periph.h user/jeff/numa/sys/cam/ctl/ctl_frontend_iscsi.c user/jeff/numa/sys/cam/ctl/ctl_frontend_iscsi.h user/jeff/numa/sys/cam/nvme/nvme_da.c user/jeff/numa/sys/cam/scsi/scsi_da.c user/jeff/numa/sys/cam/scsi/scsi_enc.c user/jeff/numa/sys/cam/scsi/scsi_pass.c user/jeff/numa/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c user/jeff/numa/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dmu_objset.h user/jeff/numa/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c user/jeff/numa/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c user/jeff/numa/sys/compat/linux/linux_ioctl.c user/jeff/numa/sys/compat/linux/linux_signal.c user/jeff/numa/sys/compat/linux/linux_stats.c user/jeff/numa/sys/compat/linux/linux_util.c user/jeff/numa/sys/compat/linuxkpi/common/include/linux/kernel.h user/jeff/numa/sys/compat/linuxkpi/common/src/linux_compat.c user/jeff/numa/sys/conf/NOTES user/jeff/numa/sys/conf/config.mk user/jeff/numa/sys/conf/files.powerpc user/jeff/numa/sys/conf/kern.mk user/jeff/numa/sys/conf/kern.opts.mk user/jeff/numa/sys/conf/kern.post.mk user/jeff/numa/sys/conf/kern.pre.mk user/jeff/numa/sys/conf/options user/jeff/numa/sys/contrib/dev/acpica/changes.txt user/jeff/numa/sys/contrib/dev/acpica/components/debugger/dbdisply.c user/jeff/numa/sys/contrib/dev/acpica/components/dispatcher/dspkginit.c user/jeff/numa/sys/contrib/dev/acpica/components/events/evevent.c user/jeff/numa/sys/contrib/dev/acpica/components/events/evgpe.c user/jeff/numa/sys/contrib/dev/acpica/components/events/evgpeblk.c user/jeff/numa/sys/contrib/dev/acpica/components/events/evrgnini.c user/jeff/numa/sys/contrib/dev/acpica/components/events/evxface.c user/jeff/numa/sys/contrib/dev/acpica/components/events/evxfgpe.c user/jeff/numa/sys/contrib/dev/acpica/components/executer/exdebug.c user/jeff/numa/sys/contrib/dev/acpica/components/hardware/hwgpe.c user/jeff/numa/sys/contrib/dev/acpica/components/hardware/hwsleep.c user/jeff/numa/sys/contrib/dev/acpica/components/hardware/hwxfsleep.c user/jeff/numa/sys/contrib/dev/acpica/components/namespace/nsdumpdv.c user/jeff/numa/sys/contrib/dev/acpica/components/namespace/nseval.c user/jeff/numa/sys/contrib/dev/acpica/components/namespace/nsload.c user/jeff/numa/sys/contrib/dev/acpica/components/namespace/nsparse.c user/jeff/numa/sys/contrib/dev/acpica/components/namespace/nsxfname.c user/jeff/numa/sys/contrib/dev/acpica/components/parser/psargs.c user/jeff/numa/sys/contrib/dev/acpica/components/parser/psloop.c user/jeff/numa/sys/contrib/dev/acpica/components/parser/psobject.c user/jeff/numa/sys/contrib/dev/acpica/components/tables/tbdata.c user/jeff/numa/sys/contrib/dev/acpica/components/tables/tbinstal.c user/jeff/numa/sys/contrib/dev/acpica/components/tables/tbxfload.c user/jeff/numa/sys/contrib/dev/acpica/components/utilities/utosi.c user/jeff/numa/sys/contrib/dev/acpica/components/utilities/utxfinit.c user/jeff/numa/sys/contrib/dev/acpica/include/acevents.h user/jeff/numa/sys/contrib/dev/acpica/include/acmacros.h user/jeff/numa/sys/contrib/dev/acpica/include/acpixf.h user/jeff/numa/sys/contrib/dev/acpica/include/actypes.h user/jeff/numa/sys/contrib/zstd/Makefile user/jeff/numa/sys/contrib/zstd/NEWS user/jeff/numa/sys/contrib/zstd/README.md user/jeff/numa/sys/contrib/zstd/circle.yml user/jeff/numa/sys/contrib/zstd/contrib/meson/meson.build user/jeff/numa/sys/contrib/zstd/doc/zstd_compression_format.md user/jeff/numa/sys/contrib/zstd/doc/zstd_manual.html user/jeff/numa/sys/contrib/zstd/lib/BUCK user/jeff/numa/sys/contrib/zstd/lib/common/bitstream.h user/jeff/numa/sys/contrib/zstd/lib/common/mem.h user/jeff/numa/sys/contrib/zstd/lib/common/pool.c user/jeff/numa/sys/contrib/zstd/lib/common/xxhash.c user/jeff/numa/sys/contrib/zstd/lib/common/zstd_common.c user/jeff/numa/sys/contrib/zstd/lib/common/zstd_internal.h user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_compress.c user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_double_fast.c user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_double_fast.h user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_fast.c user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_fast.h user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_lazy.c user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_lazy.h user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_ldm.h user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_opt.c user/jeff/numa/sys/contrib/zstd/lib/compress/zstd_opt.h user/jeff/numa/sys/contrib/zstd/lib/compress/zstdmt_compress.c user/jeff/numa/sys/contrib/zstd/lib/compress/zstdmt_compress.h user/jeff/numa/sys/contrib/zstd/lib/decompress/zstd_decompress.c user/jeff/numa/sys/contrib/zstd/lib/deprecated/zbuff_compress.c user/jeff/numa/sys/contrib/zstd/lib/dictBuilder/zdict.c user/jeff/numa/sys/contrib/zstd/lib/legacy/zstd_v01.c user/jeff/numa/sys/contrib/zstd/lib/legacy/zstd_v02.c user/jeff/numa/sys/contrib/zstd/lib/legacy/zstd_v03.c user/jeff/numa/sys/contrib/zstd/lib/legacy/zstd_v04.c user/jeff/numa/sys/contrib/zstd/lib/legacy/zstd_v05.c user/jeff/numa/sys/contrib/zstd/lib/legacy/zstd_v06.c user/jeff/numa/sys/contrib/zstd/lib/legacy/zstd_v07.c user/jeff/numa/sys/contrib/zstd/lib/zstd.h user/jeff/numa/sys/contrib/zstd/programs/BUCK user/jeff/numa/sys/contrib/zstd/programs/Makefile user/jeff/numa/sys/contrib/zstd/programs/bench.c user/jeff/numa/sys/contrib/zstd/programs/bench.h user/jeff/numa/sys/contrib/zstd/programs/dibio.c user/jeff/numa/sys/contrib/zstd/programs/fileio.c user/jeff/numa/sys/contrib/zstd/programs/fileio.h user/jeff/numa/sys/contrib/zstd/programs/platform.h user/jeff/numa/sys/contrib/zstd/programs/util.h user/jeff/numa/sys/contrib/zstd/programs/zstd.1 user/jeff/numa/sys/contrib/zstd/programs/zstd.1.md user/jeff/numa/sys/contrib/zstd/programs/zstdcli.c user/jeff/numa/sys/contrib/zstd/tests/Makefile user/jeff/numa/sys/contrib/zstd/tests/decodecorpus.c user/jeff/numa/sys/contrib/zstd/tests/fullbench.c user/jeff/numa/sys/contrib/zstd/tests/fuzzer.c user/jeff/numa/sys/contrib/zstd/tests/paramgrill.c user/jeff/numa/sys/contrib/zstd/tests/playTests.sh user/jeff/numa/sys/contrib/zstd/tests/zbufftest.c user/jeff/numa/sys/contrib/zstd/tests/zstreamtest.c user/jeff/numa/sys/contrib/zstd/zlibWrapper/BUCK user/jeff/numa/sys/contrib/zstd/zlibWrapper/examples/zwrapbench.c user/jeff/numa/sys/contrib/zstd/zlibWrapper/zstd_zlibwrapper.c user/jeff/numa/sys/crypto/aesni/aesni.c user/jeff/numa/sys/dev/aac/aac.c user/jeff/numa/sys/dev/aacraid/aacraid.c user/jeff/numa/sys/dev/acpica/acpi.c user/jeff/numa/sys/dev/acpica/acpivar.h user/jeff/numa/sys/dev/bwn/if_bwn.c user/jeff/numa/sys/dev/cxgbe/adapter.h user/jeff/numa/sys/dev/cxgbe/firmware/t6fw_cfg.txt user/jeff/numa/sys/dev/cxgbe/offload.h user/jeff/numa/sys/dev/cxgbe/t4_main.c user/jeff/numa/sys/dev/cxgbe/tom/t4_connect.c user/jeff/numa/sys/dev/cxgbe/tom/t4_cpl_io.c user/jeff/numa/sys/dev/cxgbe/tom/t4_ddp.c user/jeff/numa/sys/dev/cxgbe/tom/t4_listen.c user/jeff/numa/sys/dev/cxgbe/tom/t4_tom.c user/jeff/numa/sys/dev/cxgbe/tom/t4_tom.h user/jeff/numa/sys/dev/e1000/e1000_82575.c user/jeff/numa/sys/dev/e1000/e1000_mbx.c user/jeff/numa/sys/dev/e1000/e1000_phy.c user/jeff/numa/sys/dev/e1000/e1000_vf.c user/jeff/numa/sys/dev/efidev/efirt.c (contents, props changed) user/jeff/numa/sys/dev/extres/regulator/regulator.c user/jeff/numa/sys/dev/extres/regulator/regulator.h user/jeff/numa/sys/dev/iscsi/iscsi.c user/jeff/numa/sys/dev/isp/isp.c user/jeff/numa/sys/dev/isp/isp_freebsd.c user/jeff/numa/sys/dev/md/md.c user/jeff/numa/sys/dev/mlx5/driver.h user/jeff/numa/sys/dev/mpr/mpr.c user/jeff/numa/sys/dev/mps/mps.c user/jeff/numa/sys/dev/mps/mps_sas_lsi.c user/jeff/numa/sys/dev/mps/mpsvar.h user/jeff/numa/sys/dev/nvme/nvme.h user/jeff/numa/sys/dev/nvme/nvme_ctrlr.c user/jeff/numa/sys/dev/nvme/nvme_ns.c user/jeff/numa/sys/dev/nvme/nvme_qpair.c user/jeff/numa/sys/dev/otus/if_otus.c user/jeff/numa/sys/dev/ral/rt2560.c user/jeff/numa/sys/dev/ral/rt2661.c user/jeff/numa/sys/dev/rtwn/rtl8188e/r88e_chan.c user/jeff/numa/sys/dev/rtwn/rtl8192c/r92c_chan.c user/jeff/numa/sys/dev/usb/wlan/if_rum.c user/jeff/numa/sys/dev/usb/wlan/if_run.c user/jeff/numa/sys/dev/usb/wlan/if_uath.c user/jeff/numa/sys/dev/usb/wlan/if_upgt.c user/jeff/numa/sys/dev/usb/wlan/if_ural.c user/jeff/numa/sys/dev/usb/wlan/if_urtw.c user/jeff/numa/sys/dev/usb/wlan/if_zyd.c user/jeff/numa/sys/dev/vt/hw/vga/vt_vga.c user/jeff/numa/sys/dts/arm/rpi.dts user/jeff/numa/sys/dts/arm/rpi2.dts user/jeff/numa/sys/geom/geom.h user/jeff/numa/sys/geom/geom_subr.c user/jeff/numa/sys/i386/linux/imgact_linux.c user/jeff/numa/sys/i386/linux/linux_machdep.c user/jeff/numa/sys/i386/linux/linux_sysvec.c user/jeff/numa/sys/isa/rtc.h user/jeff/numa/sys/kern/imgact_aout.c user/jeff/numa/sys/kern/imgact_binmisc.c user/jeff/numa/sys/kern/imgact_elf.c user/jeff/numa/sys/kern/imgact_gzip.c user/jeff/numa/sys/kern/imgact_shell.c user/jeff/numa/sys/kern/subr_gtaskqueue.c user/jeff/numa/sys/kern/subr_uio.c user/jeff/numa/sys/kern/tty_compat.c user/jeff/numa/sys/kern/vfs_bio.c user/jeff/numa/sys/kern/vfs_mountroot.c user/jeff/numa/sys/mips/include/param.h user/jeff/numa/sys/mips/mips/support.S user/jeff/numa/sys/modules/aac/Makefile user/jeff/numa/sys/modules/aacraid/Makefile user/jeff/numa/sys/modules/cam/Makefile user/jeff/numa/sys/modules/cxgbe/tom/Makefile user/jeff/numa/sys/modules/isp/Makefile user/jeff/numa/sys/modules/usb/rum/Makefile user/jeff/numa/sys/modules/usb/run/Makefile user/jeff/numa/sys/modules/usb/uath/Makefile user/jeff/numa/sys/modules/usb/upgt/Makefile user/jeff/numa/sys/modules/usb/ural/Makefile user/jeff/numa/sys/modules/usb/urtw/Makefile user/jeff/numa/sys/modules/usb/zyd/Makefile user/jeff/numa/sys/net80211/ieee80211_output.c user/jeff/numa/sys/net80211/ieee80211_proto.h user/jeff/numa/sys/netipsec/keysock.c user/jeff/numa/sys/netipsec/keysock.h user/jeff/numa/sys/netpfil/ipfw/ip_fw2.c user/jeff/numa/sys/powerpc/aim/aim_machdep.c user/jeff/numa/sys/powerpc/aim/locore64.S user/jeff/numa/sys/powerpc/aim/mmu_oea64.c user/jeff/numa/sys/powerpc/ofw/ofw_machdep.c user/jeff/numa/sys/powerpc/ofw/ofwcall64.S user/jeff/numa/sys/powerpc/powerpc/machdep.c user/jeff/numa/sys/sys/aac_ioctl.h user/jeff/numa/sys/sys/imgact_elf.h user/jeff/numa/sys/sys/mdioctl.h user/jeff/numa/sys/vm/vm_page.c user/jeff/numa/sys/x86/isa/atrtc.c user/jeff/numa/sys/x86/isa/clock.c user/jeff/numa/sys/x86/x86/identcpu.c user/jeff/numa/tests/sys/cddl/zfs/include/libtest.kshlib user/jeff/numa/tests/sys/cddl/zfs/tests/cache/cache.kshlib user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/zfs_copies_test.sh user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/zfs_destroy_005_neg.ksh user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_add/zpool_add.kshlib user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_export/setup.ksh user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_export/zpool_export.cfg user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_get/setup.ksh user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_get/zpool_get.cfg user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_history/setup.ksh user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_history/zpool_history.cfg user/jeff/numa/tests/sys/cddl/zfs/tests/cli_root/zpool_upgrade/zpool_upgrade_test.sh user/jeff/numa/tests/sys/cddl/zfs/tests/hotplug/setup.ksh user/jeff/numa/tests/sys/cddl/zfs/tests/slog/slog.kshlib user/jeff/numa/usr.bin/calendar/calendars/calendar.freebsd user/jeff/numa/usr.bin/dpv/dpv.1 user/jeff/numa/usr.bin/iscsictl/iscsictl.c user/jeff/numa/usr.bin/tftp/tftp.c user/jeff/numa/usr.sbin/bhyvectl/bhyvectl.c user/jeff/numa/usr.sbin/bsdconfig/bsdconfig.8 user/jeff/numa/usr.sbin/cxgbetool/Makefile user/jeff/numa/usr.sbin/cxgbetool/cxgbetool.c user/jeff/numa/usr.sbin/lpr/common_source/ctlinfo.c user/jeff/numa/usr.sbin/mpsutil/Makefile user/jeff/numa/usr.sbin/mpsutil/mps_show.c user/jeff/numa/usr.sbin/mpsutil/mpsutil.c user/jeff/numa/usr.sbin/mpsutil/mpsutil.h user/jeff/numa/usr.sbin/usbconfig/usbconfig.8 user/jeff/numa/usr.sbin/usbconfig/usbconfig.c Directory Properties: user/jeff/numa/ (props changed) user/jeff/numa/contrib/llvm/ (props changed) user/jeff/numa/gnu/usr.bin/gdb/ (props changed) user/jeff/numa/sys/cddl/contrib/opensolaris/ (props changed) user/jeff/numa/sys/contrib/dev/acpica/ (props changed) user/jeff/numa/sys/contrib/zstd/ (props changed) user/jeff/numa/usr.sbin/cxgbetool/reg_defs_t5.c (props changed) user/jeff/numa/usr.sbin/cxgbetool/reg_defs_t6.c (props changed) Modified: user/jeff/numa/Makefile.inc1 ============================================================================== --- user/jeff/numa/Makefile.inc1 Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/Makefile.inc1 Thu Mar 15 20:25:06 2018 (r331024) @@ -1698,6 +1698,7 @@ create-kernel-packages-flavor${flavor:C,^""$,${_defaul pwd_arg=`cd ${SRCDIR}/etc ; ${MAKE} -VPWD_MKDB_ENDIAN` ; \ sed -e "s/%VERSION%/${PKG_VERSION}/" \ -e "s/%PKGNAME%/kernel-${INSTALLKERNEL:tl}${flavor}/" \ + -e "s/%KERNELDIR%/kernel/" \ -e "s/%COMMENT%/FreeBSD ${INSTALLKERNEL} kernel ${flavor}/" \ -e "s/%DESC%/FreeBSD ${INSTALLKERNEL} kernel ${flavor}/" \ -e "s/%CAP_MKDB_ENDIAN%/$${cap_arg}/g" \ @@ -1733,6 +1734,7 @@ create-kernel-packages-extra-flavor${flavor:C,^""$,${_ pwd_arg=`cd ${SRCDIR}/etc ; ${MAKE} -VPWD_MKDB_ENDIAN` ; \ sed -e "s/%VERSION%/${PKG_VERSION}/" \ -e "s/%PKGNAME%/kernel-${_kernel:tl}${flavor}/" \ + -e "s/%KERNELDIR%/kernel.${_kernel}/" \ -e "s/%COMMENT%/FreeBSD ${_kernel} kernel ${flavor}/" \ -e "s/%DESC%/FreeBSD ${_kernel} kernel ${flavor}/" \ -e "s/%CAP_MKDB_ENDIAN%/$${cap_arg}/g" \ Modified: user/jeff/numa/bin/ps/extern.h ============================================================================== --- user/jeff/numa/bin/ps/extern.h Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/bin/ps/extern.h Thu Mar 15 20:25:06 2018 (r331024) @@ -55,6 +55,7 @@ char *emulname(KINFO *, VARENT *); VARENT *find_varentry(VAR *); const char *fmt_argv(char **, char *, char *, size_t); double getpcpu(const KINFO *); +char *jailname(KINFO *, VARENT *); char *kvar(KINFO *, VARENT *); char *label(KINFO *, VARENT *); char *loginclass(KINFO *, VARENT *); Modified: user/jeff/numa/bin/ps/keyword.c ============================================================================== --- user/jeff/numa/bin/ps/keyword.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/bin/ps/keyword.c Thu Mar 15 20:25:06 2018 (r331024) @@ -108,6 +108,7 @@ static VAR var[] = { {"inblk", "INBLK", NULL, "read-blocks", USER, rvar, ROFF(ru_inblock), LONG, "ld", 0}, {"inblock", "", "inblk", NULL, 0, NULL, 0, CHAR, NULL, 0}, + {"jail", "JAIL", NULL, "jail-name", LJUST, jailname, 0, CHAR, NULL, 0}, {"jid", "JID", NULL, "jail-id", 0, kvar, KOFF(ki_jid), INT, "d", 0}, {"jobc", "JOBC", NULL, "job-control-count", 0, kvar, KOFF(ki_jobc), SHORT, "d", 0}, Modified: user/jeff/numa/bin/ps/print.c ============================================================================== --- user/jeff/numa/bin/ps/print.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/bin/ps/print.c Thu Mar 15 20:25:06 2018 (r331024) @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -839,4 +840,17 @@ loginclass(KINFO *k, VARENT *ve __unused) return (strdup("-")); } return (strdup(k->ki_p->ki_loginclass)); +} + +char * +jailname(KINFO *k, VARENT *ve __unused) +{ + char *name; + + if (k->ki_p->ki_jid == 0) + return (strdup("-")); + name = jail_getname(k->ki_p->ki_jid); + if (name == NULL) + return (strdup("-")); + return (name); } Modified: user/jeff/numa/bin/ps/ps.1 ============================================================================== --- user/jeff/numa/bin/ps/ps.1 Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/bin/ps/ps.1 Thu Mar 15 20:25:06 2018 (r331024) @@ -29,7 +29,7 @@ .\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd January 23, 2018 +.Dd March 13, 2018 .Dt PS 1 .Os .Sh NAME @@ -101,6 +101,14 @@ The default output format includes, for each process, controlling terminal, state, CPU time (including both user and system time) and associated command. .Pp +If the +.Nm +process is associated with a terminal, the default output width is that of the +terminal; otherwise the output width is unlimited. +See also the +.Fl w +option. +.Pp The options are as follows: .Bl -tag -width indent .It Fl -libxo @@ -257,13 +265,15 @@ option implies the .Fl m option. .It Fl w -Use 132 columns to display information, instead of the default which -is your window size. +Use at least 132 columns to display information, instead of the default which +is the window size if +.Nm +is associated with a terminal. If the .Fl w option is specified more than once, .Nm -will use as many columns as necessary without regard for your window size. +will use as many columns as necessary without regard for the window size. Note that this option has no effect if the .Dq command column is not the last column displayed. @@ -566,6 +576,8 @@ group name (from egid) (alias .It Cm inblk total blocks read (alias .Cm inblock ) +.It Cm jail +jail name .It Cm jid jail ID .It Cm jobc Modified: user/jeff/numa/bin/ps/ps.c ============================================================================== --- user/jeff/numa/bin/ps/ps.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/bin/ps/ps.c Thu Mar 15 20:25:06 2018 (r331024) @@ -202,6 +202,11 @@ main(int argc, char *argv[]) * any of stdout, stderr, or stdin is a terminal. The intent * is that "ps", "ps | more", and "ps | grep" all use the same * default line length unless -w is specified. + * + * If not interactive, the default length was traditionally 79. + * It has been changed to unlimited. This is mostly for the + * benefit of non-interactive scripts, which arguably should + * use -ww, but is compatible with Linux. */ if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') termwidth = atoi(cols); @@ -209,7 +214,7 @@ main(int argc, char *argv[]) ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || ws.ws_col == 0) - termwidth = 79; + termwidth = UNLIMITED; else termwidth = ws.ws_col - 1; Modified: user/jeff/numa/contrib/llvm/lib/Target/ARM/ARMISelLowering.cpp ============================================================================== --- user/jeff/numa/contrib/llvm/lib/Target/ARM/ARMISelLowering.cpp Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/contrib/llvm/lib/Target/ARM/ARMISelLowering.cpp Thu Mar 15 20:25:06 2018 (r331024) @@ -10201,7 +10201,14 @@ static SDValue PerformSHLSimplify(SDNode *N, case ISD::XOR: case ISD::SETCC: case ARMISD::CMP: - // Check that its not already using a shl. + // Check that the user isn't already using a constant because there + // aren't any instructions that support an immediate operand and a + // shifted operand. + if (isa(U->getOperand(0)) || + isa(U->getOperand(1))) + return SDValue(); + + // Check that it's not already using a shift. if (U->getOperand(0).getOpcode() == ISD::SHL || U->getOperand(1).getOpcode() == ISD::SHL) return SDValue(); @@ -10223,8 +10230,6 @@ static SDValue PerformSHLSimplify(SDNode *N, if (!C1ShlC2 || !C2) return SDValue(); - DEBUG(dbgs() << "Trying to simplify shl: "; N->dump()); - APInt C2Int = C2->getAPIntValue(); APInt C1Int = C1ShlC2->getAPIntValue(); @@ -10238,12 +10243,12 @@ static SDValue PerformSHLSimplify(SDNode *N, C1Int.lshrInPlace(C2Int); // The immediates are encoded as an 8-bit value that can be rotated. - unsigned Zeros = C1Int.countLeadingZeros() + C1Int.countTrailingZeros(); - if (C1Int.getBitWidth() - Zeros > 8) - return SDValue(); + auto LargeImm = [](const APInt &Imm) { + unsigned Zeros = Imm.countLeadingZeros() + Imm.countTrailingZeros(); + return Imm.getBitWidth() - Zeros > 8; + }; - Zeros = C2Int.countLeadingZeros() + C2Int.countTrailingZeros(); - if (C2Int.getBitWidth() - Zeros > 8) + if (LargeImm(C1Int) || LargeImm(C2Int)) return SDValue(); SelectionDAG &DAG = DCI.DAG; @@ -10253,6 +10258,10 @@ static SDValue PerformSHLSimplify(SDNode *N, DAG.getConstant(C1Int, dl, MVT::i32)); // Shift left to compensate for the lshr of C1Int. SDValue Res = DAG.getNode(ISD::SHL, dl, MVT::i32, BinOp, SHL.getOperand(1)); + + DEBUG(dbgs() << "Simplify shl use:\n"; SHL.getOperand(0).dump(); SHL.dump(); + N->dump()); + DEBUG(dbgs() << "Into:\n"; X.dump(); BinOp.dump(); Res.dump()); DAG.ReplaceAllUsesWith(SDValue(N, 0), Res); return SDValue(N, 0); Modified: user/jeff/numa/etc/mtree/BSD.tests.dist ============================================================================== --- user/jeff/numa/etc/mtree/BSD.tests.dist Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/etc/mtree/BSD.tests.dist Thu Mar 15 20:25:06 2018 (r331024) @@ -382,6 +382,8 @@ .. rtld-elf .. + tftpd + .. .. sbin dhclient Modified: user/jeff/numa/etc/rc.d/fsck ============================================================================== --- user/jeff/numa/etc/rc.d/fsck Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/etc/rc.d/fsck Thu Mar 15 20:25:06 2018 (r331024) @@ -57,7 +57,7 @@ fsck_start() echo "Reboot failed; help!" stop_boot ;; - 8) + 8|16) if checkyesno fsck_y_enable; then echo "File system preen failed, trying fsck -y ${fsck_y_flags}" fsck -y ${fsck_y_flags} Modified: user/jeff/numa/etc/rc.d/hostname ============================================================================== --- user/jeff/numa/etc/rc.d/hostname Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/etc/rc.d/hostname Thu Mar 15 20:25:06 2018 (r331024) @@ -60,9 +60,11 @@ hostname_start() # Have we got a hostname yet? # if [ -z "${hostname}" ]; then - # Null hostname is probably OK if DHCP is in use. + # Null hostname is probably OK if DHCP is in use, + # or when hostname is already set (common for jails). # - if [ -z "`list_net_interfaces dhcp`" ]; then + if [ -z "`list_net_interfaces dhcp`" -a \ + -z "`/bin/hostname`" ]; then warn "\$hostname is not set -- see rc.conf(5)." fi return Modified: user/jeff/numa/gnu/usr.bin/gdb/kgdb/trgt_amd64.c ============================================================================== --- user/jeff/numa/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Thu Mar 15 20:25:06 2018 (r331024) @@ -189,6 +189,7 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_fr if (pname == NULL) return (NULL); if (strcmp(pname, "calltrap") == 0 || + strcmp(pname, "fast_syscall_common") == 0 || strcmp(pname, "mchk_calltrap") == 0 || strcmp(pname, "nmi_calltrap") == 0 || (pname[0] == 'X' && pname[1] != '_')) Modified: user/jeff/numa/lib/libc/net/getnameinfo.3 ============================================================================== --- user/jeff/numa/lib/libc/net/getnameinfo.3 Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libc/net/getnameinfo.3 Thu Mar 15 20:25:06 2018 (r331024) @@ -18,7 +18,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 28, 2016 +.Dd March 15, 2018 .Dt GETNAMEINFO 3 .Os .Sh NAME @@ -80,6 +80,20 @@ or UNIX-domain respectively that is .Fa salen bytes long. +If +.Fa salen +is shorter than the length corresponding to the specified +address family or longer than +.Fn sizeof "struct sockaddr_storage" , +it returns +.Er EAI_FAMILY . +Note that +.Va sa->sa_len +should be consistent with +.Fa salen +though the value of +.Va sa->sa_len +is not directly used in this function. .Pp The host and service names associated with .Fa sa Modified: user/jeff/numa/lib/libc/net/getnameinfo.c ============================================================================== --- user/jeff/numa/lib/libc/net/getnameinfo.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libc/net/getnameinfo.c Thu Mar 15 20:25:06 2018 (r331024) @@ -124,26 +124,36 @@ getnameinfo(const struct sockaddr *sa, socklen_t salen afd = find_afd(sa->sa_family); if (afd == NULL) return (EAI_FAMILY); + /* + * getnameinfo() accepts an salen of sizeof(struct sockaddr_storage) + * at maximum as shown in RFC 4038 Sec.6.2.3. + */ + if (salen > sizeof(struct sockaddr_storage)) + return (EAI_FAMILY); + switch (sa->sa_family) { case PF_LOCAL: /* - * PF_LOCAL uses variable sa->sa_len depending on the + * PF_LOCAL uses variable salen depending on the * content length of sun_path. Require 1 byte in * sun_path at least. */ - if (salen > afd->a_socklen || - salen <= afd->a_socklen - + if (salen <= afd->a_socklen - sizeofmember(struct sockaddr_un, sun_path)) - return (EAI_FAIL); + return (EAI_FAMILY); + else if (salen > afd->a_socklen) + salen = afd->a_socklen; break; case PF_LINK: if (salen <= afd->a_socklen - sizeofmember(struct sockaddr_dl, sdl_data)) - return (EAI_FAIL); + return (EAI_FAMILY); break; default: - if (salen != afd->a_socklen) - return (EAI_FAIL); + if (salen < afd->a_socklen) + return (EAI_FAMILY); + else + salen = afd->a_socklen; break; } @@ -517,7 +527,7 @@ getnameinfo_un(const struct afd *afd, if (serv != NULL && servlen > 0) *serv = '\0'; if (host != NULL && hostlen > 0) { - pathlen = sa->sa_len - afd->a_off; + pathlen = salen - afd->a_off; if (pathlen + 1 > hostlen) { *host = '\0'; Modified: user/jeff/numa/lib/libc/sys/sendfile.2 ============================================================================== --- user/jeff/numa/lib/libc/sys/sendfile.2 Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libc/sys/sendfile.2 Thu Mar 15 20:25:06 2018 (r331024) @@ -129,8 +129,8 @@ Starting with .Nm sending files off the .Xr ffs 7 -filesystem doesn't block on I/O -(see +filesystem does not block on I/O +(see .Sx IMPLEMENTATION NOTES ), so the condition no longer applies. However, it is safe if an application utilizes @@ -140,8 +140,8 @@ and on performs the same action as it did in older .Fx -versions, e.g. -.Xr aio_read 2, +versions, e.g., +.Xr aio_read 2 , .Xr read 2 or .Nm @@ -210,7 +210,7 @@ The .Fx implementation of .Fn sendfile -doesn't block on disk I/O when it sends a file off the +does not block on disk I/O when it sends a file off the .Xr ffs 7 filesystem. The syscall returns success before the actual I/O completes, and data Modified: user/jeff/numa/lib/libdpv/dialog_util.c ============================================================================== --- user/jeff/numa/lib/libdpv/dialog_util.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libdpv/dialog_util.c Thu Mar 15 20:25:06 2018 (r331024) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2013-2014 Devin Teske + * Copyright (c) 2013-2018 Devin Teske * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -328,8 +328,7 @@ dialog_spawn_gauge(char *init_prompt, pid_t *pid) posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); error = posix_spawnp(pid, dialog, &action, (const posix_spawnattr_t *)NULL, dargv, environ); - if (error != 0) - err(EXIT_FAILURE, "%s: posix_spawnp(3)", __func__); + if (error != 0) err(EXIT_FAILURE, "%s", dialog); /* NB: Do not free(3) *dargv[], else SIGSEGV */ Modified: user/jeff/numa/lib/libdpv/dpv.3 ============================================================================== --- user/jeff/numa/lib/libdpv/dpv.3 Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libdpv/dpv.3 Thu Mar 15 20:25:06 2018 (r331024) @@ -1,4 +1,4 @@ -.\" Copyright (c) 2013-2016 Devin Teske +.\" Copyright (c) 2013-2018 Devin Teske .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd Jan 26, 2016 +.Dd March 13, 2018 .Dt DPV 3 .Os .Sh NAME @@ -36,7 +36,8 @@ .In dpv.h .Ft int .Fo dpv -.Fa "struct dpv_config *config, struct dpv_file_node *file_list" +.Fa "struct dpv_config *config" +.Fa "struct dpv_file_node *file_list" .Fc .Ft void .Fo dpv_free @@ -60,8 +61,7 @@ or The .Fn dpv .Fa config -argument contains the following properties for configuring global display -features: +argument properties for configuring global display features: .Bd -literal -offset indent struct dpv_config { uint8_t keep_tite; /* Cleaner exit for scripts */ @@ -113,11 +113,12 @@ member of the .Fn dpv .Fa config argument is a mask of bit fields indicating various processing options. -Possible flags are as follows: +Possible flags are: .Bl -tag -width DPV_NO_OVERRUN .It Dv DPV_TEST_MODE Enable test mode. -In test mode, the +In test mode, +the .Fn action callback of the .Fa config @@ -126,18 +127,21 @@ Appends .Dq [TEST MODE] to the status line .Po -to override, set the +to override, +set the .Va status_format member of the .Fn dpv .Fa config argument; -e.g., to +for example, +to .Dv DPV_STATUS_DEFAULT .Pc . .It Dv DPV_WIDE_MODE Enable wide mode. -In wide mode, the length of the +In wide mode, +the length of the .Va aprompt and .Va pprompt @@ -169,7 +173,8 @@ does not support color environment variable is ignored .Pc . .It Dv DPV_NO_OVERRUN -When enabled, callbacks for the current +When enabled, +callbacks for the current .Vt dpv_file_node are terminated when .Fn action @@ -189,7 +194,7 @@ argument to .Fn dpv is a pointer to a .Dq linked-list , -described as follows in +described in .In dpv.h : .Bd -literal -offset indent struct dpv_file_node { @@ -206,7 +211,8 @@ struct dpv_file_node { For each of the items in the .Fa file_list .Dq linked-list -argument, the +argument, +the .Fn action callback member of the .Fn dpv @@ -214,7 +220,7 @@ callback member of the argument is called. The .Fn action -function should perform a +function performs a .Dq nominal action on the file and return. The return value of @@ -231,7 +237,7 @@ provides a reference to the current .Vt dpv_file_node being processed. .Fa out -provides a file descriptor where the data should go. +provides a file descriptor where the data goes. .Pp If the .Va output @@ -244,7 +250,7 @@ the .Fa out file descriptor of .Fn action -will be zero and should be ignored. +will be zero and can be ignored. If .Fa output was set to DPV_OUTPUT_FILE, @@ -257,14 +263,16 @@ was set to DPV_OUTPUT_SHELL, will be an open file descriptor to a pipe for a spawned shell program. When .Fa out -is greater than zero, you should write any data you have read back to +is greater than zero, +write data that has been read back to .Fa out . .Pp To abort .Fn dpv , either from the .Fn action -callback or asynchronously from a signal handler, two globals are provided via +callback or asynchronously from a signal handler, +two globals are provided via .In dpv.h : .Bd -literal -offset indent extern int dpv_interrupt; /* Set to TRUE in interrupt handler */ @@ -272,11 +280,12 @@ extern int dpv_abort; /* Set to true in callback t .Ed .Pp These globals are not automatically reset and must be manually maintained. -Don't forget to reset these globals before subsequent invocations of +Do not forget to reset these globals before subsequent invocations of .Fn dpv when making multiple calls from the same program. .Pp -In addition, the +In addition, +the .Va status member of the .Fn action @@ -284,7 +293,7 @@ member of the argument can be used to control callbacks for the current file. The .Va status -member can be set to any of the following from +member can be set to any of the below from .In dpv.h : .Bd -literal -offset indent enum dpv_status { @@ -296,13 +305,17 @@ enum dpv_status { .Pp The default .Fa status -is zero, DPV_STATUS_RUNING, which keeps the callbacks coming for the current +is zero, +DPV_STATUS_RUNNING, +which keeps the callbacks coming for the current .Fn file . Setting .Ql file->status to anything other than DPV_STATUS_RUNNING will cause .Fn dpv -to loop to the next file, effecting the next callback, if any. +to loop to the next file, +effecting the next callback, +if any. .Pp The .Fn action @@ -318,7 +331,7 @@ Percentages are reported through the return value of the .Fn action callback. -Throughput statistics are calculated from the following global +Throughput statistics are calculated from the below global .Vt int in .In dpv.h : @@ -326,7 +339,7 @@ in extern int dpv_overall_read; .Ed .Pp -This should be set to the number of bytes that have been read for all files. +Set this to the number of bytes that have been read for all files. Throughput information is displayed in the status line .Pq only available when using Xr dialog 3 at the bottom of the screen. @@ -335,18 +348,20 @@ See DPV_DISPLAY_LIBDIALOG above. Note that .Va dpv_overall_read does not have to represent bytes. -For example, you can change the +For example, +the .Va status_format -to display something other than +can be changed to display something other than .Dq Li bytes and increment .Va dpv_overall_read accordingly -.Pq e.g., counting lines . +.Pq for example, counting lines . .Pp When .Fn dpv -is processing the current file, the +is processing the current file, +the .Va length and .Va read @@ -355,7 +370,8 @@ members of the .Fa file argument are used for calculating the display of mini progress bars .Po -if enabled; see +if enabled; +see .Va pbar_size above .Pc . @@ -381,7 +397,7 @@ function performs on private global variables initialized by .Fn dpv . .Sh ENVIRONMENT -The following environment variables are referenced by +The below environment variables are referenced by .Nm : .Bl -tag -width ".Ev USE_COLOR" .It Ev DIALOG @@ -398,17 +414,20 @@ or .Ql Xdialog .Pq for Dv DPV_DISPLAY_XDIALOG . .It Ev DIALOGRC -If set and non-NULL, path to +If set and non-NULL, +path to .Ql .dialogrc file. .It Ev HOME If .Ql Ev $DIALOGRC -is either not set or NULL, used as a prefix to +is either not set or NULL, +used as a prefix to .Ql .dialogrc -.Pq i.e., Ql $HOME/.dialogrc . +.Pq that is, Ql $HOME/.dialogrc . .It Ev USE_COLOR -If set and NULL, disables the use of color when using +If set and NULL, +disables the use of color when using .Xr dialog 1 .Pq does not apply to Xr Xdialog 1 . .It Ev msg_done Ev msg_fail Ev msg_pending @@ -418,7 +437,8 @@ Internationalization strings for overriding the defaul and .Ql Pending respectively. -To prevent their usage, explicitly set the +To prevent their usage, +explicitly set the .Va msg_done , .Va msg_fail , and @@ -471,11 +491,11 @@ This is a known issue with the .Ql --gauge widget in .Xr Xdialog 1 . -Embed escaped newlines within prompt text(s) to force line breaks. +Embed escaped newlines within prompt text to force line breaks. .Pp .Xr dialog 1 does not display the first character after a series of escaped escape-sequences -(e.g., ``\\\\n'' produces ``\\'' instead of ``\\n''). +(for example, ``\\\\n'' produces ``\\'' instead of ``\\n''). This is a known issue with .Xr dialog 1 and does not affect @@ -483,10 +503,10 @@ and does not affect or .Xr Xdialog 1 . .Pp -If your application ignores +If an application ignores .Ev USE_COLOR when set and NULL before calling -.Xr dpv 3 +.Fn dpv with color escape sequences anyway, .Xr dialog 3 and Modified: user/jeff/numa/lib/libdpv/util.c ============================================================================== --- user/jeff/numa/lib/libdpv/util.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libdpv/util.c Thu Mar 15 20:25:06 2018 (r331024) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2013-2014 Devin Teske + * Copyright (c) 2013-2018 Devin Teske * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -100,8 +100,7 @@ shell_spawn_pipecmd(const char *cmd, const char *label posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); error = posix_spawnp(pid, shellcmd, &action, (const posix_spawnattr_t *)NULL, shellcmd_argv, environ); - if (error != 0) - err(EXIT_FAILURE, "%s: posix_spawnp(3)", __func__); + if (error != 0) err(EXIT_FAILURE, "%s", shellcmd); return stdin_pipe[1]; } Modified: user/jeff/numa/lib/libfigpar/figpar.3 ============================================================================== --- user/jeff/numa/lib/libfigpar/figpar.3 Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libfigpar/figpar.3 Thu Mar 15 20:25:06 2018 (r331024) @@ -1,4 +1,4 @@ -.\" Copyright (c) 2013-2015 Devin Teske +.\" Copyright (c) 2013-2018 Devin Teske .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd Nov 2, 2015 +.Dd March 13, 2018 .Dt FIGPAR 3 .Os .Sh NAME @@ -38,22 +38,30 @@ .In figpar.h .Ft int .Fo parse_config -.Fa "struct figpar_config options[], const char *path" -.Fa "int \*[lp]*unknown\*[rp]\*[lp]struct figpar_config *option, uint32_t line" -.Fa "char *directive, char *value\*[rp], uint8_t processing_options" +.Fa "struct figpar_config options[]" +.Fa "const char *path" +.Fa "int \*[lp]*unknown\*[rp]\*[lp]struct figpar_config *option" +.Fa "uint32_t line" +.Fa "char *directive" +.Fa "char *value\*[rp]" +.Fa "uint8_t processing_options" .Fc .Ft "struct figpar_config *" .Fo get_config_option -.Fa "struct figpar_config options[], const char *directive" +.Fa "struct figpar_config options[]" +.Fa "const char *directive" .Fc .In string_m.h .Ft int .Fo replaceall -.Fa "char *source, const char *find, const char *replace" +.Fa "char *source" +.Fa "const char *find" +.Fa "const char *replace" .Fc .Ft unsigned int .Fo strcount -.Fa "const char *source, const char *find" +.Fa "const char *source" +.Fa "const char *find" .Fc .Ft void .Fo strexpand @@ -70,7 +78,8 @@ .Sh DESCRIPTION The .Nm -library provides a light-weight, portable framework for parsing configuration +library provides a light-weight, +portable framework for parsing configuration files. The library uses .Xr open 2 , @@ -87,8 +96,9 @@ provides raw data to a set of callback functions. These callback functions can in-turn initiate abort through their return value, allowing custom syntax validation during parsing. .Pp -Configuration directives, types, and callback functions are provided through -data structures defined in +Configuration directives, +types, +and callback functions are provided through data structures defined in .In figpar.h : .Bd -literal -offset indent struct figpar_config { @@ -132,7 +142,7 @@ argument to .Fn parse_config is a mask of bit fields which indicate various processing options. -The possible flags are as follows: +The possible flags are: .Bl -tag -width FIGPAR_BREAK_ON_SEMICOLON .It Dv FIGPAR_BREAK_ON_EQUALS An equals sign @@ -151,7 +161,8 @@ Normally directives are matched case insensitively usi .Xr fnmatch 3 . This flag enables directive matching to be case sensitive. .It Dv FIGPAR_REQUIRE_EQUALS -If a directive is not followed by an equals, processing is aborted. +If a directive is not followed by an equals, +processing is aborted. .It Dv FIGPAR_STRICT_EQUALS Equals must be part of the directive to be considered a delimiter between directive and value. @@ -159,7 +170,7 @@ directive and value. .Pp The .Fa options -struct array pointer can be NULL and every directive will invoke the +struct array pointer can be NULL and every directive will run the .Fn unknown function argument. .Pp @@ -168,13 +179,16 @@ The directive for each figpar_config item in the options argument is matched against each parsed directive using .Xr fnmatch 3 until a match is found. -If a match is found, the +If a match is found, +the .Fn action -function for that figpar_config directive is invoked with the line number, -directive, and value. -Otherwise if no match, the +function for that figpar_config directive is run with the line number, +directive, +and value. +Otherwise if no match, +the .Fn unknown -function is invoked +function is run .Pq with the same arguments . .Pp If either @@ -197,19 +211,20 @@ is entirely optional as-is the use of .Fa "enum figpar_cfgtype" or .Fa "union figpar_cfgvalue" . -For example, you could choose to pass a NULL pointer to +For example, +a NULL pointer can be passed to .Fn parse_config -for the first argument and then provide a simple +for the first argument while providing a simple .Fa unknown function based on .Xr queue 3 -that populates a singly-linked list of your own struct containing the +that populates a singly-linked list of a struct containing the .Fa directive and .Fa value . .Pp -In addition, the following miscellaneous string manipulation routines are -provided by +In addition, +miscellaneous string manipulation routines are provided by .In string_m.h : .Bl -tag -width strexpandnl() .It Fn replaceall @@ -224,8 +239,7 @@ Count the number of occurrences of one string that app .Fa source string. Return value is the total count. -An example use would be if you need to know how large a block of memory needs -to be for a +An example use would be to show how large a block of memory needs to be for a .Fn replaceall series. .It Fn strexpand Modified: user/jeff/numa/lib/libipsec/pfkey.c ============================================================================== --- user/jeff/numa/lib/libipsec/pfkey.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libipsec/pfkey.c Thu Mar 15 20:25:06 2018 (r331024) @@ -1595,10 +1595,12 @@ pfkey_send_x5(so, type, spid) * others : success and return value of socket. */ int -pfkey_open() +pfkey_open(void) { int so; - const int bufsiz = 128 * 1024; /*is 128K enough?*/ + int bufsiz_current, bufsiz_wanted; + int ret; + socklen_t len; if ((so = socket(PF_KEY, SOCK_RAW, PF_KEY_V2)) < 0) { __ipsec_set_strerror(strerror(errno)); @@ -1609,8 +1611,28 @@ pfkey_open() * This is a temporary workaround for KAME PR 154. * Don't really care even if it fails. */ - (void)setsockopt(so, SOL_SOCKET, SO_SNDBUF, &bufsiz, sizeof(bufsiz)); - (void)setsockopt(so, SOL_SOCKET, SO_RCVBUF, &bufsiz, sizeof(bufsiz)); + /* Try to have 128k. If we have more, do not lower it. */ + bufsiz_wanted = 128 * 1024; + len = sizeof(bufsiz_current); + ret = getsockopt(so, SOL_SOCKET, SO_SNDBUF, + &bufsiz_current, &len); + if ((ret < 0) || (bufsiz_current < bufsiz_wanted)) + (void)setsockopt(so, SOL_SOCKET, SO_SNDBUF, + &bufsiz_wanted, sizeof(bufsiz_wanted)); + + /* Try to have have at least 2MB. If we have more, do not lower it. */ + bufsiz_wanted = 2 * 1024 * 1024; + len = sizeof(bufsiz_current); + ret = getsockopt(so, SOL_SOCKET, SO_RCVBUF, + &bufsiz_current, &len); + if (ret < 0) + bufsiz_current = 128 * 1024; + + for (; bufsiz_wanted > bufsiz_current; bufsiz_wanted /= 2) { + if (setsockopt(so, SOL_SOCKET, SO_RCVBUF, + &bufsiz_wanted, sizeof(bufsiz_wanted)) == 0) + break; + } __ipsec_errcode = EIPSEC_NO_ERROR; return so; Modified: user/jeff/numa/lib/libmagic/Makefile ============================================================================== --- user/jeff/numa/lib/libmagic/Makefile Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libmagic/Makefile Thu Mar 15 20:25:06 2018 (r331024) @@ -8,7 +8,9 @@ CONTRDIR= ${SRCTOP}/contrib/file LIB= magic SHLIB_MAJOR= 4 +.if !make(build-tools) LIBADD= z +.endif MAN= libmagic.3 magic.5 SRCS= apprentice.c apptype.c ascmagic.c cdf.c cdf_time.c compress.c \ Modified: user/jeff/numa/lib/libsysdecode/mktables ============================================================================== --- user/jeff/numa/lib/libsysdecode/mktables Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/lib/libsysdecode/mktables Thu Mar 15 20:25:06 2018 (r331024) @@ -146,7 +146,7 @@ gen_table "socktype" "SOCK_[A-Z]+[[:space:]]+[1 gen_table "thrcreateflags" "THR_[A-Z]+[[:space:]]+0x[0-9]+" "sys/thr.h" gen_table "umtxop" "UMTX_OP_[[:alnum:]_]+[[:space:]]+[0-9]+" "sys/umtx.h" gen_table "vmprot" "VM_PROT_[A-Z]+[[:space:]]+\(\(vm_prot_t\)[[:space:]]+0x[0-9]+\)" "vm/vm.h" -gen_table "vmresult" "KERN_[A-Z]+[[:space:]]+[0-9]+" "vm/vm_param.h" +gen_table "vmresult" "KERN_[A-Z_]+[[:space:]]+[0-9]+" "vm/vm_param.h" gen_table "wait6opt" "W[A-Z]+[[:space:]]+[0-9]+" "sys/wait.h" gen_table "seekwhence" "SEEK_[A-Z]+[[:space:]]+[0-9]+" "sys/unistd.h" gen_table "fcntlcmd" "F_[A-Z0-9_]+[[:space:]]+[0-9]+[[:space:]]+" "sys/fcntl.h" "F_CANCEL|F_..LCK" Modified: user/jeff/numa/libexec/tftpd/Makefile ============================================================================== --- user/jeff/numa/libexec/tftpd/Makefile Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/libexec/tftpd/Makefile Thu Mar 15 20:25:06 2018 (r331024) @@ -14,4 +14,7 @@ CFLAGS+= -DLIBWRAP LIBADD= wrap .endif +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests + .include Modified: user/jeff/numa/libexec/tftpd/tftp-transfer.c ============================================================================== --- user/jeff/numa/libexec/tftpd/tftp-transfer.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/libexec/tftpd/tftp-transfer.c Thu Mar 15 20:25:06 2018 (r331024) @@ -304,6 +304,8 @@ send_ack: gettimeofday(&(ts->tstop), NULL); } while (n_data == segsize); + write_close(); + /* Don't do late packet management for the client implementation */ if (acting_as_client) return; Modified: user/jeff/numa/libexec/tftpd/tftpd.c ============================================================================== --- user/jeff/numa/libexec/tftpd/tftpd.c Thu Mar 15 20:09:24 2018 (r331023) +++ user/jeff/numa/libexec/tftpd/tftpd.c Thu Mar 15 20:25:06 2018 (r331024) @@ -421,8 +421,7 @@ main(int argc, char *argv[]) "%s read access denied", peername); exit(1); } - } - if (tp->th_opcode == WRQ) { + } else if (tp->th_opcode == WRQ) { if (allow_wo) tftp_wrq(peer, tp->th_stuff, n - 1); else { @@ -430,7 +429,8 @@ main(int argc, char *argv[]) "%s write access denied", peername); exit(1); } - } + } else + send_error(peer, EBADOP); exit(1); } *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***