FSF GCC merge 02/23/03
[official-gcc.git] / libjava / gnu / java / nio / natFileChannelImpl.cc
blob87386305bc685be04208aecdd2254dc6ceb44c1b
1 // natFileChannelImpl.cc
3 /* Copyright (C) 2003 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9 details. */
11 #include <config.h>
13 #include <jvm.h>
15 #include <errno.h>
16 #include <string.h>
17 #include <sys/types.h>
19 #ifdef HAVE_UNISTD_H
20 #include <unistd.h>
21 #endif
23 #ifdef HAVE_FCNTL_H
24 #include <fcntl.h>
25 #endif
27 #include <gnu/java/nio/FileChannelImpl.h>
28 #include <java/io/IOException.h>
29 #include <java/nio/channels/FileChannel.h>
31 jlong
32 gnu::java::nio::FileChannelImpl::lengthInternal (jint fd)
34 throw new ::java::io::IOException (JvNewStringUTF ("lengthInternal not implemented"));
37 jlong
38 gnu::java::nio::FileChannelImpl::nio_mmap_file (jint, jlong, jint, jint)
40 throw new ::java::io::IOException (JvNewStringUTF ("mmap not implemented"));
43 void
44 gnu::java::nio::FileChannelImpl::nio_unmmap_file (jint, jlong, jint)
46 throw new ::java::io::IOException (JvNewStringUTF ("munmap not implemented"));
49 void
50 gnu::java::nio::FileChannelImpl::nio_msync (jint, jlong, jint)
52 throw new ::java::io::IOException (JvNewStringUTF ("msync not implemented"));