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

Function Java_java_io_FileOutputStream_open

classpath/java-io.cpp:786–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786extern "C" JNIEXPORT jint JNICALL
787 Java_java_io_FileOutputStream_open(JNIEnv* e,
788 jclass,
789 jstring path,
790 jboolean append)
791{
792 string_t chars = getChars(e, path);
793 if (chars) {
794 int fd = doOpen(e,
795 chars,
796 append ? (O_WRONLY | O_CREAT | O_APPEND)
797 : (O_WRONLY | O_CREAT | O_TRUNC));
798 releaseChars(e, path, chars);
799 return fd;
800 } else {
801 return -1;
802 }
803}
804
805extern "C" JNIEXPORT void JNICALL
806 Java_java_io_FileOutputStream_write__II(JNIEnv* e, jclass, jint fd, jint c)

Callers

nothing calls this directly

Calls 3

getCharsFunction · 0.85
doOpenFunction · 0.85
releaseCharsFunction · 0.85

Tested by

no test coverage detected