summaryrefslogtreecommitdiff
path: root/libjava/java/io/FileDescriptor.java
Commit message (Collapse)AuthorAgeFilesLines
* Merged gcj-eclipse branch to trunk.tromey2007-01-091-0/+139
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
* Major merge with Classpath.tromey2005-07-161-139/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Removed many duplicate files. * HACKING: Updated.x * classpath: Imported new directory. * standard.omit: New file. * Makefile.in, aclocal.m4, configure: Rebuilt. * sources.am: New file. * configure.ac: Run Classpath configure script. Moved code around to support. Disable xlib AWT peers (temporarily). * Makefile.am (SUBDIRS): Added 'classpath' (JAVAC): Removed. (AM_CPPFLAGS): Added more -I options. (BOOTCLASSPATH): Simplified. Completely redid how sources are built. Include sources.am. * include/Makefile.am (tool_include__HEADERS): Removed jni.h. * include/jni.h: Removed (in Classpath). * scripts/classes.pl: Updated to look at built classes. * scripts/makemake.tcl: New file. * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Added -I options. (gcj_jni_invocation_compile_c_to_binary): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102082 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-02-21 Mark Wielaard <mark@klomp.org>mkoch2005-02-211-1/+1
| | | | | | | | * java/io/FileDescriptor.java (sync): Add real exception to SyncFailedException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95324 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-09 Michael Koch <konqueror@gmx.de>mkoch2004-10-091-1/+2
| | | | | | | | | | | | | | | | | | * java/io/CharArrayWriter.java (resize): Removed redundant 'final' modifier. * java/io/DataInputStream.java (readFully): Throw IndexOutOfBoundsException of len < 0. * java/io/FileDescriptor.java, java/io/FileInputStream.java, java/io/FileOutputStream.java, java/io/ObjectOutputStream.java, java/io/ObjectStreamClass.java, java/io/PipedInputStream.java, java/io/RandomAccessFile.java: Reorganized import statements. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88817 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-20 Jeroen Frijters <jeroen@frijters.net>mkoch2004-04-201-1/+9
| | | | | | | | | | | | | | | * java/io/FileDescriptor.java: (FileDescriptor) Added public constructor. (valid) Added null check. 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org> Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com> * java/io/FileOutputStream.java (FileOutputStream) Reorganized constructors. Constructors now check whether the given path is directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80901 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FileDescriptor.java: Implement on top of FileChannel.bothner2004-02-291-122/+31
| | | | | | | | | | | | | | | | | | | | Remove native methods. * java/io/natFileDescriptorEcos.cc: Remove file. * java/io/natFileDescriptorPosix.cc: Remove file. * java/io/natFileDescriptorWin32.cc: Remove file. * java/io/FileInputStream.java (ch): Change type to FileChannelImpl. (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor. (<init>(FileChannelImpl)): New package-private constructor. (<init>(FileDescriptor)): Extract FileChannelImpl from arg. (available, close, read, skip): Implement using FileChannelImpl. (getFD): Allocate FileDescriptor if needed. (getChannel): Is now trivial. * java/io/FileOutputStream.java: Corresponding changes. * java/io/RandomAccessFile.java: Corresponding changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78661 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorEcos.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorPosix.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorWin32.cc (lock): New method. (tryLock): New method. (unlock): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76421 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-28/+79
| | | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java (sync): Moved around, added javadoc. (valid): Likewise. (open): Likewise. (write): Likewise. (close): Likewise. (setLength): Likewise. (seek): Likewise. (getLength): Likewise. (getFilePointer): Likewise. (read): Likewise. (available): Likewise. (finalize): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76419 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-13/+44
| | | | | | | | | | * java/io/FileDescriptor.java (in, out, err): Added javadoc. (static): Merged loading code. (fd, position): Moved around. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76411 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-20/+47
| | | | | | | | * java/io/FileDescriptor.java: Merged copyright with classpath to start merging this class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76408 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-13 Michael Koch <konqueror@gmx.de>mkoch2003-05-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java (SYNC): New constant. (DSYNC): Likewise. (getLength): Renamed from lenght() to match classpath's FileDescriptor.java. * java/io/RandomAccessFile.java (RandomAccessFile): Removed unneeded mode check, implemented mode "rws" and "rwd", merged documentation from classpath. (setLength): Reformatted. (length): Use new getLength() of FileDescriptor. * java/io/natFileDescriptorEcos.cc (getLength): Renamed from length(). * java/io/natFileDescriptorPosix.cc (open): Implemented support for SYNC and DSYNC. (seek): Use getLength() instead of length(). (getLength): Renamed from length(). * java/io/natFileDescriptorWin32.cc (getLength): Renamed from length(). (seek): Use getLength() instead of length(). (available): Likewise. * gnu/java/nio/natFileChannelImpl.cc (size): Use getLength() instead of length(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66755 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-28 Michael Koch <konqueror@gmx.de>mkoch2003-03-281-1/+1
| | | | | | | | | | * java/io/FileDescriptor.java (finalize): Throws Throwable, not IOException. * java/io/ObjectOutputStream.java (PutField.put): Doesnt throws anything. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64970 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FileDescriptor.java (position): New private field.mark2003-01-041-1/+3
| | | | | | | | | | | * java/io/natFileDescriptorPosix.cc (write): Up position. (setLength): Use and set position. (seek): Set position. (getFilePointer): Return position. (read): Up position. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60869 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-07-24 Tom Tromey <tromey@redhat.com>tromey2002-07-241-1/+2
| | | | | | | | | | | | | Tony Kimball <alk@pobox.com> * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55715 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-06 Adam Megacz <adam@xwt.org>megacz2002-03-061-4/+10
| | | | | | | | | | * java/io/FileDescriptor.java: Initialize in/out/err in init(). * java/io/natFileDescriptorWin32.cc (init()): Added function. * java/io/natFileDescriptorPosix.cc (init()): Added function. * java/io/natFileDescriptorEcos.cc (init()): Added function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50378 138bc75d-0d04-0410-961f-82ee72b054a4
* Re-merge with Classpath:tromey2001-08-311-0/+5
| | | | | | | | | | | | * java/util/Comparator (equals): Added. * java/io/PipedWriter.java (write): Changed argument to `int'. * java/io/FileDescriptor.java (FileDescriptor()): New constructor. * java/io/File.java (getAbsoluteFile): Doesn't throw IOException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45337 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/RandomAccessFile.java (seek): Let seek go past end oftromey2001-08-021-2/+6
| | | | | | | | | | | | | | | | | file. (skipBytes): Don't fail if seeking past end of file. * java/io/FileInputStream.java (skip): Don't fail if seeking past end of file. * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc' argument. * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc' argument. * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc' argument. * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44586 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>tromey2000-12-261-7/+6
| | | | | | | | * java/io/FileDescriptor.java: Initialize fd to -1. Remove default constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38485 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright information.tromey2000-03-071-1/+1
| | | | | | | | | * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32387 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.tromey2000-02-111-1/+3
| | | | | | | | | | | | * java/io/FileDescriptor.java (EXCL): New static field. * java/io/File.java (tmpdir): New static field. (createTempFile): New method. (nextValue): New method. * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir property. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31922 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright to reflect Cygnus purchase.tromey2000-01-191-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31504 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-06-10 Warren Levy <warrenl@cygnus.com>warrenl1999-06-101-2/+2
| | | | | | | | | | | | | * java/io/FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instead of IOException. (open): ditto. * java/io/FileInputStream.java (FileInputStream): Doesn't throw IOException. * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo in static field name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27473 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisiontromey1999-04-071-0/+87
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26263 138bc75d-0d04-0410-961f-82ee72b054a4