3808 sulogin should reset console to text mode
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
	[illumos-gate merge]

commit be468fc6d7266e97f1330ad9a761169925f5f3f1
    3808 sulogin should reset console to text mode
3691 setgroups() needs a sorted GID list for more than 16 groups
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Richard Lowe <richlowe@richlowe.net>
	[illumos-gate merge]

commit b77dfcc8362f3695ece944d5bb504276753a40f9
    3691 setgroups() needs a sorted GID list for more than 16 groups
OS-2197 renaming dynamic sdev nodes leads to panic
OS-2195	sdev dynamic directories can be created multiple times
OS-2137 sdev vfs refcount assertion violation
OS-2118 chmod 700 /dev/zcons/* panics the box
OS-2311 sdev could use some theory statements
Reviewed by: Keith M Wesolowski <wesolows@foobazco.org>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
3787 gcc4.7 __cplusplus change incompatibility
3823 wchar.h and wctype_iso.h incompatibility
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: Dan McDonald <danmcd@nexenta.com>
	[illumos-gate merge]

commit 693e4d84eb49b987c3d66cbcd4b13a5c6e9059bf
    3787 gcc4.7 __cplusplus change incompatibility
    3823 wchar.h and wctype_iso.h incompatibility
OS-2271 'tail -F ...' not resetting the offset of file rotation properly
3818 zpool status -x should report pools with removed l2arc devices
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Reviewed by: George Wilson <gwilson@zfsmail.com>
Approved by: Christopher Siden <christopher.siden@delphix.com>
3828 The string(3c) man page needs restrict keyword for strtok_r()
3832 AMD E721 workaround panics on KVM
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@nexenta.com>
3822 need getline() and getdelim() manual pages
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Robert Mustacchi <rm@joyent.com>
OS-1720 kstat -l shows *all* vnics on the host from a zone, info about physical nics viewable, too
	[illumos-gate merge]

commit 296749875bd503e7a14e25b4c57d3142cb496df1
    3822 need getline() and getdelim() manual pages
commit 850ad55a82ec00d2ba0cb55e5c30e49baafd4b2d
    3832 AMD E721 workaround panics on KVM
commit 57c8f7a2c8d574d26d069069ece6f024828ee647
    3828 The string(3c) man page needs restrict keyword for strtok_r()
commit 7f2416ef64fb43dab18d9b36c0da64bea37c0df3
    3818 zpool status -x should report pools with removed l2arc devices
3829 fix for 3740 changed behavior of zfs destroy/hold/release ioctl
Reviewed by: Matt Amdur <matt.amdur@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
	[illumos-gate merge]

commit bb6e70758d0c30c09f148026d6e686e21cfc8d18
    3829 fix for 3740 changed behavior of zfs destroy/hold/release ioctl

	Conflicts: usr/src/lib/libzfs/common/libzfs_dataset.c
Merge branch 'master' of git://github.com/joyent/illumos-joyent into smartos/ec