Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2006-04-28 07:28:04 +0000
committerMarkus Schorn2006-04-28 07:28:04 +0000
commit17fe1a203ddc48409657144b81044923209f9f49 (patch)
tree4eefbf6bdc51dec24b329ffd84d9ea9b2cac9169 /core/org.eclipse.cdt.core.linux
parent325f5713face447c5a9bded6d28606efd2879554 (diff)
downloadorg.eclipse.cdt-17fe1a203ddc48409657144b81044923209f9f49.tar.gz
org.eclipse.cdt-17fe1a203ddc48409657144b81044923209f9f49.tar.xz
org.eclipse.cdt-17fe1a203ddc48409657144b81044923209f9f49.zip
Removed implementation of available0, as it depends on a specific JVM, bug 119618 is still open.
Diffstat (limited to 'core/org.eclipse.cdt.core.linux')
-rw-r--r--core/org.eclipse.cdt.core.linux/library/io.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/core/org.eclipse.cdt.core.linux/library/io.c b/core/org.eclipse.cdt.core.linux/library/io.c
index f63fca77104..3a6f04b56e7 100644
--- a/core/org.eclipse.cdt.core.linux/library/io.c
+++ b/core/org.eclipse.cdt.core.linux/library/io.c
@@ -7,6 +7,7 @@
*
* Contributors:
* QNX Software Systems - initial API and implementation
+ * Wind River Systems, Inc.
*******************************************************************************/
#include <jni.h>
#include <stdio.h>
@@ -14,10 +15,6 @@
#include <SpawnerOutputStream.h>
#include <unistd.h>
-#define INT_MAX 2147483647
-
-JNIEXPORT jint JNICALL JVM_Available(jint fd, jlong *pbytes);
-
/* Header for class _org_eclipse_cdt_utils_spawner_SpawnerInputStream */
/* Header for class _org_eclipse_cdt_utils_spawner_SpawnerOutputStream */
@@ -75,30 +72,6 @@ Java_org_eclipse_cdt_utils_spawner_SpawnerInputStream_close0(JNIEnv * env,
return close(fd);
}
-JNIEXPORT jint JNICALL
-Java_org_eclipse_cdt_utils_spawner_SpawnerInputStream_available0(JNIEnv * env,
- jobject jobj,
- jint fd)
-{
- jlong ret;
-
- if (JVM_Available(fd, &ret)) {
- if (ret > INT_MAX) {
- ret = (jlong) INT_MAX;
- }
- return (jint)ret;
- }
-
- /* Error, toss an exception */
- jclass exception = (*env)->FindClass(env, "java/io/IOException");
- if (exception == NULL) {
- /* Give up. */
- return -1;
- }
- (*env)->ThrowNew(env, exception, NULL);
- return 0;
-}
-
/*
* Class: org_eclipse_cdt_utils_spawner_SpawnerOutputStream
* Method: write0

Back to the top