FreeBSD/src 89fd2ffshare/man/man9 uio.9

uio.9: Improve description of uio_rw flags

The direction of the data transfer in uio(9) can be confusing,
so state explicitly the difference between UIO_READ and UIO_WRITE.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D52996

(cherry picked from commit 0625f470e0956a3a337e4999f6712ec7b7d872e5)
DeltaFile
+9-5share/man/man9/uio.9
+9-51 files

FreeBSD/src fb7f92cshare/man/man9 uio.9

uio.9: Improve description of uio_rw flags

The direction of the data transfer in uio(9) can be confusing,
so state explicitly the difference between UIO_READ and UIO_WRITE.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D52996

(cherry picked from commit 0625f470e0956a3a337e4999f6712ec7b7d872e5)
DeltaFile
+9-5share/man/man9/uio.9
+9-51 files

FreeBSD/src f745d37share/man/man9 uio.9

uio.9: Improve description of uio_rw flags

The direction of the data transfer in uio(9) can be confusing,
so state explicitly the difference between UIO_READ and UIO_WRITE.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D52996

(cherry picked from commit 0625f470e0956a3a337e4999f6712ec7b7d872e5)
DeltaFile
+9-5share/man/man9/uio.9
+9-51 files

FreeBSD/src e37fbc1share/man/man5 style.mdoc.5

style.mdoc.5: Point readers to style(9) regarding copyright headers

While here, fix the ordering of the elements in the copyright header per
style(9) and remove the text of the license as we already have the SPDX
tag here.

MFC after:      3 days

(cherry picked from commit 3cc7d67155dad57e0d10f02a584fda6c8f2ea0b2)
DeltaFile
+6-24share/man/man5/style.mdoc.5
+6-241 files

FreeBSD/src 71dcae4share/man/man5 style.mdoc.5

style.mdoc.5: Point readers to style(9) regarding copyright headers

While here, fix the ordering of the elements in the copyright header per
style(9) and remove the text of the license as we already have the SPDX
tag here.

MFC after:      3 days

(cherry picked from commit 3cc7d67155dad57e0d10f02a584fda6c8f2ea0b2)
DeltaFile
+6-24share/man/man5/style.mdoc.5
+6-241 files

FreeBSD/src ade112cshare/man/man5 style.mdoc.5

style.mdoc.5: Point readers to style(9) regarding copyright headers

While here, fix the ordering of the elements in the copyright header per
style(9) and remove the text of the license as we already have the SPDX
tag here.

MFC after:      3 days

(cherry picked from commit 3cc7d67155dad57e0d10f02a584fda6c8f2ea0b2)
DeltaFile
+6-24share/man/man5/style.mdoc.5
+6-241 files

FreeBSD/src c640fa9share/examples/mdoc example.1 example.3

examples/mdoc: Remove text of BSD-2-Clause from mdoc examples

We live in the SPDX world now and our example manual pages should
reflect that.

Also, fix the order of the SPDX and copyright lines as per style(9).

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53335

(cherry picked from commit 83ac79599f6b94c57321ce3738fc28d1fa6a6c60)
DeltaFile
+1-22share/examples/mdoc/example.1
+1-22share/examples/mdoc/example.3
+1-22share/examples/mdoc/example.4
+1-22share/examples/mdoc/example.9
+4-884 files

FreeBSD/src fbf5c60share/examples/mdoc example.1 example.3

examples/mdoc: Remove text of BSD-2-Clause from mdoc examples

We live in the SPDX world now and our example manual pages should
reflect that.

Also, fix the order of the SPDX and copyright lines as per style(9).

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53335

(cherry picked from commit 83ac79599f6b94c57321ce3738fc28d1fa6a6c60)
DeltaFile
+1-22share/examples/mdoc/example.1
+1-22share/examples/mdoc/example.3
+1-22share/examples/mdoc/example.4
+1-22share/examples/mdoc/example.9
+4-884 files

FreeBSD/src 1350158share/examples/mdoc example.1 example.3

examples/mdoc: Remove text of BSD-2-Clause from mdoc examples

We live in the SPDX world now and our example manual pages should
reflect that.

Also, fix the order of the SPDX and copyright lines as per style(9).

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53335

