diff options
-rw-r--r-- | core/org.eclipse.cdt.core.linux/library/io.c | 29 |
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
|