summaryrefslogtreecommitdiffstats
path: root/libjava/java/io/FileDescriptor.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-24 17:48:41 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-24 17:48:41 +0000
commit416ac64be4b4e75d7e228ef9b2bad6a363799ff9 (patch)
treee662d090c42dfe798a34225b7ec886fdde1d8f2e /libjava/java/io/FileDescriptor.java
parent67f327824063863407e9d148f9cbe9eb5741a9cd (diff)
downloadppe42-gcc-416ac64be4b4e75d7e228ef9b2bad6a363799ff9.tar.gz
ppe42-gcc-416ac64be4b4e75d7e228ef9b2bad6a363799ff9.zip
2002-07-24 Tom Tromey <tromey@redhat.com>
Tony Kimball <alk@pobox.com> * java/io/natFileDescriptorWin32.cc (setLength): New method. * java/io/natFileDescriptorPosix.cc (setLength): New method. * java/io/RandomAccessFile.java (setLength): New method. * java/io/natFileDescriptorEcos.cc (setLength): New method. * java/io/FileDescriptor.java (setLength): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55715 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io/FileDescriptor.java')
-rw-r--r--libjava/java/io/FileDescriptor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/io/FileDescriptor.java b/libjava/java/io/FileDescriptor.java
index 427a26a6e3a..08f8edfaa0d 100644
--- a/libjava/java/io/FileDescriptor.java
+++ b/libjava/java/io/FileDescriptor.java
@@ -1,6 +1,6 @@
// FileDescriptor.java - Open file or device
-/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation
This file is part of libgcj.
@@ -65,6 +65,7 @@ public final class FileDescriptor
native void write (byte[] b, int offset, int len)
throws IOException, NullPointerException, IndexOutOfBoundsException;
native void close () throws IOException;
+ native void setLength (long pos) throws IOException;
// EOF_TRUNC is true if a request to seek past the end of file
// should actually stop at the end of file. If false, then a seek
// past the end is ok (and if a subsequent write occurs the file
OpenPOWER on IntegriCloud