Lines Matching refs:env

59 Java_java_io_WinNTFileSystem_initIDs(JNIEnv *env, jclass cls)
62 jclass fileClass = (*env)->FindClass(env, "java/io/File");
65 (*env)->GetFieldID(env, fileClass, "path", "Ljava/lang/String;");
239 Java_java_io_WinNTFileSystem_canonicalize0(JNIEnv *env, jobject this,
245 WITH_UNICODE_STRING(env, pathname, path) {
255 rv = (*env)->NewString(env, cp, (jsize)wcslen(cp));
261 rv = (*env)->NewString(env, canonicalPath, (jsize)wcslen(canonicalPath));
263 } END_UNICODE_STRING(env, path);
265 JNU_ThrowIOExceptionWithLastError(env, "Bad pathname");
272 Java_java_io_WinNTFileSystem_canonicalizeWithPrefix0(JNIEnv *env, jobject this,
278 WITH_UNICODE_STRING(env, canonicalPrefixString, canonicalPrefix) {
279 WITH_UNICODE_STRING(env, pathWithCanonicalPrefixString, pathWithCanonicalPrefix) {
287 rv = (*env)->NewString(env, cp, (jsize)wcslen(cp));
295 rv = (*env)->NewString(env, canonicalPath, (jsize)wcslen(canonicalPath));
297 } END_UNICODE_STRING(env, pathWithCanonicalPrefix);
298 } END_UNICODE_STRING(env, canonicalPrefix);
300 JNU_ThrowIOExceptionWithLastError(env, "Bad pathname");
359 Java_java_io_WinNTFileSystem_getBooleanAttributes(JNIEnv *env, jobject this,
365 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
385 JNICALL Java_java_io_WinNTFileSystem_checkAccess(JNIEnv *env, jobject this,
389 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
415 Java_java_io_WinNTFileSystem_setPermission(JNIEnv *env, jobject this,
428 pathbuf = fileToNTPath(env, file, ids.path);
461 Java_java_io_WinNTFileSystem_getLastModifiedTime(JNIEnv *env, jobject this,
468 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
498 Java_java_io_WinNTFileSystem_getLength(JNIEnv *env, jobject this, jobject file)
502 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
537 Java_java_io_WinNTFileSystem_createFileExclusively(JNIEnv *env, jclass cls,
541 WCHAR *pathbuf = pathToNTPath(env, path, JNI_FALSE);
566 JNU_ThrowIOExceptionWithLastError(env, "Could not open file");
595 Java_java_io_WinNTFileSystem_delete0(JNIEnv *env, jobject this, jobject file)
598 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
610 Java_java_io_WinNTFileSystem_list(JNIEnv *env, jobject this, jobject file)
620 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
667 rv = (*env)->NewObjectArray(env, 0, JNU_ClassString(env), NULL);
675 rv = (*env)->NewObjectArray(env, maxlen, JNU_ClassString(env), NULL);
683 name = (*env)->NewString(env, find_data.cFileName,
689 rv = (*env)->NewObjectArray(env, maxlen <<= 1,
690 JNU_ClassString(env), NULL);
692 || JNU_CopyObjectArray(env, rv, old, len) < 0)
694 (*env)->DeleteLocalRef(env, old);
696 (*env)->SetObjectArrayElement(env, rv, len++, name);
697 (*env)->DeleteLocalRef(env, name);
707 rv = (*env)->NewObjectArray(env, len, JNU_ClassString(env), NULL);
710 if (JNU_CopyObjectArray(env, rv, old, len) < 0)
717 Java_java_io_WinNTFileSystem_createDirectory(JNIEnv *env, jobject this,
721 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
738 Java_java_io_WinNTFileSystem_rename0(JNIEnv *env, jobject this, jobject from,
743 WCHAR *frompath = fileToNTPath(env, from, ids.path);
744 WCHAR *topath = fileToNTPath(env, to, ids.path);
757 Java_java_io_WinNTFileSystem_setLastModifiedTime(JNIEnv *env, jobject this,
761 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
790 Java_java_io_WinNTFileSystem_setReadOnly(JNIEnv *env, jobject this,
795 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
827 Java_java_io_WinNTFileSystem_getDriveDirectory(JNIEnv *env, jobject this,
835 ret = (*env)->NewString(env, p, (jsize)wcslen(p));
841 Java_java_io_WinNTFileSystem_getSpace0(JNIEnv *env, jobject this,
846 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);