< prev index next >

src/java.base/share/native/libjava/RandomAccessFile.c

Print this page
*** 71,22 ***
  Java_java_io_RandomAccessFile_read0(JNIEnv *env, jobject this) {
      return readSingle(env, this, raf_fd);
  }
  
  JNIEXPORT jint JNICALL
! Java_java_io_RandomAccessFile_readBytes(JNIEnv *env,
      jobject this, jbyteArray bytes, jint off, jint len) {
      return readBytes(env, this, bytes, off, len, raf_fd);
  }
  
  JNIEXPORT void JNICALL
  Java_java_io_RandomAccessFile_write0(JNIEnv *env, jobject this, jint byte) {
      writeSingle(env, this, byte, JNI_FALSE, raf_fd);
  }
  
  JNIEXPORT void JNICALL
! Java_java_io_RandomAccessFile_writeBytes(JNIEnv *env,
      jobject this, jbyteArray bytes, jint off, jint len) {
      writeBytes(env, this, bytes, off, len, JNI_FALSE, raf_fd);
  }
  
  JNIEXPORT jlong JNICALL
--- 71,22 ---
  Java_java_io_RandomAccessFile_read0(JNIEnv *env, jobject this) {
      return readSingle(env, this, raf_fd);
  }
  
  JNIEXPORT jint JNICALL
! Java_java_io_RandomAccessFile_readBytes0(JNIEnv *env,
      jobject this, jbyteArray bytes, jint off, jint len) {
      return readBytes(env, this, bytes, off, len, raf_fd);
  }
  
  JNIEXPORT void JNICALL
  Java_java_io_RandomAccessFile_write0(JNIEnv *env, jobject this, jint byte) {
      writeSingle(env, this, byte, JNI_FALSE, raf_fd);
  }
  
  JNIEXPORT void JNICALL
! Java_java_io_RandomAccessFile_writeBytes0(JNIEnv *env,
      jobject this, jbyteArray bytes, jint off, jint len) {
      writeBytes(env, this, bytes, off, len, JNI_FALSE, raf_fd);
  }
  
  JNIEXPORT jlong JNICALL

*** 104,11 ***
      }
      return ret;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_RandomAccessFile_length(JNIEnv *env, jobject this) {
  
      FD fd;
      jlong length = jlong_zero;
  
      fd = getFD(env, this, raf_fd);
--- 104,11 ---
      }
      return ret;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_RandomAccessFile_length0(JNIEnv *env, jobject this) {
  
      FD fd;
      jlong length = jlong_zero;
  
      fd = getFD(env, this, raf_fd);

*** 139,12 ***
          JNU_ThrowIOExceptionWithLastError(env, "Seek failed");
      }
  }
  
  JNIEXPORT void JNICALL
! Java_java_io_RandomAccessFile_setLength(JNIEnv *env, jobject this,
!                                         jlong newLength)
  {
      FD fd;
      jlong cur;
  
      fd = getFD(env, this, raf_fd);
--- 139,12 ---
          JNU_ThrowIOExceptionWithLastError(env, "Seek failed");
      }
  }
  
  JNIEXPORT void JNICALL
! Java_java_io_RandomAccessFile_setLength0(JNIEnv *env, jobject this,
!                                          jlong newLength)
  {
      FD fd;
      jlong cur;
  
      fd = getFD(env, this, raf_fd);
< prev index next >