svn commit: r306777 - in user/alc/PQ_LAUNDRY: bin/chio bin/dd bin/echo bin/expr bin/pwd bin/stty bin/test gnu/usr.bin/groff lib/libc/sys lib/libcapsicum sbin/atm/atmconfig sbin/bsdlabel sbin/clri s...

Mark Johnston markj at FreeBSD.org
Thu Oct 6 18:45:14 UTC 2016


Author: markj
Date: Thu Oct  6 18:45:10 2016
New Revision: 306777
URL: https://svnweb.freebsd.org/changeset/base/306777

Log:
  MFH r306776

Added:
  user/alc/PQ_LAUNDRY/gnu/usr.bin/groff/mdate.sh
     - copied unchanged from r306776, head/gnu/usr.bin/groff/mdate.sh
  user/alc/PQ_LAUNDRY/lib/libcapsicum/capsicum_helpers.3
     - copied unchanged from r306776, head/lib/libcapsicum/capsicum_helpers.3
  user/alc/PQ_LAUNDRY/share/man/man9/dnv.9
     - copied unchanged from r306776, head/share/man/man9/dnv.9
Modified:
  user/alc/PQ_LAUNDRY/bin/chio/chio.1
  user/alc/PQ_LAUNDRY/bin/dd/dd.1
  user/alc/PQ_LAUNDRY/bin/echo/echo.1
  user/alc/PQ_LAUNDRY/bin/expr/expr.1
  user/alc/PQ_LAUNDRY/bin/pwd/pwd.1
  user/alc/PQ_LAUNDRY/bin/stty/stty.1
  user/alc/PQ_LAUNDRY/bin/test/test.1
  user/alc/PQ_LAUNDRY/gnu/usr.bin/groff/Makefile.inc
  user/alc/PQ_LAUNDRY/lib/libc/sys/kqueue.2
  user/alc/PQ_LAUNDRY/lib/libcapsicum/Makefile
  user/alc/PQ_LAUNDRY/sbin/atm/atmconfig/atmconfig.8
  user/alc/PQ_LAUNDRY/sbin/bsdlabel/bsdlabel.8
  user/alc/PQ_LAUNDRY/sbin/clri/clri.8
  user/alc/PQ_LAUNDRY/sbin/devd/devd.8
  user/alc/PQ_LAUNDRY/sbin/devfs/devfs.8
  user/alc/PQ_LAUNDRY/sbin/fdisk/fdisk.8
  user/alc/PQ_LAUNDRY/sbin/fdisk_pc98/fdisk.8
  user/alc/PQ_LAUNDRY/sbin/fsck/fsck.8
  user/alc/PQ_LAUNDRY/sbin/fsck_ffs/fsck_ffs.8
  user/alc/PQ_LAUNDRY/sbin/natd/natd.8
  user/alc/PQ_LAUNDRY/sbin/nos-tun/nos-tun.8
  user/alc/PQ_LAUNDRY/sbin/savecore/savecore.c
  user/alc/PQ_LAUNDRY/share/man/man5/src.conf.5
  user/alc/PQ_LAUNDRY/share/man/man9/Makefile
  user/alc/PQ_LAUNDRY/share/man/man9/style.9
  user/alc/PQ_LAUNDRY/sys/arm/allwinner/aw_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/altera/socfpga/socfpga_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/amlogic/aml8726/aml8726_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/arm/busdma_machdep-v6.c
  user/alc/PQ_LAUNDRY/sys/arm/arm/cpufunc_asm_armv7.S
  user/alc/PQ_LAUNDRY/sys/arm/arm/cpuinfo.c
  user/alc/PQ_LAUNDRY/sys/arm/arm/locore-v6.S
  user/alc/PQ_LAUNDRY/sys/arm/arm/mp_machdep.c
  user/alc/PQ_LAUNDRY/sys/arm/broadcom/bcm2835/bcm2836_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/freescale/imx/imx6_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/include/cpu-v6.h
  user/alc/PQ_LAUNDRY/sys/arm/include/cpufunc.h
  user/alc/PQ_LAUNDRY/sys/arm/include/cpuinfo.h
  user/alc/PQ_LAUNDRY/sys/arm/mv/armada38x/pmsu.c
  user/alc/PQ_LAUNDRY/sys/arm/nvidia/tegra124/tegra124_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/rockchip/rk30xx_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/samsung/exynos/exynos5_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/ti/cpsw/if_cpsw.c
  user/alc/PQ_LAUNDRY/sys/arm/ti/cpsw/if_cpswreg.h
  user/alc/PQ_LAUNDRY/sys/arm/ti/cpsw/if_cpswvar.h
  user/alc/PQ_LAUNDRY/sys/arm/ti/omap4/omap4_mp.c
  user/alc/PQ_LAUNDRY/sys/arm/xilinx/zy7_mp.c
  user/alc/PQ_LAUNDRY/sys/boot/efi/boot1/Makefile
  user/alc/PQ_LAUNDRY/sys/boot/efi/loader/Makefile
  user/alc/PQ_LAUNDRY/sys/boot/i386/gptzfsboot/Makefile
  user/alc/PQ_LAUNDRY/sys/boot/i386/zfsboot/Makefile
  user/alc/PQ_LAUNDRY/sys/boot/userboot/zfs/Makefile
  user/alc/PQ_LAUNDRY/sys/boot/zfs/Makefile
  user/alc/PQ_LAUNDRY/sys/cam/cam_compat.c
  user/alc/PQ_LAUNDRY/sys/cam/cam_compat.h
  user/alc/PQ_LAUNDRY/sys/dev/atkbdc/psm.c
  user/alc/PQ_LAUNDRY/sys/dev/netmap/netmap_kern.h
  user/alc/PQ_LAUNDRY/sys/geom/mirror/g_mirror.c
  user/alc/PQ_LAUNDRY/sys/geom/mirror/g_mirror.h
  user/alc/PQ_LAUNDRY/sys/geom/mirror/g_mirror_ctl.c
  user/alc/PQ_LAUNDRY/sys/kern/vfs_bio.c
  user/alc/PQ_LAUNDRY/sys/kern/vfs_subr.c
  user/alc/PQ_LAUNDRY/sys/net/altq/altq_subr.c
  user/alc/PQ_LAUNDRY/sys/net/if_var.h
  user/alc/PQ_LAUNDRY/sys/net/route.c
  user/alc/PQ_LAUNDRY/sys/net/route_var.h
  user/alc/PQ_LAUNDRY/sys/netinet/cc/cc_cdg.c
  user/alc/PQ_LAUNDRY/sys/netinet/cc/cc_cubic.c
  user/alc/PQ_LAUNDRY/sys/netinet/cc/cc_htcp.c
  user/alc/PQ_LAUNDRY/sys/netinet/khelp/h_ertt.c
  user/alc/PQ_LAUNDRY/sys/netinet/sctp_bsd_addr.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_debug.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_hostcache.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_hostcache.h
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_input.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_output.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_seq.h
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_stacks/fastpath.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_subr.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_usrreq.c
  user/alc/PQ_LAUNDRY/sys/netinet/tcp_var.h
  user/alc/PQ_LAUNDRY/sys/sys/vnode.h
  user/alc/PQ_LAUNDRY/tools/build/options/makeman
  user/alc/PQ_LAUNDRY/usr.bin/locate/locate/locate.c
  user/alc/PQ_LAUNDRY/usr.bin/locate/locate/util.c
  user/alc/PQ_LAUNDRY/usr.bin/login/login_audit.c
  user/alc/PQ_LAUNDRY/usr.bin/write/write.c
  user/alc/PQ_LAUNDRY/usr.sbin/trpt/trpt.c
