svn commit: r335348 - head/share/man/man9
Mariusz Zaborski
oshogbo at FreeBSD.org
Mon Jun 18 23:00:16 UTC 2018
Author: oshogbo
Date: Mon Jun 18 23:00:15 2018
New Revision: 335348
URL: https://svnweb.freebsd.org/changeset/base/335348
Log:
libnv: add note about nvlist_pack and nvlist_unpack
Fix small typo as well.
Submitted by: Mindaugas Rasiukevicius <rmind at netbsd.org>
Modified:
head/share/man/man9/nv.9
Modified: head/share/man/man9/nv.9
==============================================================================
--- head/share/man/man9/nv.9 Mon Jun 18 22:57:32 2018 (r335347)
+++ head/share/man/man9/nv.9 Mon Jun 18 23:00:15 2018 (r335348)
@@ -589,7 +589,7 @@ The
.Fn nvlist_add_nvlist_array ,
.Fn nvlist_add_descriptor_array
functions add element to the given nvlist.
-When adding string or binary buffor the functions will allocate memory
+When adding string or binary buffer the functions will allocate memory
and copy the data over.
When adding nvlist, the nvlist will be cloned and clone will be added.
When adding descriptor, the descriptor will be duplicated using the
@@ -768,6 +768,13 @@ function name from the nvlist and free all resources a
If element of the given name and the given type does not exist, the program
will be aborted.
The nvlist must not be in error state.
+.Sh NOTES
+The
+.Fn nvlist_pack
+and
+.Fn nvlist_unpack
+functions handle the byte-order conversions, so the binary buffer can be
+packed/unpacked by the hosts with the different endianness.
.Sh EXAMPLES
The following example demonstrates how to prepare an nvlist and send it over
.Xr unix 4
More information about the svn-src-all
mailing list