(cherry picked from commit 83ac79599f6b94c57321ce3738fc28d1fa6a6c60)
DeltaFile
+1-22share/examples/mdoc/example.1
+1-22share/examples/mdoc/example.3
+1-22share/examples/mdoc/example.4
+1-22share/examples/mdoc/example.9
+4-884 files

FreeBSD/src 78061aeshare/man/man9 g_bio.9

g_bio.9: Reference dtrace_io(4)

MFC after:      3 days

(cherry picked from commit 3559b8e98341d7087771516b1d8f9560a5c555b4)
DeltaFile
+2-1share/man/man9/g_bio.9
+2-11 files

FreeBSD/src 45aa148share/man/man9 g_bio.9

g_bio.9: Reference dtrace_io(4)

MFC after:      3 days

(cherry picked from commit 3559b8e98341d7087771516b1d8f9560a5c555b4)
DeltaFile
+2-1share/man/man9/g_bio.9
+2-11 files

FreeBSD/src b3b2e78share/man/man9 g_bio.9

g_bio.9: Reference dtrace_io(4)

MFC after:      3 days

(cherry picked from commit 3559b8e98341d7087771516b1d8f9560a5c555b4)
DeltaFile
+2-1share/man/man9/g_bio.9
+2-11 files

FreeBSD/src a02e78alib/libz Makefile, release/packages/ucl zlib-all.ucl

zlib: Move to a new zlib package

zlib is a standalone third-party component, and deserves its own
package rather than living in runtime.  For example, this will make
future security updates less invasive.  This also means there's no
dependency on runtime for ports that just require zlib, which is
useful for service jails.

MFC after:      3 days
Reviewed by:    bapt, emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53058

(cherry picked from commit 924c0c60d4aeaa474fb028118ca82d505166b4ab)
DeltaFile
+32-0release/packages/ucl/zlib-all.ucl
+1-4lib/libz/Makefile
+33-42 files

FreeBSD/src e1a6189lib/geom Makefile.inc, lib/libpcap Makefile

packages: Install development manpages in the -dev package

Add a new per-group SUBPACKAGE option to bsd.man.mk.  When MANSPLITPKG
is enabled, this is forced to "-man", otherwise it defaults to empty
but can be overridden by the caller.

Use this in bsd.lib.mk to install library manpages in the -dev package
instead of the base package.  This is nearly always preferable, since
library manpages are usually in section 2 or 3 and are only relevant
to people with development packages installed.

For manpages which should be installed in the base package even for
libraries, add a new MANNODEV group in bsd.lib.mk.  Update existing
Makefiles to use this where appropriate.

MFC after:      3 days
Discussed with: olce
Reviewed by:    olce
Sponsored by:   https://www.patreon.com/bsdivy

    [3 lines not shown]
DeltaFile
+103-98usr.sbin/bsnmpd/bsnmpd/Makefile
+19-7share/mk/bsd.man.mk
+8-9lib/libwrap/Makefile
+12-1share/mk/bsd.lib.mk
+7-6lib/libpcap/Makefile
+6-5lib/geom/Makefile.inc
+155-12617 files not shown
+198-15423 files

FreeBSD/src 37effd9usr.bin/mandoc mandoc.ucl

mandoc: Also run makewhatis for /usr/share/openssl/man

We use a pkg(8) trigger to run makewhatis for /usr/share/man when
manpages are updated, but this doesn't cover /usr/share/openssl/man.

Rewrite the trigger to process a list of directories instead of a
single directory, and include /usr/share/openssl/man in the list.

MFC after:      3 days
Reviewed by:    emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53064

(cherry picked from commit 450fb637f453c3722aa9f0aeb369e2aa2f5a5001)
DeltaFile
+17-3usr.bin/mandoc/mandoc.ucl
+17-31 files

FreeBSD/src c392cdarelease/packages/ucl dhclient-all.ucl

packages: Put dhclient in the minimal-jail set

This is somewhat widely used in VNET jails, it's fairly small (150kB on
amd64) and it's enough of a core system component that it's reasonable
to include, even if many jails don't require it.

MFC after:      3 days
Reviewed by:    dch
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53154