Directory Properties:
  user/alc/PQ_LAUNDRY/   (props changed)

Modified: user/alc/PQ_LAUNDRY/bin/chio/chio.1
==============================================================================
--- user/alc/PQ_LAUNDRY/bin/chio/chio.1	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/bin/chio/chio.1	Thu Oct  6 18:45:10 2016	(r306777)
@@ -32,7 +32,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 2, 2016
+.Dd October 5, 2016
 .Dt CHIO 1
 .Os
 .Sh NAME
@@ -287,6 +287,14 @@ Configure the changer to use picker 2 (t
 .Sh SEE ALSO
 .Xr mt 1 ,
 .Xr mount 8
+.Sh HISTORY
+A
+.Nm
+utility appeared in
+.Nx 1.3 .
+.Nm
+first appeared in
+.Fx 2.2 .
 .Sh AUTHORS
 .An -nosplit
 The

Modified: user/alc/PQ_LAUNDRY/bin/dd/dd.1
==============================================================================
--- user/alc/PQ_LAUNDRY/bin/dd/dd.1	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/bin/dd/dd.1	Thu Oct  6 18:45:10 2016	(r306777)
@@ -32,7 +32,7 @@
 .\"     @(#)dd.1	8.2 (Berkeley) 1/13/94
 .\" $FreeBSD$
 .\"
-.Dd August 25, 2016
+.Dd October 5, 2016
 .Dt DD 1
 .Os
 .Sh NAME
@@ -447,6 +447,11 @@ and
 values are extensions to the
 .Tn POSIX
 standard.
+.Sh HISTORY
+A
+.Nm
+command appeared in
+.At v5 .
 .Sh BUGS
 Protection mechanisms in the
 .Xr geom 4

Modified: user/alc/PQ_LAUNDRY/bin/echo/echo.1
==============================================================================
--- user/alc/PQ_LAUNDRY/bin/echo/echo.1	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/bin/echo/echo.1	Thu Oct  6 18:45:10 2016	(r306777)
@@ -32,7 +32,7 @@
 .\"	@(#)echo.1	8.1 (Berkeley) 7/22/93
 .\" $FreeBSD$
 .\"
-.Dd November 12, 2010
+.Dd October 5, 2016
 .Dt ECHO 1
 .Os
 .Sh NAME
@@ -103,3 +103,8 @@ The
 utility conforms to
 .St -p1003.1-2001
 as amended by Cor.\& 1-2002.
+.Sh HISTORY
+The
+.Nm
+command appeared in
+.At v2 .

Modified: user/alc/PQ_LAUNDRY/bin/expr/expr.1
==============================================================================
--- user/alc/PQ_LAUNDRY/bin/expr/expr.1	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/bin/expr/expr.1	Thu Oct  6 18:45:10 2016	(r306777)
@@ -30,7 +30,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 25, 2012
+.Dd October 5, 2016
 .Dt EXPR 1
 .Os
 .Sh NAME
@@ -309,3 +309,19 @@ these arguments are treated just as thei
 The
 .Fl e
 flag is an extension.
+.Sh HISTORY
+An
+.Nm
+utility first appeared in the Programmer's Workbench (PWB/UNIX).
+A public domain version of
+.Nm
+written by
+.An Pace Willisson Aq Mt pace at blitz.com
+appeared in
+.Bx 386 0.1 .
+.Sh AUTHORS
+Initial implementation by
+.An Pace Willisson Aq Mt pace at blitz.com
+was largely rewritten by
+.An -nosplit
+.An J.T. Conklin Aq Mt jtc at FreeBSD.org .

Modified: user/alc/PQ_LAUNDRY/bin/pwd/pwd.1
==============================================================================
--- user/alc/PQ_LAUNDRY/bin/pwd/pwd.1	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/bin/pwd/pwd.1	Thu Oct  6 18:45:10 2016	(r306777)
@@ -32,7 +32,7 @@
 .\"     @(#)pwd.1	8.2 (Berkeley) 4/28/95
 .\" $FreeBSD$
 .\"
-.Dd April 12, 2003
+.Dd October 5, 2016
 .Dt PWD 1
 .Os
 .Sh NAME
@@ -85,6 +85,11 @@ The
 .Nm
 utility conforms to
 .St -p1003.1-2001 .
+.Sh HISTORY
+The
+.Nm 
+command appeared in
+.At v5 .
 .Sh BUGS
 In
 .Xr csh 1

Modified: user/alc/PQ_LAUNDRY/bin/stty/stty.1
==============================================================================
--- user/alc/PQ_LAUNDRY/bin/stty/stty.1	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/bin/stty/stty.1	Thu Oct  6 18:45:10 2016	(r306777)
@@ -32,7 +32,7 @@
 .\"     @(#)stty.1	8.4 (Berkeley) 4/18/94
 .\" $FreeBSD$
 .\"
-.Dd August 23, 2008
+.Dd October 5, 2016
 .Dt STTY 1
 .Os
 .Sh NAME
@@ -601,3 +601,8 @@ and
 .Fl f
 are
 extensions to the standard.
+.Sh HISTORY
+A
+.Nm
+command appeared in
+.At v2 .

Modified: user/alc/PQ_LAUNDRY/bin/test/test.1
==============================================================================
--- user/alc/PQ_LAUNDRY/bin/test/test.1	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/bin/test/test.1	Thu Oct  6 18:45:10 2016	(r306777)
@@ -32,7 +32,7 @@
 .\"     @(#)test.1	8.1 (Berkeley) 5/31/93
 .\" $FreeBSD$
 .\"
-.Dd June 1, 2013
+.Dd October 5, 2016
 .Dt TEST 1
 .Os
 .Sh NAME
@@ -376,6 +376,11 @@ The primaries
 and
 .Fl O
 are extensions.
+.Sh HISTORY
+A
+.Nm
+utility appeared in
+.At v7 .
 .Sh BUGS
 Both sides are always evaluated in
 .Fl a

Modified: user/alc/PQ_LAUNDRY/gnu/usr.bin/groff/Makefile.inc
==============================================================================
--- user/alc/PQ_LAUNDRY/gnu/usr.bin/groff/Makefile.inc	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/gnu/usr.bin/groff/Makefile.inc	Thu Oct  6 18:45:10 2016	(r306777)
@@ -119,7 +119,7 @@ revision=`sed -e 's/^0$$//' -e 's/^[1-9]
 	-e "s;@TMAC_MDIR@;$(tmacdir)/mm;g" \
 	-e "s;@BROKEN_SPOOLER_FLAGS@;$(BROKEN_SPOOLER_FLAGS);g" \
 	-e "s;@VERSION@;$(version)$(revision);g" \
-	-e "s;@MDATE@;`$(SHELL) ${GROFF_DIST}/mdate.sh $<`;g" \
+	-e "s;@MDATE@;$(MDATE);g" \
 	-e "s;@g@;$(g);g" \
 	-e "s;@G@;`echo $(g) | LC_ALL=C tr a-z A-Z`;g" \
 	$< >$@
@@ -141,4 +141,5 @@ TOPREL?=	..
 GROFF_DIST=	${.CURDIR}/${TOPREL}/../../../contrib/groff
 DIST_SUBDIR?=	${.CURDIR:T}
 DIST_DIR=	${GROFF_DIST}/${DIST_SUBDIR}
+MDATE!=		sh ${.CURDIR}/${TOPREL}/mdate.sh ${GROFF_DIST}/ChangeLog
 .PATH: ${DIST_DIR}

Copied: user/alc/PQ_LAUNDRY/gnu/usr.bin/groff/mdate.sh (from r306776, head/gnu/usr.bin/groff/mdate.sh)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/alc/PQ_LAUNDRY/gnu/usr.bin/groff/mdate.sh	Thu Oct  6 18:45:10 2016	(r306777, copy of r306776, head/gnu/usr.bin/groff/mdate.sh)
@@ -0,0 +1,9 @@
+#!/bin/sh
+# $FreeBSD$
+
+set -e
+test -r "$1"
+export LC_ALL=C
+changelog_date=$(sed -E -n 's/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*$/\1/p' "$1" |\
+    head -n 1)
+echo $(date -j -f %Y-%m-%d +"%e %B %Y" $changelog_date)

Modified: user/alc/PQ_LAUNDRY/lib/libc/sys/kqueue.2
==============================================================================
--- user/alc/PQ_LAUNDRY/lib/libc/sys/kqueue.2	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/lib/libc/sys/kqueue.2	Thu Oct  6 18:45:10 2016	(r306777)
@@ -375,7 +375,7 @@ A file descriptor referencing the monito
 The closed file descriptor did not have write access.
 .It Dv NOTE_CLOSE_WRITE
 A file descriptor referencing the monitored file, was closed.
-The closed file descriptor has write access.
+The closed file descriptor had write access.
 .Pp
 This note, as well as
 .Dv NOTE_CLOSE ,

Modified: user/alc/PQ_LAUNDRY/lib/libcapsicum/Makefile
==============================================================================
--- user/alc/PQ_LAUNDRY/lib/libcapsicum/Makefile	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/lib/libcapsicum/Makefile	Thu Oct  6 18:45:10 2016	(r306777)
@@ -4,4 +4,14 @@ PACKAGE=lib${LIB}
 
 INCS=	capsicum_helpers.h
 
+MAN+=	capsicum_helpers.3
+
+MLINKS+=capsicum_helpers.3 caph_limit_stream.3
+MLINKS+=capsicum_helpers.3 caph_limit_stdin.3
+MLINKS+=capsicum_helpers.3 caph_limit_stderr.3
+MLINKS+=capsicum_helpers.3 caph_limit_stdout.3
+MLINKS+=capsicum_helpers.3 caph_limit_stdio.3
+MLINKS+=capsicum_helpers.3 caph_cache_tzdata.3
+MLINKS+=capsicum_helpers.3 caph_cache_catpages.3
+
 .include <bsd.lib.mk>

Copied: user/alc/PQ_LAUNDRY/lib/libcapsicum/capsicum_helpers.3 (from r306776, head/lib/libcapsicum/capsicum_helpers.3)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/alc/PQ_LAUNDRY/lib/libcapsicum/capsicum_helpers.3	Thu Oct  6 18:45:10 2016	(r306777, copy of r306776, head/lib/libcapsicum/capsicum_helpers.3)
@@ -0,0 +1,110 @@
+.\" Copyright (c) 2016 Mariusz Zaborski <oshogbo at FreeBSD.org>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd October 5, 2016
+.Dt CAPSICUM_HELPERS 3
+.Os
+.Sh NAME
+.Nm caph_limit_stream ,
+.Nm caph_limit_stdin ,
+.Nm caph_limit_stderr ,
+.Nm caph_limit_stdout ,
+.Nm caph_limit_stdio ,
+.Nm caph_cache_tzdata ,
+.Nm caph_cache_catpages
+.Nd "set of the functions , part of the libcapsicum"
+.Sh LIBRARY
+.Lb libcapsicum
+.Sh SYNOPSIS
+.In capsicum_helpers.h
+.Ft int
+.Fn caph_limit_stream "int fd, int flags"
+.Ft int
+.Fn caph_limit_stdin "void"
+.Ft int
+.Fn caph_limit_stderr "void"
+.Ft int
+.Fn caph_limit_stdout "void"
+.Ft int
+.Fn caph_limit_stdio "void"
+.Ft void
+.Fn caph_cache_tzdata "void"
+.Ft void
+.Fn caph_cache_catpages "void"
+.Sh DESCRIPTION
+The
+.Nm capsicum helpers
+are a set of a inline functions which simplify Capsicumizing programs.
+The goal is to reduce duplicated code patterns.
+The
+.Nm capsicum helpers
+are part of
+.Nm libcapsicum
+but there is no need to link to the library.
+.Pp
+.Fn caph_limit_stream
+restricts capabilities on
+.Fa fd
+to only those needed by POSIX stream objects (that is, FILEs).
+.Pp
+The following flags can be provided:
+.Pp
+.Bl -tag -width "CAPH_IGNORE_EBADF" -compact -offset indent
+.It Dv CAPH_IGNORE_EBADF
+Do not return an error if file descriptor is invalid.
+.It Dv CAPH_READ
+Set CAP_READ on limited descriptor.
+.It Dv CAPH_WRITE
+Set CAP_WRITE on limited descriptor.
+.El
+.Pp
+.Fn caph_limit_stdin ,
+.Fn caph_limit_stderr
+and
+.Fn caph_limit_stdout
+limit standard descriptors using the
+.Nm caph_limit_stream
+function.
+.Pp
+.Fn caph_limit_stdio
+limits stdin, stderr and stdout.
+.Pp
+.Fn caph_cache_tzdata
+precaches all timezone data needed to use
+.Li libc
+local time functions.
+.Pp
+.Fn caph_cache_catpages
+caches Native Language Support (NLS) data.
+NLS data is used for localized error printing by
+.Xr strerror 3
+and
+.Xr err 3 ,
+among others.
+.Ed
+.Sh SEE ALSO
+.Xr cap_enter 2 ,
+.Xr rights 4

Modified: user/alc/PQ_LAUNDRY/sbin/atm/atmconfig/atmconfig.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/atm/atmconfig/atmconfig.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/atm/atmconfig/atmconfig.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -1,7 +1,7 @@
 .\"
 .\" Copyright (c) 2001-2003
 .\"	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
-.\" 	All rights reserved.
+.\"	All rights reserved.
 .\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
@@ -28,7 +28,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd August 11, 2003
+.Dd October 5, 2016
 .Dt ATMCONFIG 8
 .Os
 .Sh NAME
@@ -314,5 +314,10 @@ List all NATM routes.
 .Sh SEE ALSO
 .Xr natm 4 ,
 .Xr natmip 4
+.Sh HISTORY
+An
+.Nm
+command appeared in
+.Fx 3.0 .
 .Sh AUTHORS
 .An Hartmut Brandt Aq Mt harti at FreeBSD.org

Modified: user/alc/PQ_LAUNDRY/sbin/bsdlabel/bsdlabel.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/bsdlabel/bsdlabel.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/bsdlabel/bsdlabel.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -31,7 +31,7 @@
 .\"	@(#)disklabel.8	8.2 (Berkeley) 4/19/94
 .\" $FreeBSD$
 .\"
-.Dd October 1, 2013
+.Dd October 5, 2016
 .Dt BSDLABEL 8
 .Os
 .Sh NAME
@@ -466,7 +466,7 @@ which could be used as a source file for
 
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
-  a:   400M       16    4.2BSD     4096 16384    75 	# (Cyl.    0 - 812*)
+  a:   400M       16    4.2BSD     4096 16384    75    # (Cyl.    0 - 812*)
   b:     1G        *      swap
   c:      *        *    unused
   e: 204800        *    4.2BSD
@@ -500,3 +500,8 @@ are not generally compatible.
 .Xr boot0cfg 8 ,
 .Xr gpart 8 ,
 .Xr newfs 8
+.Sh HISTORY
+The
+.Nm disklabel
+utility appeared in
+.Bx 4.3 Tahoe .

Modified: user/alc/PQ_LAUNDRY/sbin/clri/clri.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/clri/clri.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/clri/clri.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -28,7 +28,7 @@
 .\"	@(#)clri.8	8.2 (Berkeley) 4/19/94
 .\" $FreeBSD$
 .\"
-.Dd April 19, 1994
+.Dd October 5, 2016
 .Dt CLRI 8
 .Os
 .Sh NAME
@@ -70,6 +70,11 @@ will be able to clean up the resulting m
 .Sh SEE ALSO
 .Xr fsck 8 ,
 .Xr fsdb 8
+.Sh HISTORY
+The
+.Nm
+utility first appeared in
+.At v6 .
 .Sh BUGS
 If the file is open, the work of
 .Nm

Modified: user/alc/PQ_LAUNDRY/sbin/devd/devd.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/devd/devd.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/devd/devd.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd August 14, 2014
+.Dd October 5, 2016
 .Dt DEVD 8
 .Os
 .Sh NAME
@@ -62,7 +62,8 @@ The default connection limit is 10.
 Do not process all pending events before becoming a daemon.
 Instead, call daemon right away.
 .It Fl q
-Quiet mode.  Only log messages at priority LOG_WARNING or above.
+Quiet mode.
+Only log messages at priority LOG_WARNING or above.
 .El
 .Sh IMPLEMENTATION NOTES
 The
@@ -153,5 +154,10 @@ A deprecated socket retained for use wit
 .Sh SEE ALSO
 .Xr devctl 4 ,
 .Xr devd.conf 5
+.Sh HISTORY
+The
+.Nm
+utility first appeared in
+.Fx 5.0 .
 .Sh AUTHORS
 .An M. Warner Losh

Modified: user/alc/PQ_LAUNDRY/sbin/devfs/devfs.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/devfs/devfs.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/devfs/devfs.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd July 12, 2013
+.Dd October 5, 2016
 .Dt DEVFS 8
 .Os
 .Sh NAME
@@ -249,7 +249,8 @@ configuration file.
 .It Pa /etc/devfs.rules
 Local
 .Nm
-configuration file.  Rulesets in here override those in
+configuration file.
+Rulesets in here override those in
 .Pa /etc/defaults/devfs.rules
 with the same ruleset number, otherwise the two files are effectively merged.
 .It Pa /etc/devfs.conf
@@ -374,5 +375,10 @@ this feature can be used to copy ruleset
 .Xr chown 8 ,
 .Xr jail 8 ,
 .Xr mknod 8
+.Sh HISTORY
+The
+.Nm
+utility first appeared in
+.Fx 5.0 .
 .Sh AUTHORS
 .An Dima Dorfman

Modified: user/alc/PQ_LAUNDRY/sbin/fdisk/fdisk.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/fdisk/fdisk.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/fdisk/fdisk.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -1,6 +1,6 @@
 .\" $FreeBSD$
 .\"
-.Dd October 1, 2013
+.Dd October 5, 2016
 .Dt FDISK 8
 .Os
 .Sh NAME
@@ -177,19 +177,19 @@ An example follows:
 	Information from DOS bootblock is:
 	The data for partition 1 is:
 	sysid 165,(FreeBSD/NetBSD/386BSD)
-    	    start 495, size 380160 (185 Meg), flag 0
+           start 495, size 380160 (185 Meg), flag 0
 		beg: cyl 1/ sector 1/ head 0;
 		end: cyl 768/ sector 33/ head 14
 	The data for partition 2 is:
 	sysid 164,(unknown)
-    	    start 378180, size 2475 (1 Meg), flag 0
+           start 378180, size 2475 (1 Meg), flag 0
 		beg: cyl 764/ sector 1/ head 0;
 		end: cyl 768/ sector 33/ head 14
 	The data for partition 3 is:
 	<UNUSED>
 	The data for partition 4 is:
 	sysid 99,(ISC UNIX, other System V/386, GNU HURD or Mach)
-    	    start 380656, size 224234 (109 Meg), flag 80
+           start 380656, size 224234 (109 Meg), flag 80
 		beg: cyl 769/ sector 2/ head 0;
 		end: cyl 197/ sector 33/ head 14
 .Ed
@@ -485,6 +485,21 @@ The default boot code.
 .Xr bsdlabel 8 ,
 .Xr gpart 8 ,
 .Xr newfs 8
+.Sh HISTORY
+A version of
+.Nm
+first appeared in the Mach Operating System.
+It was subsequently ported to
+.Bx 386 .
+.Sh AUTHORS
+.An -nosplit
+.Nm
+for Mach Operating System was written by
+.An Robert Baron Aq Mt rvb at cs.cmu.edu .
+It was ported to
+.Bx 386
+by
+.An Julian Elischer Aq Mt julian at tfs.com .
 .Sh BUGS
 The default boot code will not necessarily handle all slice types
 correctly, in particular those introduced since

Modified: user/alc/PQ_LAUNDRY/sbin/fdisk_pc98/fdisk.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/fdisk_pc98/fdisk.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/fdisk_pc98/fdisk.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -1,6 +1,6 @@
 .\" $FreeBSD$
 .\"
-.Dd April 30, 2007
+.Dd October 5, 2016
 .Dt FDISK 8
 .Os
 .Sh NAME
@@ -448,6 +448,21 @@ Example: to make slice 1 the active slic
 .Xr bsdlabel 8 ,
 .Xr gpart 8 ,
 .Xr newfs 8
+.Sh HISTORY
+A version of
+.Nm
+first appeared in the Mach Operating System.
+It was subsequently ported to
+.Bx 386 .
+.Sh AUTHORS
+.An -nosplit
+.Nm
+for Mach Operating System was written by
+.An Robert Baron Aq Mt rvb at cs.cmu.edu .
+It was ported to
+.Bx 386
+by
+.An Julian Elischer Aq Mt julian at tfs.com .
 .Sh BUGS
 The default boot code will not necessarily handle all slice types
 correctly, in particular those introduced since

Modified: user/alc/PQ_LAUNDRY/sbin/fsck/fsck.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/fsck/fsck.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/fsck/fsck.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -29,7 +29,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd May 23, 2014
+.Dd October 5, 2016
 .Dt FSCK 8
 .Os
 .Sh NAME
@@ -229,3 +229,15 @@ file system table
 .Xr fsck_ffs 8 ,
 .Xr fsck_msdosfs 8 ,
 .Xr mount 8
+.Sh HISTORY
+A
+.Nm
+utility appeared in
+.Bx 4.0 .
+It was reimplemented as a filesystem independent wrapper in
+.Nx 1.3
+and first appeared in
+.Fx 5.0 .
+The original filesystem specific utility became
+.Xr fsck_ffs 8
+at this point.

Modified: user/alc/PQ_LAUNDRY/sbin/fsck_ffs/fsck_ffs.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/fsck_ffs/fsck_ffs.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/fsck_ffs/fsck_ffs.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -29,7 +29,7 @@
 .\"	@(#)fsck.8	8.4 (Berkeley) 5/9/95
 .\" $FreeBSD$
 .\"
-.Dd July 30, 2013
+.Dd October 5, 2016
 .Dt FSCK_FFS 8
 .Os
 .Sh NAME
@@ -268,9 +268,9 @@ do not open the file system for writing.
 Preen file systems (see above).
 .It Fl R
 Instruct fsck_ffs to restart itself if it encounters certain errors that
-warrant another run.  It will limit itself to a maximum of 10 restarts
-in a given run in order to avoid an endless loop with extremely corrupted
-filesystems.
+warrant another run.
+It will limit itself to a maximum of 10 restarts in a given run in order
+to avoid an endless loop with extremely corrupted filesystems.
 .It Fl r
 Free up excess unused inodes.
 Decreasing the number of preallocated inodes reduces the
@@ -393,3 +393,14 @@ are fully enumerated and explained in Ap
 .Xr fsdb 8 ,
 .Xr newfs 8 ,
 .Xr reboot 8
+.Sh HISTORY
+A
+.Nm fsck
+utility appeared in
+.Bx 4.0 .
+It became
+.Nm
+in
+.Fx 5.0
+with the introduction of the filesystem independent wrapper as
+.Nm fsck .

Modified: user/alc/PQ_LAUNDRY/sbin/natd/natd.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/natd/natd.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/natd/natd.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -1,5 +1,5 @@
 .\" $FreeBSD$
-.Dd June 23, 2008
+.Dd October 5, 2016
 .Dt NATD 8
 .Os
 .Sh NAME
@@ -426,7 +426,7 @@ Options can be divided to several sectio
 Each section applies to own
 .Nm
 instance.
-This ability allows to configure one
+This ability allows the configuration of one
 .Nm
 process for several NAT instances.
 The first instance that always exists is a "default" instance.
@@ -808,6 +808,11 @@ are forwarded to the appropriate router 
 .Xr init 8 ,
 .Xr ipfw 8 ,
 .Xr ppp 8
+.Sh HISTORY
+The
+.Nm
+utility appeared in
+.Fx 3.0 .
 .Sh AUTHORS
 This program is the result of the efforts of many people at different
 times:

Modified: user/alc/PQ_LAUNDRY/sbin/nos-tun/nos-tun.8
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/nos-tun/nos-tun.8	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/nos-tun/nos-tun.8	Thu Oct  6 18:45:10 2016	(r306777)
@@ -8,7 +8,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd April 11, 1998
+.Dd October 5, 2016
 .Dt NOS-TUN 8
 .Os
 .Sh NAME
@@ -80,6 +80,11 @@ tunnel mode nos
 tunnel destination 192.168.59.34
 tunnel source 192.168.56.45
 .Ed
+.Sh HISTORY
+The
+.Nm
+utility appeared in
+.Fx 3.0 .
 .Sh AUTHORS
 .An -nosplit
 .An Nickolay N. Dudorov Aq Mt nnd at itfs.nsk.su

Modified: user/alc/PQ_LAUNDRY/sbin/savecore/savecore.c
==============================================================================
--- user/alc/PQ_LAUNDRY/sbin/savecore/savecore.c	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/sbin/savecore/savecore.c	Thu Oct  6 18:45:10 2016	(r306777)
@@ -436,7 +436,8 @@ DoFile(const char *savedir, const char *
 {
 	xo_handle_t *xostdout, *xoinfo;
 	static char infoname[PATH_MAX], corename[PATH_MAX], linkname[PATH_MAX];
-	static char *buf = NULL, *temp = NULL;
+	static char *buf = NULL;
+	char *temp = NULL;
 	struct kerneldumpheader kdhf, kdhl;
 	off_t mediasize, dumpsize, firsthd, lasthd;
 	FILE *info, *fp;
@@ -498,12 +499,10 @@ DoFile(const char *savedir, const char *
 	}
 
 	lasthd = mediasize - sectorsize;
+	temp = malloc(sectorsize);
 	if (temp == NULL) {
-		temp = malloc(sectorsize);
-		if (temp == NULL) {
-			syslog(LOG_ERR, "%m");
-			goto closefd;
-		}
+		syslog(LOG_ERR, "%m");
+		goto closefd;
 	}
 	if (lseek(fd, lasthd, SEEK_SET) != lasthd ||
 	    read(fd, temp, sectorsize) != (ssize_t)sectorsize) {
@@ -749,6 +748,7 @@ nuke:
 	}
 	xo_close_container_h(xostdout, "crashdump");
 	xo_finish_h(xostdout);
+	free(temp);
 	close(fd);
 	return;
 
@@ -756,6 +756,7 @@ closeall:
 	fclose(fp);
 
 closefd:
+	free(temp);
 	close(fd);
 }
 

Modified: user/alc/PQ_LAUNDRY/share/man/man5/src.conf.5
==============================================================================
--- user/alc/PQ_LAUNDRY/share/man/man5/src.conf.5	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/share/man/man5/src.conf.5	Thu Oct  6 18:45:10 2016	(r306777)
@@ -1,7 +1,7 @@
 .\" DO NOT EDIT-- this file is automatically generated.
-.\" from FreeBSD: head/tools/build/options/makeman 292283 2015-12-15 18:42:30Z bdrewery
+.\" from FreeBSD: head/tools/build/options/makeman 306729 2016-10-05 20:12:00Z emaste
 .\" $FreeBSD$
-.Dd September 21, 2016
+.Dd October 5, 2016
 .Dt SRC.CONF 5
 .Os
 .Sh NAME
@@ -493,6 +493,15 @@ When set, it also enforces the following
 .\" from FreeBSD: head/tools/build/options/WITHOUT_DEBUG_FILES 290059 2015-10-27 20:49:56Z emaste
 Set to avoid building or installing standalone debug files for each
 executable binary and shared library.
+.It Va WITHOUT_DIALOG
+.\" from FreeBSD: head/tools/build/options/WITHOUT_DIALOG 306375 2016-09-27 18:08:38Z emaste
+Set to not build dialog(1), dialog(1,3), and dpv(1,3).
+When set, it also enforces the following options:
+.Pp
+.Bl -item -compact
+.It
+.Va WITHOUT_BSDINSTALL
+.El
 .It Va WITHOUT_DICT
 .\" from FreeBSD: head/tools/build/options/WITHOUT_DICT 156932 2006-03-21 07:50:50Z ru
 Set to not build the Webster dictionary files.
@@ -617,12 +626,6 @@ and related programs.
 .It Va WITH_EISA
 .\" from FreeBSD: head/tools/build/options/WITH_EISA 264654 2014-04-18 16:53:06Z imp
 Set to build EISA kernel modules.
-.It Va WITHOUT_ELFCOPY_AS_OBJCOPY
-.\" from FreeBSD: head/tools/build/options/WITHOUT_ELFCOPY_AS_OBJCOPY 296193 2016-02-29 16:39:38Z emaste
-Set to build and install
-.Xr objcopy 1
-from GNU Binutils, instead of the one from ELF Tool Chain.
-This option is provided as a transition aid and will be removed in due time.
 .It Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
 .\" from FreeBSD: head/tools/build/options/WITHOUT_ELFTOOLCHAIN_BOOTSTRAP 295491 2016-02-11 00:14:00Z emaste
 Set to not build ELF Tool Chain tools
@@ -1376,6 +1379,9 @@ Set to not build kernel modules that inc
 .It Va WITHOUT_SSP
 .\" from FreeBSD: head/tools/build/options/WITHOUT_SSP 180012 2008-06-25 21:33:28Z ru
 Set to not build world with propolice stack smashing protection.
+.Pp
+It is a default setting on
+mips/mipsel, mips/mips, mips/mips64el, mips/mips64 and mips/mipsn32.
 .It Va WITH_STAGING
 .\" from FreeBSD: head/tools/build/options/WITH_STAGING 290816 2015-11-14 03:24:48Z sjg
 Enable staging of files to a stage tree.

Modified: user/alc/PQ_LAUNDRY/share/man/man9/Makefile
==============================================================================
--- user/alc/PQ_LAUNDRY/share/man/man9/Makefile	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/share/man/man9/Makefile	Thu Oct  6 18:45:10 2016	(r306777)
@@ -114,6 +114,7 @@ MAN=	accept_filter.9 \
 	devstat.9 \
 	devtoname.9 \
 	disk.9 \
+	dnv.9 \
 	domain.9 \
 	drbr.9 \
 	driver.9 \
@@ -761,6 +762,19 @@ MLINKS+=disk.9 disk_alloc.9 \
 	disk.9 disk_destroy.9 \
 	disk.9 disk_gone.9 \
 	disk.9 disk_resize.9
+MLINKS+=dnv.9 dnvlist.9 \
+	dnv.9 dnvlist_get_binary.9 \
+	dnv.9 dnvlist_get_bool.9 \
+	dnv.9 dnvlist_get_descriptor.9 \
+	dnv.9 dnvlist_get_number.9 \
+	dnv.9 dnvlist_get_nvlist.9 \
+	dnv.9 dnvlist_get_string.9 \
+	dnv.9 dnvlist_take_binary.9 \
+	dnv.9 dnvlist_take_bool.9 \
+	dnv.9 dnvlist_take_descriptor.9 \
+	dnv.9 dnvlist_take_number.9 \
+	dnv.9 dnvlist_take_nvlist.9 \
+	dnv.9 dnvlist_take_string.9
 MLINKS+=domain.9 DOMAIN_SET.9 \
 	domain.9 domain_add.9 \
 	domain.9 pfctlinput.9 \
@@ -1960,7 +1974,8 @@ MLINKS+=VOP_RDWR.9 VOP_READ.9 \
 	VOP_RDWR.9 VOP_WRITE.9
 MLINKS+=VOP_REMOVE.9 VOP_RMDIR.9
 MLINKS+=vnet.9 vimage.9
-MLINKS+=vref.9 VREF.9
+MLINKS+=vref.9 VREF.9 \
+	vref.9 vrefl.9
 MLINKS+=vrele.9 vput.9 \
 	vrele.9 vunref.9
 MLINKS+=vslock.9 vsunlock.9

Copied: user/alc/PQ_LAUNDRY/share/man/man9/dnv.9 (from r306776, head/share/man/man9/dnv.9)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/alc/PQ_LAUNDRY/share/man/man9/dnv.9	Thu Oct  6 18:45:10 2016	(r306777, copy of r306776, head/share/man/man9/dnv.9)
@@ -0,0 +1,116 @@
+.\"
+.\" Copyright (c) 2016 Adam Starak <starak.adam at gmail.com>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd July 26, 2016
+.Dt DNV 9
+.Os
+.Sh NAME
+.Nm dnvlist_get,
+.Nm dnvlist_take,
+.Nd "API for getting name/value pairs. Nonexistent pairs do not raise an error."
+.Sh LIBRARY
+.Lb libnv
+.Sh SYNOPSIS
+.In sys/dnv.h
+.Ft bool
+.Fn dnvlist_get_bool "const nvlist_t *nvl" "const char *name" "bool defval"
+.Ft uint64_t
+.Fn dnvlist_get_number "const nvlist_t *nvl" "const char *name" "uint64_t defval"
+.Ft char *
+.Fn dnvlist_get_string "const nvlist_t *nvl" "const char *name" "const char *defval"
+.Ft nvlist_t *
+.Fn dnvlist_get_nvlist "const nvlist_t *nvl" "const char *name" "nvlist_t *defval"
+.Ft int
+.Fn dnvlist_get_descriptor "const nvlist_t *nvl" "const char *name" "int defval"
+.Ft void *
+.Fn dnvlist_get_binary "const nvlist_t *nvl" "const char *name" "size_t *sizep" "void *defval" "size_t defsize"
+.Ft bool
+.Fn dnvlist_take_bool "const nvlist_t *nvl" "const char *name" "bool defval"
+.Ft uint64_t
+.Fn dnvlist_take_number "const nvlist_t *nvl" "const char *name" "uint64_t defval"
+.Ft char *
+.Fn dnvlist_take_string "const nvlist_t *nvl" "const char *name" "const char *defval"
+.Ft nvlist_t *
+.Fn dnvlist_take_nvlist "const nvlist_t *nvl" "const char *name" "nvlist_t *defval"
+.Ft int
+.Fn dnvlist_take_descriptor "const nvlist_t *nvl" "const char *name" "int defval"
+.Ft void *
+.Fn dnvlist_take_binary "const nvlist_t *nvl" "const char *name" "size_t *sizep" "void *defval" "size_t defsize"
+.Sh DESCRIPTION
+The
+.Nm libnv
+library permits easy management of name/value pairs and can send and receive
+them over sockets.
+For more information, also see
+.Xr nv 9 .
+.Pp
+The
+.Nm dnvlist_get
+family of functions returns the value associated with the specified name.
+If an element of the specified name does not exist, the function returns the
+value provided in
+.Fa defval .
+Returned strings, nvlists, descriptors, binaries, or arrays must not be modified
+by the user.
+They still belong to the nvlist.
+If the nvlist is in an error state, attempts to use any of these functions will
+cause the program to abort.
+.Pp
+The
+.Nm dnvlist_take
+family of functions returns the value associated with the specified name and
+removes the element from the nvlist.
+If an element of the supplied name does not exist, the value provided in
+.Nm defval
+is returned.
+When the value is a string, binary, or array value, the caller is
+responsible for freeing returned memory with
+.Fn free 3 .
+When the value is an nvlist, the caller is responsible for destroying the
+returned nvlist with
+.Fn nvlist_destroy .
+When the value is a descriptor, the caller is responsible for closing the
+returned descriptor with
+.Fn close 2 .
+.Sh SEE ALSO
+.Xr close 2 ,
+.Xr free 3 ,
+.Xr nv 9
+.Sh HISTORY
+The
+.Nm dnv
+API appeared in
+.Fx 11.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm dnv
+API was implemented by
+.An Pawel Jakub Dawidek Aq Mt pawel at dawidek.net
+under sponsorship from the FreeBSD Foundation.
+This manual page was written by
+.An Adam Starak Aq Mt starak.adam at gmail.com

Modified: user/alc/PQ_LAUNDRY/share/man/man9/style.9
==============================================================================
--- user/alc/PQ_LAUNDRY/share/man/man9/style.9	Thu Oct  6 18:43:09 2016	(r306776)
+++ user/alc/PQ_LAUNDRY/share/man/man9/style.9	Thu Oct  6 18:45:10 2016	(r306777)
@@ -26,7 +26,7 @@
 .\"	From: @(#)style	1.14 (Berkeley) 4/28/95
 .\" $FreeBSD$
 .\"
-.Dd December 5, 2015
+.Dd October 5, 2016
 .Dt STYLE 9
 .Os
 .Sh NAME
@@ -114,20 +114,28 @@ static char sccsid[] = "@(#)style	1.14 (
 __FBSDID("$FreeBSD$");
 .Ed
 .Pp
-Leave another blank line before the header files.
+Leave one blank line before the header files.
 .Pp
-Kernel include files (i.e.\&
-.Pa sys/*.h )
-come first sorted alphabetically where possible.
-Include
-.In sys/types.h
-OR
-.In sys/param.h ,
-but not both and include it first.
+Kernel include files
+.Pa ( sys/*.h )
+come first.
+If
+.In sys/cdefs.h
+is needed for
+.Fn __FBSDID ,
+include it first.
+If either
 .In sys/types.h
+or
+.In sys/param.h
+is needed, include it before other include files.
+.Po
+.In sys/param.h
 includes
-.In sys/cdefs.h ,
-and it is okay to depend on that.
+.In sys/types.h ;
+do not include both.
+.Pc
+The remaining kernel headers should be sorted alphabetically.
 .Bd -literal
 #include <sys/types.h>	/* Non-local includes in angle brackets. */
 #include <sys/endian.h>
@@ -144,9 +152,9 @@ For a network program, put the network i
 #include <protocols/rwhod.h>
 .Ed
 .Pp
-Do not use files in
+Do not include files from

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


More information about the svn-src-user mailing list