Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2018 23:00:15 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335348 - head/share/man/man9
Message-ID:  <201806182300.w5IN0Fgm036697@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806182300.w5IN0Fgm036697>