(cherry picked from commit 8a9d29bedab597df6bfd4fab1b1bb023f8375a1f)
DeltaFile
+1-1release/packages/ucl/dhclient-all.ucl
+1-11 files

FreeBSD/src a182020release/scripts mtree-to-plist.awk, stand Makefile.inc

packages: Remove the /boot hack from mtree-to-plist.awk

Currently, files in /boot (other than /boot/kernel) are assigned to the
bootloader package using a filename match in mtree-to-plist.awk.  This
causes some problems, most notably that debug info for userboot ends up
in the utilities-dbg package instead of bootloader-dbg.

Remove the path handling from mtree-to-plist and instead set PACKAGE
in the appropriate Makefiles to put these in the correct package.

While here, move userboot*.so from bootloader-dev to bootloader.

MFC after:      3 days
Reviewed by:    cperciva
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53179

(cherry picked from commit 842942be28b21354e3f547e39fc75bf18ee5b6f7)
DeltaFile
+0-6release/scripts/mtree-to-plist.awk
+4-0stand/userboot/Makefile.inc
+2-0stand/Makefile.inc
+2-0sys/conf/dtb.mk
+8-64 files

FreeBSD/src 01f1896release/packages/ucl dhclient.ucl local-unbound.ucl

packages: dhclient, local-unbound require resolvconf

Both of these packages use resolvconf for various things.  Add a
dependency to make this work.

MFC after:      3 days
Reviewed by:    des
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53115

(cherry picked from commit bf28c98f14b439796b395eb4bf9070e4f7cffd68)
DeltaFile
+26-0release/packages/ucl/dhclient.ucl
+8-0release/packages/ucl/local-unbound.ucl
+34-02 files

FreeBSD/src e4ef333. UPDATING, libexec/flua Makefile.inc

flua: Move to a new flua package

flua is a standalone third-party component that deserves its own
package.  In particular, this means things can use flua without
having to depend on FreeBSD-utilities, which will be useful as
more base utilities use flua.

This saves ~500kB in FreeBSD-utilities for systems which don't
need flua.

MFC after:      3 days
Reviewed by:    kevans
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53161

(cherry picked from commit 957715f877b57a17545ead94d27ea8fd3ff4932a)
DeltaFile
+32-0release/packages/ucl/flua-all.ucl
+27-0release/packages/ucl/tests.ucl
+7-0release/packages/ucl/nuageinit-all.ucl
+6-0UPDATING
+5-0release/packages/ucl/bsdinstall.ucl
+2-0libexec/flua/Makefile.inc
+79-01 files not shown
+81-07 files

FreeBSD/src 7a572fdshare/man/man5 Makefile

share/man/man5: Use MANGROUPS.yes

Simplify the Makefile logic by using MANGROUPS.yes for optional
packages.  Also, move bluetooth manpages to the correct package,
add the correct conditional for OpenSSH (MK_OPENSSH), and properly
alphabetise the file.

MFC after:      3 days
Reviewed by:    emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53127

(cherry picked from commit 82f96b2bc983163a890f1782d3091701498b78a2)
DeltaFile
+32-38share/man/man5/Makefile
+32-381 files

FreeBSD/src 299eb43usr.bin/id id.c

id: revert to historical and documented behavior for `id`

The manpage claims that we display the credentials for the calling
process if no user/flags are specified, but this has not been true since
r145628 / 68b9b81e792a9108d.  Currently, we display:

 - uid from the calling process
 - gid from /etc/passwd
 - egid from the calling process, if different from that gid
 - supplementary groups from the calling process

This doesn't really match the description in the manpage, and it doesn't
match other implementations.  Fix it to use the current process
credentials for the gid as well.

Drop the extra arguments to id_print(), since these facts can be derived
from whether we're displaying live data (`pw == NULL`) or not.

Reviewed by:    olce

    [3 lines not shown]
DeltaFile
+17-16usr.bin/id/id.c
+17-161 files

FreeBSD/src 2041233usr.bin/id id.c

id: Clean up

No functional change intended.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D53300

(cherry picked from commit 70b72ede982f3aebe03a2bf7a8245ee6bcde352c)
DeltaFile
+55-59usr.bin/id/id.c
+55-591 files

FreeBSD/src c071bcdusr.bin/id id.c id.1

id: Add -d and -s options

These options may not be combined with any other options and print the
current or specified user's home directory and shell respectively.

Reviewed by:    imp, bcr
Differential Revision:  https://reviews.freebsd.org/D53301

(cherry picked from commit f41b1eb637f576634be0df9d657f46aa57afea59)
DeltaFile
+45-3usr.bin/id/id.c
+25-3usr.bin/id/id.1
+70-62 files

FreeBSD/src af13a06libexec/rc rc.subr

rc.subr: Fix slow shutdown issue

Instead of sleeping after pwait returns, use its new -p option to
obtain the list of processes that still have not terminated.

MFC after:      3 days
PR:             290357
Fixes:          5953e7c98427 ("rc.subr: Move the sleep in wait_for_pids")
Reviewed by:    0mp, markj
Differential Revision:  https://reviews.freebsd.org/D53294

(cherry picked from commit 22cff1f3e9d82b48aad440c52f883bfd4995359c)
DeltaFile
+8-21libexec/rc/rc.subr
+8-211 files

FreeBSD/src cacba7abin/pwait pwait.c pwait.1, bin/pwait/tests pwait_test.sh

pwait: Add an option to print remaining processes

* On startup, insert all valid PIDs into a tree.
* In our main loop, whenever a process terminates, remove its PID
  from the tree.
* On exit, if the -p flag was specified, print the remaining PIDs.

MFC after:      3 days
Reviewed by:    bcr, markj
Differential Revision:  https://reviews.freebsd.org/D53293

(cherry picked from commit 3d73146baeb933fe955c7496572b483a9f92914c)
DeltaFile
+65-33bin/pwait/pwait.c
+38-0bin/pwait/tests/pwait_test.sh
+4-2bin/pwait/pwait.1
+107-353 files

FreeBSD/src 4e06e62bin/pwait pwait.c

pwait: Avoid calling getpid(2) for each proc.

(cherry picked from commit ab4abce6c2c2091a3b9ea1f38cbef94ee7a68090)
DeltaFile
+3-1bin/pwait/pwait.c
+3-11 files

FreeBSD/src eff786fusr.bin/id id.c id.1

id: Add -d and -s options

These options may not be combined with any other options and print the
current or specified user's home directory and shell respectively.

Reviewed by:    imp, bcr
Differential Revision:  https://reviews.freebsd.org/D53301

(cherry picked from commit f41b1eb637f576634be0df9d657f46aa57afea59)
DeltaFile
+45-3usr.bin/id/id.c
+25-3usr.bin/id/id.1
+70-62 files

FreeBSD/src 7b37583libexec/rc rc.subr

rc.subr: Fix slow shutdown issue

Instead of sleeping after pwait returns, use its new -p option to
obtain the list of processes that still have not terminated.

MFC after:      3 days
PR:             290357
Fixes:          5953e7c98427 ("rc.subr: Move the sleep in wait_for_pids")
Reviewed by:    0mp, markj
Differential Revision:  https://reviews.freebsd.org/D53294

(cherry picked from commit 22cff1f3e9d82b48aad440c52f883bfd4995359c)
DeltaFile
+8-21libexec/rc/rc.subr
+8-211 files

FreeBSD/src 758e456usr.bin/id id.c

id: Clean up

No functional change intended.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D53300

(cherry picked from commit 70b72ede982f3aebe03a2bf7a8245ee6bcde352c)
DeltaFile
+55-59usr.bin/id/id.c
+55-591 files

FreeBSD/src 955650fbin/pwait pwait.c pwait.1, bin/pwait/tests pwait_test.sh

pwait: Add an option to print remaining processes

* On startup, insert all valid PIDs into a tree.
* In our main loop, whenever a process terminates, remove its PID
  from the tree.
* On exit, if the -p flag was specified, print the remaining PIDs.

MFC after:      3 days
Reviewed by:    bcr, markj
Differential Revision:  https://reviews.freebsd.org/D53293

(cherry picked from commit 3d73146baeb933fe955c7496572b483a9f92914c)
DeltaFile
+65-33bin/pwait/pwait.c
+38-0bin/pwait/tests/pwait_test.sh
+4-2bin/pwait/pwait.1
+107-353 files