aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/nio/natFileChannelImpl.cc
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-02-13 15:12:36 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-02-13 15:12:36 +0000
commit6b603eb999cdf19bb27cdaf7b3433582d1c04356 (patch)
treecf78c09f1e56f59310d3207edba02250289dbb99 /libjava/gnu/java/nio/natFileChannelImpl.cc
parente0d9cc77707ce56f0661cc6ac95ab19ec96e2ecc (diff)
downloadgcc-6b603eb999cdf19bb27cdaf7b3433582d1c04356.zip
gcc-6b603eb999cdf19bb27cdaf7b3433582d1c04356.tar.gz
gcc-6b603eb999cdf19bb27cdaf7b3433582d1c04356.tar.bz2
2003-02-13 Michael <konqueror@gmx.de>
* gnu/java/nio/FileChannelImpl.java (lengthInternal): Must be native. (size): Check if channel is already closed. (implCloseChannel): Reformated. (read): w was unused, removed it. (read): Removed. (read): New method. (write): New method. (map): Check arguments. (force): Throws IOException, check if channel is closed. (transferTo): New method. (transferFrom): New method. (lock): New method. (tryLock): New method. (position): New method. (truncate): New method. (nio_mmap_file): Uncommented. (nio_munmap_file): Uncommented. (nio_msync): Uncommented. * gnu/java/nio/natFileChannelImpl.cc: New file. From-SVN: r62841
Diffstat (limited to 'libjava/gnu/java/nio/natFileChannelImpl.cc')
-rw-r--r--libjava/gnu/java/nio/natFileChannelImpl.cc53
1 files changed, 53 insertions, 0 deletions
diff --git a/libjava/gnu/java/nio/natFileChannelImpl.cc b/libjava/gnu/java/nio/natFileChannelImpl.cc
new file mode 100644
index 0000000..8738630
--- /dev/null
+++ b/libjava/gnu/java/nio/natFileChannelImpl.cc
@@ -0,0 +1,53 @@
+// natFileChannelImpl.cc
+
+/* Copyright (C) 2003 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+#include <config.h>
+
+#include <jvm.h>
+
+#include <errno.h>
+#include <string.h>
+#include <sys/types.h>
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
+#include <gnu/java/nio/FileChannelImpl.h>
+#include <java/io/IOException.h>
+#include <java/nio/channels/FileChannel.h>
+
+jlong
+gnu::java::nio::FileChannelImpl::lengthInternal (jint fd)
+{
+ throw new ::java::io::IOException (JvNewStringUTF ("lengthInternal not implemented"));
+}
+
+jlong
+gnu::java::nio::FileChannelImpl::nio_mmap_file (jint, jlong, jint, jint)
+{
+ throw new ::java::io::IOException (JvNewStringUTF ("mmap not implemented"));
+}
+
+void
+gnu::java::nio::FileChannelImpl::nio_unmmap_file (jint, jlong, jint)
+{
+ throw new ::java::io::IOException (JvNewStringUTF ("munmap not implemented"));
+}
+
+void
+gnu::java::nio::FileChannelImpl::nio_msync (jint, jlong, jint)
+{
+ throw new ::java::io::IOException (JvNewStringUTF ("msync not implemented"));
+}