* java/io/RandomAccessFile.java (skipBytes): Return number of
bytes skipped.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56265
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-08-13 Jesse Rosenstock <jmr@fulcrummicro.com>
+
+ * java/io/RandomAccessFile.java (skipBytes): Return number of
+ bytes skipped.
+
2002-08-01 Mark Wielaard <mark@klomp.org>
Reenable patch since shared library troubles on powerpc are solved:
public int skipBytes (int count) throws IOException
{
- return count <= 0 ? 0 : fd.seek(count, FileDescriptor.CUR, true);
+ if (count <= 0)
+ return 0;
+ long startPos = fd.getFilePointer();
+ long endPos = fd.seek(count, FileDescriptor.CUR, true);
+ return (int) (endPos - startPos);
}
public void write (int oneByte) throws IOException