libnvpair.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <unistd.h>
#include <strings.h>
#include "libnvpair.h"
/*
* libnvpair - A tools library for manipulating <name, value> pairs.
*
* This library provides routines packing an unpacking nv pairs
* for transporting data across process boundaries, transporting
* between kernel and userland, and possibly saving onto disk files.
*/
static void
{
while (depth-- > 0)
}
/*
* nvlist_print - Prints elements in an event buffer
*/
static
void
{
int i;
char *name;
return;
while (nvp) {
nelem = 0;
switch (type) {
case DATA_TYPE_BOOLEAN: {
break;
}
case DATA_TYPE_BOOLEAN_VALUE: {
break;
}
case DATA_TYPE_BYTE: {
break;
}
case DATA_TYPE_INT8: {
break;
}
case DATA_TYPE_UINT8: {
break;
}
case DATA_TYPE_INT16: {
break;
}
case DATA_TYPE_UINT16: {
break;
}
case DATA_TYPE_INT32: {
break;
}
case DATA_TYPE_UINT32: {
break;
}
case DATA_TYPE_INT64: {
break;
}
case DATA_TYPE_UINT64: {
break;
}
case DATA_TYPE_STRING: {
char *val;
break;
}
case DATA_TYPE_BOOLEAN_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_BYTE_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_INT8_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_UINT8_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_INT16_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_UINT16_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_INT32_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_UINT32_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_INT64_ARRAY: {
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_UINT64_ARRAY: {
for (i = 0; i < nelem; i++)
(u_longlong_t)val[i]);
break;
}
case DATA_TYPE_STRING_ARRAY: {
char **val;
for (i = 0; i < nelem; i++)
break;
}
case DATA_TYPE_HRTIME: {
break;
}
case DATA_TYPE_NVLIST: {
break;
}
case DATA_TYPE_NVLIST_ARRAY: {
for (i = 0; i < nelem; i++) {
"(start %s[%d])\n", name, i);
}
break;
}
default:
break;
}
}
}
void
{
}