Integrate usr.bin/cut/tests from NetBSD into atf/kyua

Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272783 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Integrate usr.bin/grep/tests from NetBSD into atf/kyua

Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Properly NUL-terminate the on-stack buffer for reading /boot.config
or /boot/config. In qemu, on a warm boot, the stack is not all zeroes
and we parse beyond the file's contents.

Obtained from:	Juniper Networks, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Apply r269126 to tty_timedwait():
Don't return ERESTART when the device is gone.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f