summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/channels/FileChannelImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Merged gcj-eclipse branch to trunk.tromey2007-01-091-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
* * sources.am, Makefile.in: Rebuilt.tromey2006-05-131-2/+11
| | | | | | | | | | | | | | | | | | | | * 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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113735 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF addresskcook2005-06-301-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101453 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-05-03 Andrew Overholt <overholt@redhat.com>tromey2005-05-031-2/+4
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99188 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-04-29 Dalibor Topic <robilad@kaffe.org>mkoch2005-04-291-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99011 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-04-26 Luca Barbieri <luca.barbieri@gmail.com>tromey2005-04-261-2/+2
| | | | | | | | | | PR libgcj/21136: * gnu/java/nio/channels/FileChannelImpl.java (tryLock): Pass 'false' to native lock(). (lock): Pass 'true' to native lock(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98792 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-03-09 Andrew Haley <aph@redhat.com>aph2005-03-101-12/+88
| | | | | | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (smallTransferFrom): New. (smallTransferTo): New. (transferFrom): Loop around smallTransferFrom, copying pageSize bytes each time. (transferTo): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96240 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-02-17 Ito Kazumitsu <kaz@maczuka.gcd.org>mkoch2005-02-171-1/+2
| | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95184 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-17 Mark Wielaard <mark@klomp.org>mkoch2004-07-171-1/+3
| | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84868 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-17 Michael Koch <konqueror@gmx.de>mkoch2004-07-171-5/+8
| | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (finalize): Added javadoc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84858 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-04 Mark Wielaard <mark@klomp.org>mkoch2004-05-041-0/+5
| | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81469 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-23 Michael Koch <konqueror@gmx.de>mkoch2004-04-231-40/+25
| | | | | | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (SET, CUR): Unused, removed. (read): Implement here directly. (implRead): Removed. (write): Implement here directly. (implWrite): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81079 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-20 Michael Koch <konqueror@gmx.de>mkoch2004-04-201-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80891 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/channels/FileChannelImpl.java: New class, renamedbothner2004-02-291-0/+420
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78659 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud