jdk/src/solaris/native/java/io/FileOutputStream_md.c
changeset 7515 43202796198e
parent 5506 202f599c92aa
child 7668 d4a77089c587
equal deleted inserted replaced
7298:895772293d6e 7515:43202796198e
    58     fileOpen(env, this, path, fos_fd,
    58     fileOpen(env, this, path, fos_fd,
    59              O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC));
    59              O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC));
    60 }
    60 }
    61 
    61 
    62 JNIEXPORT void JNICALL
    62 JNIEXPORT void JNICALL
    63 Java_java_io_FileOutputStream_write(JNIEnv *env, jobject this, jint byte) {
    63 Java_java_io_FileOutputStream_write(JNIEnv *env, jobject this, jint byte, jboolean append) {
    64     writeSingle(env, this, byte, fos_fd);
    64     writeSingle(env, this, byte, append, fos_fd);
    65 }
    65 }
    66 
    66 
    67 JNIEXPORT void JNICALL
    67 JNIEXPORT void JNICALL
    68 Java_java_io_FileOutputStream_writeBytes(JNIEnv *env,
    68 Java_java_io_FileOutputStream_writeBytes(JNIEnv *env,
    69     jobject this, jbyteArray bytes, jint off, jint len) {
    69     jobject this, jbyteArray bytes, jint off, jint len, jboolean append) {
    70     writeBytes(env, this, bytes, off, len, fos_fd);
    70     writeBytes(env, this, bytes, off, len, append, fos_fd);
    71 }
    71 }
    72 
    72 
    73 JNIEXPORT void JNICALL
    73 JNIEXPORT void JNICALL
    74 Java_java_io_FileOutputStream_close0(JNIEnv *env, jobject this) {
    74 Java_java_io_FileOutputStream_close0(JNIEnv *env, jobject this) {
    75     fileClose(env, this, fos_fd);
    75     fileClose(env, this, fos_fd);