/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "libzfs_jni_util.h"
#include <strings.h>
/*
* Package-private functions
*/
void
{
int i;
}
}
}
}
/*PRINTFLIKE2*/
void
{
}
{
*end = '\0';
}
return (stringUTF);
}
void
{
char *at;
*at = '\0';
}
}
/* Convert a zjni_Collection to a (Java) array */
{
/* Get size of zjni_Collection */
/* Create array to hold elements of list */
/* Copy list elements to array */
}
/* Create a zjni_Collection */
void
{
}
/* Create an zjni_ArrayList */
void
{
}
}
/* Create an zjni_DatasetSet */
void
{
}
}
{
}
{
int i;
char *field_name;
int found = 0;
found = 1;
break;
}
}
if (!found) {
}
if (field_name != NULL) {
}
return (field_value);
}
{
/* May throw a NumberFormatException */
return (value);
}
{
return (obj);
}
{
/* May throw a NumberFormatException */
/* Date constructor takes epoch milliseconds */
time *= 1000;
}
}
return (date);
}
{
int i;
for (i = 0; i < n; i++) {
}
return (jarray);
}
/*
* Converts the non-null elements of the given Java String array into
* a NULL-terminated char* array. When done, each element and then
* the array itself must be free()d. Returns NULL if memory could not
* be allocated.
*/
char **
{
int i, n;
for (i = 0, n = 0; i < length; i++) {
/* Retrive String from array */
/* Convert to char* */
const char *converted =
&isCopy);
/* Free chars in Java space */
(void) (*env)->ReleaseStringUTFChars(
}
/* strdup failed */
break;
}
}
}
/* Terminate array */
}
return (result);
}
/*
* Counts the number of elements in the given NULL-terminated array.
* Does not include the terminating NULL in the count.
*/
int
{
int i = 0;
}
return (i);
}
/*
* Get a handle to the next nvpair with the specified name and data
* type in the list following the given nvpair.
*
* This function is needed because the nvlist_lookup_* routines can
* only be used with nvlists allocated with NV_UNIQUE_NAME or
*
* Some variation of this function will likely appear in the libnvpair
* library per 4981923.
*
* @param nvl
* the nvlist_t to search
*
* @param name
* the string key for the pair to find in the list, or
* NULL to match any name
*
* @param type
* the data type for the pair to find in the list, or
* DATA_TYPE_UNKNOWN to match any type
*
* @param nvp
* the pair to search from in the list, or NULL to search
* from the beginning of the list
*
* @return the next nvpair in the list matching the given
* criteria, or NULL if no matching nvpair is found
*/
nvpair_t *
{
/* For each nvpair in the list following nvp... */
/* Does this pair's name match the given name? */
/* Does this pair's type match the given type? */
return (nvp);
}
}
return (NULL);
}