aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/nio/channels/FileChannelImpl.java
AgeCommit message (Collapse)AuthorFilesLines
2016-09-30Makefile.def: Remove libjava.Andrew Haley1-544/+0
2016-09-30 Andrew Haley <aph@redhat.com> * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. From-SVN: r240662
2007-01-09Merged gcj-eclipse branch to trunk.Tom Tromey1-0/+8
From-SVN: r120621
2006-05-13sources.am, [...]: Rebuilt.Tom Tromey1-2/+11
* sources.am, Makefile.in: Rebuilt. * java/util/logging/LogManager.java: Removed. * java/util/logging/Logger.java (resetLogger): New method, from Classpath. * java/io/RandomAccessFile.java: Removed. * gnu/java/nio/channels/FileChannelImpl.java (create): New method. (FileChannelImpl): Now private. * java/io/FileInputStream.java: Removed. * java/io/FileOutputStream.java: Removed. * java/security/AccessControlContext.java: Removed. * java/lang/ThreadLocal.java: Removed. * java/lang/InheritableThreadLocal.java: Removed. * java/lang/Thread.java (locals): New field. (getThreadLocals): New method. * java/lang/natThread.cc (finish_): Clear 'locals'. From-SVN: r113735
2005-06-30Update FSF addressKelley Cook1-2/+2
From-SVN: r101453
2005-05-03re PR libgcj/21372 (FileChannel.tryLock() return value incorrect)Andrew Overholt1-2/+4
2005-05-03 Andrew Overholt <overholt@redhat.com> PR libgcj/21372: * gnu/java/nio/channels/FileChannelImpl.java: Return null if lock could not be acquired. * java/nio/channels/FileLock.java (toString): Re-implement to be in line with other implementations. From-SVN: r99188
2005-04-292005-04-29 Dalibor Topic <robilad@kaffe.org>Dalibor Topic1-1/+19
* java/nio/channels/FileChannelImpl.java (FileChannelImpl(String, int)): Removed. (FileChannelImpl(File, int)): Added. Check if opened file is a directory. * java/io/FileInputStream.java(FileInputStream): Fixed javadocs. Call FileChannelImpl(File, int). * java/io/FileOutputStream.java (FileInputStream): Call FileChannelImpl(File, int). * java/io/RandomAccessFile.java (RandomAccessFile): Call FileChannelImpl(File, int). Switched constructors around. From-SVN: r99011
2005-04-26re PR libgcj/21136 ([4.0 only] tryLock waits for the lock, and lock doesn't)Luca Barbieri1-2/+2
2005-04-26 Luca Barbieri <luca.barbieri@gmail.com> PR libgcj/21136: * gnu/java/nio/channels/FileChannelImpl.java (tryLock): Pass 'false' to native lock(). (lock): Pass 'true' to native lock(). From-SVN: r98792
2005-03-10FileChannelImpl.java (smallTransferFrom): New.Andrew Haley1-12/+88
2005-03-09 Andrew Haley <aph@redhat.com> * gnu/java/nio/channels/FileChannelImpl.java (smallTransferFrom): New. (smallTransferTo): New. (transferFrom): Loop around smallTransferFrom, copying pageSize bytes each time. (transferTo): Likewise. From-SVN: r96240
2005-02-17FileChannelImpl.java (write(ByteBuffer)): Move the position of the source ↵Ito Kazumitsu1-1/+2
buffer forward. 2005-02-17 Ito Kazumitsu <kaz@maczuka.gcd.org> * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. From-SVN: r95184
2004-07-17[multiple changes]Michael Koch1-1/+3
2004-07-17 Mark Wielaard <mark@klomp.org> * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate when size is smaller. * java/io/RandomAccessFile.java (setLength): Use truncate for shrinking the file and seek plus write for expanding the file. 2004-07-17 Michael Koch <konqueror@gmx.de> * gnu/java/nio/channels/natFileChannelPosix.cc (implTruncate): Always save current position. Only reposition file pointer to where we started if not beyond new lenght. Reposition file pointer to file length if it points beyond the end of file. From-SVN: r84868
2004-07-172004-07-17 Michael Koch <konqueror@gmx.de>Michael Koch1-5/+8
* gnu/java/nio/channels/FileChannelImpl.java (finalize): Added javadoc. From-SVN: r84858
2004-05-042004-05-04 Mark Wielaard <mark@klomp.org>Mark Wielaard1-0/+5
* gnu/java/nio/channels/FileChannelImpl.java (finalize): New method. From-SVN: r81469
2004-04-232004-04-23 Michael Koch <konqueror@gmx.de>Michael Koch1-40/+25
* gnu/java/nio/channels/FileChannelImpl.java (SET, CUR): Unused, removed. (read): Implement here directly. (implRead): Removed. (write): Implement here directly. (implWrite): Removed. From-SVN: r81079
2004-04-202004-04-20 Michael Koch <konqueror@gmx.de>Michael Koch1-27/+42
* gnu/java/nio/FileLockImpl.java (static): Removed, not needed anymore. * gnu/java/nio/channels/FileChannelImpl.java (FileChannelImpl): Made final. (mode): Made private. (READ, WRITE, APPEND): Made public. (EXCL, SYNC, DSYNC): Likewise. (static): Load native JNI library, when needed. (length): Unused, removed. (available): Made public. (implPosition): Throws IOException. (seek): Likewise. (implTruncate): Likewise. (unlock): Likewise. (lock): Likewise. From-SVN: r80891
2004-02-29FileChannelImpl.java: New class, renamed from java/nio/channels.Per Bothner1-0/+420
* gnu/java/nio/channels/FileChannelImpl.java: New class, renamed from java/nio/channels. Don't depend on FileDescriptor. (in, out, err): New static fields. (mode): New field. (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants from FileDescriptor. (by): Removed MappedByteBuffer field. (map): New working implementation. * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though some code "ported" from natFileDescriptoPosix.cc. * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise. * gnu/java/nio/channels/natFileChannelWin32.cc Likewise. From-SVN: r78659