MCPcopy Create free account
hub / github.com/ReadyTalk/avian / Java_java_io_FileInputStream_open

Function Java_java_io_FileInputStream_open

classpath/java-io.cpp:732–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730#endif // not PLATFORM_WINDOWS
731
732extern "C" JNIEXPORT jint JNICALL
733 Java_java_io_FileInputStream_open(JNIEnv* e, jclass, jstring path)
734{
735 string_t chars = getChars(e, path);
736 if (chars) {
737 int fd = doOpen(e, chars, O_RDONLY);
738 releaseChars(e, path, chars);
739 return fd;
740 } else {
741 return -1;
742 }
743}
744
745extern "C" JNIEXPORT jint JNICALL
746 Java_java_io_FileInputStream_read__I(JNIEnv* e, jclass, jint fd)

Callers

nothing calls this directly

Calls 3

getCharsFunction · 0.85
doOpenFunction · 0.85
releaseCharsFunction · 0.85

Tested by

no test coverage detected