Print this page
patch more-manpage
patch cleanup

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3nvpair/nvlist_alloc.3nvpair
          +++ new/usr/src/man/man3nvpair/nvlist_alloc.3nvpair
   1    1  '\" te
   2    2  .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
   3    3  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4    4  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5    5  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6      -.TH NVLIST_ALLOC 3NVPAIR "Feb 2, 2004"
        6 +.TH NVLIST_ALLOC 3NVPAIR "Feb 15, 2016"
   7    7  .SH NAME
   8    8  nvlist_alloc, nvlist_free, nvlist_size, nvlist_pack, nvlist_unpack, nvlist_dup,
   9    9  nvlist_merge, nvlist_xalloc, nvlist_xpack, nvlist_xunpack, nvlist_xdup,
  10   10  nvlist_lookup_nv_alloc, nv_alloc_init, nv_alloc_reset, nv_alloc_fini \- manage
  11   11  a name-value pair list
  12   12  .SH SYNOPSIS
  13   13  .LP
  14   14  .nf
  15   15  \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lnvpair\fR [ \fIlibrary\fR... ]
  16   16  #include <libnvpair.h>
↓ open down ↓ 219 lines elided ↑ open up ↑
 236  236  \fBNV_UNIQUE_NAME_TYPE\fR was specified for \fInvflag\fR, existing nvpairs with
 237  237  matching names and data types are removed before the new nvpair is added. See
 238  238  \fBnvlist_add_byte\fR(3NVPAIR) for more information.
 239  239  .sp
 240  240  .LP
 241  241  The \fBnvlist_xalloc()\fR function is identical to \fBnvlist_alloc()\fR except
 242  242  that \fBnvlist_xalloc()\fR can use a different allocator, as described in the
 243  243  Pluggable Allocators section.
 244  244  .sp
 245  245  .LP
 246      -The \fBnvlist_free()\fR function frees a name-value pair list.
      246 +The \fBnvlist_free()\fR function frees a name-value pair list. If \fInvl\fR
      247 +is a null pointer, no action occurs.
 247  248  .sp
 248  249  .LP
 249  250  The \fBnvlist_size()\fR function returns the minimum size of a contiguous
 250  251  buffer large enough to pack \fInvl\fR. The \fIencoding\fR parameter specifies
 251  252  the method of encoding when packing \fInvl\fR. Supported encoding methods are:
 252  253  .sp
 253  254  .ne 2
 254  255  .na
 255  256  \fB\fBNV_ENCODE_NATIVE\fR\fR
 256  257  .ad
↓ open down ↓ 341 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX