| 784 | } |
| 785 | |
| 786 | extern "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 | |
| 805 | extern "C" JNIEXPORT void JNICALL |
| 806 | Java_java_io_FileOutputStream_write__II(JNIEnv* e, jclass, jint fd, jint c) |
nothing calls this directly
no test coverage detected