FileDescriptor.java (position): New private field.
* java/io/FileDescriptor.java (position): New private field. * java/io/natFileDescriptorPosix.cc (write): Up position. (setLength): Use and set position. (seek): Set position. (getFilePointer): Return position. (read): Up position. From-SVN: r60869
This commit is contained in:
parent
3aa0cc4e82
commit
1d5c46dc84
3 changed files with 42 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
|||
// FileDescriptor.java - Open file or device
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -101,4 +101,6 @@ public final class FileDescriptor
|
|||
// we want to make sure this has the value -1. This is the most
|
||||
// efficient way to accomplish that.
|
||||
private int fd = -1;
|
||||
|
||||
private long position = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue