/*
* CDDL HEADER START
*
* 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.
*
* 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
*/
/*
*/
#include <unistd.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include "libjniutil.h"
/*
* Creates an instance of a class using the specified constructor and
* arguments. Returns a newly created object. If it returns NULL, we
* failed and have thrown an exception.
*/
{
return (result);
}
/*
* Find the class specified by 'def', and optionally looks up the
* specified constructor. Stores a reference to the class and the
* method id of the constructor in the variables referenced by 'def'.
* If 'global' is true, a global reference to the class is obtained.
*/
void
{
if (tclass == 0) {
def->class_name);
}
if (global) {
} else {
}
if (rctor == 0) {
"Couldn't find constructor for \"%s\"\n",
def->class_name);
"Couldn't find required class constructor");
}
}
}
/*
* Construct and throw the specified exception object.
*/
void
{
}
/*
* Construct and throw the named exception using its
*/
void
{
};
return;
} else {
}
}
/*
* Construct and throw the named exception using its
*/
void
{
}
/*
* Throws a java.io.IOException with the specified description string.
*/
void
{
}
/*
* Throws a java.lang.IllegalArgumentException with the specified
* description string.
*/
void
{
}
/*
* Throws a java.lang.NullPointerException with the specified
* description string.
*/
void
{
}
/*
* Throws a java.lang.NullPointerException with the specified
* description string.
*/
void
{
}
/*
* Find the field id of the specified field of type long.
*/
{
return (fid);
}
/*
* Converts a batch of Java strings to C strings.
*/
{
goto error;
}
goto error;
}
return (B_TRUE);
/*
* If we encountered an error, there is at least one non-null
* entry that points to a null value (so no need to test for
* cur->cstr != NULL).
*/
}
return (B_FALSE);
}
/*
* Frees a batch of C strings created by cify_strings
*/
void
{
}
}
/*
* Given a Java array of Java strings, create a C array of C strings.
*/
char **
{
char **result;
const char *str;
jsize i;
return (NULL);
}
for (i = 0; i < len; i++) {
goto error;
goto error;
}
goto error;
}
goto error;
}
}
return (result);
for (; i > 0; i--)
return (NULL);
}
/*
* Frees an array allocated by sarray_create.
*/
void
{
}