/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
#include "jni.h"
#include "jni_util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <dirent.h>
#include <ctype.h>
#include <sys/syslimits.h>
#include <fcntl.h>
#include "sun_tools_attach_BsdVirtualMachine.h"
do { \
} while(0)
/*
* Class: sun_tools_attach_BsdVirtualMachine
* Method: socket
* Signature: ()I
*/
{
if (fd == -1) {
}
}
/*
* Class: sun_tools_attach_BsdVirtualMachine
* Method: connect
*/
{
if (p != NULL) {
int err = 0;
}
if (isCopy) {
}
/*
* If the connect failed then we throw the appropriate exception
* here (can't throw it before releasing the string as can't call
* JNI with pending exception)
*/
if (err != 0) {
} else {
}
}
}
}
}
/*
* Class: sun_tools_attach_BsdVirtualMachine
* Method: sendQuitTo
* Signature: (I)V
*/
{
}
}
/*
* Class: sun_tools_attach_BsdVirtualMachine
* Method: checkPermissions
*/
{
if (p != NULL) {
int res;
/*
*/
if (res != 0) {
/* save errno */
}
/* release p here before we throw an I/O exception */
if (isCopy) {
}
if (res == 0) {
}
} else {
}
}
}
}
/*
* Class: sun_tools_attach_BsdVirtualMachine
* Method: close
* Signature: (I)V
*/
{
int res;
}
/*
* Class: sun_tools_attach_BsdVirtualMachine
* Method: read
* Signature: (I[BI)I
*/
{
ssize_t n;
}
if (n == -1) {
} else {
if (n == 0) {
n = -1; // EOF
} else {
}
}
return n;
}
/*
* Class: sun_tools_attach_BsdVirtualMachine
* Method: write
* Signature: (I[B)V
*/
{
do {
int n;
}
if (n > 0) {
off += n;
remaining -= n;
} else {
return;
}
} while (remaining > 0);
}
/*
* Class: sun_tools_attach_BSDVirtualMachine
* Method: createAttachFile
* Signature: (Ljava.lang.String;)V
*/
JNIEXPORT void JNICALL Java_sun_tools_attach_BsdVirtualMachine_createAttachFile(JNIEnv *env, jclass cls, jstring path)
{
const char* _path;
return;
}
if (fd == -1) {
/* release p here before we throw an I/O exception */
if (isCopy) {
}
return;
}
/* release p here */
if (isCopy) {
}
}
/*
* Class: sun_tools_attach_BSDVirtualMachine
* Method: getTempDir
* Signature: (V)Ljava.lang.String;
*/
JNIEXPORT jstring JNICALL Java_sun_tools_attach_BsdVirtualMachine_getTempDir(JNIEnv *env, jclass cls)
{
// This must be hard coded because it's the system's temporary
// directory not the java application's temp directory, ala java.io.tmpdir.
#ifdef __APPLE__
// macosx has a secure per-user temporary directory
}
}
#else /* __APPLE__ */
#endif /* __APPLE__ */
}