From ce05139c56abbf21a0c8f81150542ed213d07581 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 24 Jul 2002 17:48:41 +0000 Subject: natFileDescriptorWin32.cc (setLength): New method. 2002-07-24 Tom Tromey Tony Kimball * 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. Co-Authored-By: Tony Kimball From-SVN: r55715 --- libjava/java/io/FileDescriptor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libjava/java/io/FileDescriptor.java') 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 -- cgit v1.2.3