src/java.base/share/native/libjava/io_util.c
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 51671 9f6903174bad
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   199     if (buf != stackBuf) {
   199     if (buf != stackBuf) {
   200         free(buf);
   200         free(buf);
   201     }
   201     }
   202 }
   202 }
   203 
   203 
   204 void
   204 JNIEXPORT void JNICALL
   205 throwFileNotFoundException(JNIEnv *env, jstring path)
   205 throwFileNotFoundException(JNIEnv *env, jstring path)
   206 {
   206 {
   207     char buf[256];
   207     char buf[256];
   208     size_t n;
   208     size_t n;
   209     jobject x;
   209     jobject x;