< prev index next >

src/java.base/windows/native/libjava/WinNTFileSystem_md.c

Print this page
*** 409,12 ***
      }
      return FALSE;
  }
  
  JNIEXPORT jint JNICALL
! Java_java_io_WinNTFileSystem_getBooleanAttributes(JNIEnv *env, jobject this,
!                                                   jobject file)
  {
      jint rv = 0;
  
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)
--- 409,12 ---
      }
      return FALSE;
  }
  
  JNIEXPORT jint JNICALL
! Java_java_io_WinNTFileSystem_getBooleanAttributes0(JNIEnv *env, jobject this,
!                                                    jobject file)
  {
      jint rv = 0;
  
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)

*** 434,12 ***
      return rv;
  }
  
  
  JNIEXPORT jboolean
! JNICALL Java_java_io_WinNTFileSystem_checkAccess(JNIEnv *env, jobject this,
!                                                  jobject file, jint access)
  {
      DWORD attr;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)
          return JNI_FALSE;
--- 434,12 ---
      return rv;
  }
  
  
  JNIEXPORT jboolean
! JNICALL Java_java_io_WinNTFileSystem_checkAccess0(JNIEnv *env, jobject this,
!                                                   jobject file, jint access)
  {
      DWORD attr;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)
          return JNI_FALSE;

*** 464,15 ***
          return JNI_FALSE;
      }
  }
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_setPermission(JNIEnv *env, jobject this,
!                                            jobject file,
!                                            jint access,
!                                            jboolean enable,
!                                            jboolean owneronly)
  {
      jboolean rv = JNI_FALSE;
      WCHAR *pathbuf;
      DWORD a;
      if (access == java_io_FileSystem_ACCESS_READ ||
--- 464,15 ---
          return JNI_FALSE;
      }
  }
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_setPermission0(JNIEnv *env, jobject this,
!                                             jobject file,
!                                             jint access,
!                                             jboolean enable,
!                                             jboolean owneronly)
  {
      jboolean rv = JNI_FALSE;
      WCHAR *pathbuf;
      DWORD a;
      if (access == java_io_FileSystem_ACCESS_READ ||

*** 510,12 ***
      free(pathbuf);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_WinNTFileSystem_getLastModifiedTime(JNIEnv *env, jobject this,
!                                                  jobject file)
  {
      jlong rv = 0;
      ULARGE_INTEGER modTime;
      FILETIME t;
      HANDLE h;
--- 510,12 ---
      free(pathbuf);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_WinNTFileSystem_getLastModifiedTime0(JNIEnv *env, jobject this,
!                                                   jobject file)
  {
      jlong rv = 0;
      ULARGE_INTEGER modTime;
      FILETIME t;
      HANDLE h;

*** 547,11 ***
      free(pathbuf);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_WinNTFileSystem_getLength(JNIEnv *env, jobject this, jobject file)
  {
      jlong rv = 0;
      WIN32_FILE_ATTRIBUTE_DATA wfad;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)
--- 547,11 ---
      free(pathbuf);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_WinNTFileSystem_getLength0(JNIEnv *env, jobject this, jobject file)
  {
      jlong rv = 0;
      WIN32_FILE_ATTRIBUTE_DATA wfad;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)

*** 613,12 ***
  }
  
  /* -- File operations -- */
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_createFileExclusively(JNIEnv *env, jclass cls,
!                                                    jstring path)
  {
      HANDLE h = NULL;
      WCHAR *pathbuf = pathToNTPath(env, path, JNI_FALSE);
      if (pathbuf == NULL)
          return JNI_FALSE;
--- 613,12 ---
  }
  
  /* -- File operations -- */
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_createFileExclusively0(JNIEnv *env, jclass cls,
!                                                     jstring path)
  {
      HANDLE h = NULL;
      WCHAR *pathbuf = pathToNTPath(env, path, JNI_FALSE);
      if (pathbuf == NULL)
          return JNI_FALSE;

*** 686,11 ***
      free(pathbuf);
      return rv;
  }
  
  JNIEXPORT jobjectArray JNICALL
! Java_java_io_WinNTFileSystem_list(JNIEnv *env, jobject this, jobject file)
  {
      WCHAR *search_path;
      HANDLE handle;
      WIN32_FIND_DATAW find_data;
      int len, maxlen;
--- 686,11 ---
      free(pathbuf);
      return rv;
  }
  
  JNIEXPORT jobjectArray JNICALL
! Java_java_io_WinNTFileSystem_list0(JNIEnv *env, jobject this, jobject file)
  {
      WCHAR *search_path;
      HANDLE handle;
      WIN32_FIND_DATAW find_data;
      int len, maxlen;

*** 808,12 ***
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_createDirectory(JNIEnv *env, jobject this,
!                                              jobject file)
  {
      BOOL h = FALSE;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL) {
          /* Exception is pending */
--- 808,12 ---
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_createDirectory0(JNIEnv *env, jobject this,
!                                               jobject file)
  {
      BOOL h = FALSE;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL) {
          /* Exception is pending */

*** 846,12 ***
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_setLastModifiedTime(JNIEnv *env, jobject this,
!                                                  jobject file, jlong time)
  {
      jboolean rv = JNI_FALSE;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      HANDLE h;
      if (pathbuf == NULL)
--- 846,12 ---
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_setLastModifiedTime0(JNIEnv *env, jobject this,
!                                                   jobject file, jlong time)
  {
      jboolean rv = JNI_FALSE;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      HANDLE h;
      if (pathbuf == NULL)

*** 879,12 ***
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_setReadOnly(JNIEnv *env, jobject this,
!                                          jobject file)
  {
      jboolean rv = JNI_FALSE;
      DWORD a;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)
--- 879,12 ---
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_WinNTFileSystem_setReadOnly0(JNIEnv *env, jobject this,
!                                           jobject file)
  {
      jboolean rv = JNI_FALSE;
      DWORD a;
      WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
      if (pathbuf == NULL)
< prev index next >