/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <limits.h>
#include "jni.h"
#include "jni_util.h"
#include "jlong.h"
#include "jvm.h"
#include "io_util.h"
#include "io_util_md.h"
#include "java_io_FileSystem.h"
#include "java_io_UnixFileSystem.h"
#if defined(_ALLBSD_SOURCE)
#endif
/* -- Field IDs -- */
static struct {
} ids;
{
if (!fileClass) return;
}
/* -- Path operations -- */
{
canonicalPath, JVM_MAXPATHLEN) < 0) {
} else {
#ifdef MACOSX
#else
#endif
}
return rv;
}
/* -- Attribute accessors -- */
static jboolean
{
return JNI_TRUE;
}
return JNI_FALSE;
}
{
int mode;
}
return rv;
}
{
int mode = 0;
switch (a) {
break;
break;
break;
default: assert(0);
}
}
return rv;
}
{
int amode = 0;
int mode;
switch (access) {
if (owneronly)
else
break;
if (owneronly)
else
break;
if (owneronly)
else
break;
default:
assert(0);
}
if (enable)
else
}
}
return rv;
}
{
}
return rv;
}
{
}
return rv;
}
/* -- File operations -- */
{
int fd;
} else {
}
if (fd < 0) {
if (fd != JVM_EEXIST) {
}
} else {
}
return rv;
}
{
}
return rv;
}
{
return NULL;
}
/* Allocate an initial String array */
len = 0;
maxlen = 16;
/* Scan the directory */
continue;
}
#ifdef MACOSX
#else
#endif
}
/* Copy the final results into an appropriately-sized array */
return NULL;
}
return NULL;
}
return rv;
return NULL;
}
{
}
return rv;
}
{
}
return rv;
}
{
/* Preserve access time */
/* Change last-modified time */
}
return rv;
}
{
int mode;
}
}
return rv;
}
{
switch(t) {
break;
break;
break;
default:
assert(0);
}
}
return rv;
}