FreeBSD/src 8d4c706 (r336346)lib/libmd sha512.3, lib/libnv/tests nvlist_append_test.c cnv_tests.cc

MFC r304910, r304912, r304915, r304952, r325019, r328164, r331094, r332664,
r335341-r335345, r335347, r335379-r335380, r335382

r304910:
Introduce cnv man page.

r304912:
Add missed header file for cnv.h .

r304915:
Bump date in the man page.

r304952:
Remove duplicated declaration.

r325019:
Introduce cnvlist_name() and cnvlist_type() functions.

Those function can be used when we are iterating over nvlist to reduce
amount of extra variables we need to declare.

r328164:
libnv: Use mallocarray(9) for the nv_calloc.

r331094:
Fix formatting errors that resulted in apropos(1) output looking weird.

r332664:
Add missing argument in the cnv man page.

r335341:
libnv: change name of cookie from cookiep to cookie.

The name was inconsistent with rest of the library.
No functional change intended.

r335342:
libnv: add const to cookies arguments

r335343:
libnv: Remove nvlist argument from cnvlist_{take,free}_* functions.

All information which are need for those operations is already stored in
the cookie.

We decided not to bump libnv version because this API is not used yet in the
base system.

r335344:
libnv: clean parent in nvlist_array when removing it.

When we are removing element form the nvlist we should also clean parent,
because the array is not a part of the nvlist anymore.

r335345:
libnv: add regression test for r335344.

r335347:
libnv: Add nvlist_append_*_array() family of functions.

The nvlist_append_{bool,number,string,nvlist,descriptor}_array() functions
allows to dynamically extend array stored in the nvlist.

r335379:
Set prev to NULL so its garaunteed to have a value of some kind and
gcc doesn't explode.  Feel free to fix this correctly or whatever for
gcc builds.

This *should* quiesce tinderbox after r335347 for the gcc builds.

r335380:
style(9) fix, I was also going to silence gcc.

r335382:
Really fix the style.
DeltaFile
+214-0share/man/man9/cnv.9
+141-1sys/contrib/libnv/nvpair.c
+120-0lib/libnv/tests/nvlist_append_test.c
+118-0sys/sys/cnv.h
+52-32sys/contrib/libnv/cnvlist.c
+18-18lib/libnv/tests/cnv_tests.cc
+36-0share/man/man9/Makefile
+31-0sys/contrib/libnv/nvlist.c
+28-2share/man/man9/nv.9
+8-0sys/sys/nv.h
+4-4share/man/man9/zone.9
+7-1sys/contrib/libnv/nv_impl.h
+3-3share/man/man9/owll.9
+1-1share/man/man9/rwlock.9
+1-1lib/libmd/sha512.3
+1-0lib/libnv/tests/nv_array_tests.cc
+1-0lib/libnv/tests/Makefile
+784-6317 files

UnifiedSplitRaw