Tom Tromey
0148e1ee90
natFileDescriptorPosix.cc (setLength): Handle case where ftruncate is missing.
...
* java/io/natFileDescriptorPosix.cc (setLength): Handle case where
ftruncate is missing.
* configure, include/config.h.in: Rebuilt.
* acconfig.h (HAVE_FTRUNCATE): Mention.
* configure.in: Check for ftruncate.
From-SVN: r56658
2002-08-29 18:05:15 +00:00
Jesse Rosenstock
03496eb121
RandomAccessFile.java (skipBytes): Return number of bytes skipped.
...
2002-08-13 Jesse Rosenstock <jmr@fulcrummicro.com>
* java/io/RandomAccessFile.java (skipBytes): Return number of
bytes skipped.
From-SVN: r56265
2002-08-13 23:10:11 +00:00
Tom Tromey
8a7f132d3d
natFileDescriptorPosix.cc: Don't include sys/socket.h or fcntl.h.
...
* java/io/natFileDescriptorPosix.cc: Don't include sys/socket.h or
fcntl.h.
From-SVN: r55780
2002-07-26 18:33:44 +00:00
Tom Tromey
ce05139c56
natFileDescriptorWin32.cc (setLength): New method.
...
2002-07-24 Tom Tromey <tromey@redhat.com>
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.
Co-Authored-By: Tony Kimball <alk@pobox.com>
From-SVN: r55715
2002-07-24 17:48:41 +00:00
Mark Wielaard
5526ddf6fd
[multiple changes]
...
2002-07-24 Mark Wielaard <mark@klomp.org>
* java/lang/reflect/natField.cc (setAddr): Check isAccessible().
* java/io/ObjectInputStream.java (setBooleanField): Before setting
field call setAccessible(true).
(setByteField): Likewise.
(setCharField): Likewise.
(setDoubleField): Likewise.
(setFloatField): Likewise.
(setIntField): Likewise.
(setLongField): Likewise.
(setShortField): Likewise.
(setObjectField): Likewise.
2002-07-24 Tom Tromey <tromey@redhat.com>
* java/io/ObjectInputStream.java (readObject) [TC_ARRAY]: Don't
use toString() to format array element.
From-SVN: r55711
2002-07-24 16:05:34 +00:00
Mark Wielaard
00e0a9e83d
StreamTokenizer.java (pushBack): Update documentation.
...
* java/io/StreamTokenizer.java (pushBack): Update documentation.
(whitespaceChars): call resetChar().
From-SVN: r55496
2002-07-16 21:08:25 +00:00
Tom Tromey
fb3bea1d6c
* java/io/LineNumberInputStream.java: Merged with Classpath.
...
From-SVN: r54691
2002-06-17 03:52:24 +00:00
Tom Tromey
34442f32a2
BufferedOutputStream.java: Re-merged with Classpath.
...
* java/io/BufferedOutputStream.java: Re-merged with Classpath.
* java/io/CharConversionException.java: Likewise.
* java/io/EOFException.java: Likewise.
* java/io/FileNotFoundException.java: Likewise.
* java/io/IOException.java: Likewise.
* java/io/InterruptedIOException.java: Likewise.
* java/io/InvalidClassException.java: Likewise.
* java/io/InvalidObjectException.java: Likewise.
* java/io/NotActiveException.java: Likewise.
* java/io/NotSerializableException.java: Likewise.
* java/io/ObjectStreamException.java: Likewise.
* java/io/ObjectStreamConstants.java: Likewise.
* java/io/OptionalDataException.java: Likewise.
* java/io/PipedInputStream.java: Likewise.
* java/io/PushbackInputStream.java: Likewise.
* java/io/StreamCorruptedException.java: Likewise.
* java/io/SyncFailedException.java: Likewise.
* java/io/UTFDataFormatException.java: Likewise.
* java/io/UnsupportedEncodingException.java: Likewise.
* java/io/WriteAbortedException.java: Likewise.
From-SVN: r54655
2002-06-15 18:59:15 +00:00
Tom Tromey
6e32abbfc2
re PR libgcj/6652 (new java.io.File("").getCanonicalFile() throws exception)
...
* java/io/natFilePosix.cc (getCanonicalPath): Treat "" like ".".
Fixes PR libgcj/6652.
From-SVN: r54558
2002-06-12 17:01:02 +00:00
Adam Megacz
28038fe12f
natFileDescriptorWin32.cc (open): Disable Win32 file locking, just like the Sun JVM does.
...
2002-06-06 Adam Megacz <adam@xwt.org>
* java/io/natFileDescriptorWin32.cc (open): Disable Win32 file
locking, just like the Sun JVM does.
From-SVN: r54322
2002-06-06 20:39:37 +00:00
Tom Tromey
479060323b
re PR libgcj/6301 (gij -jar does not work)
...
* java/io/BufferedReader.java (fill): Handle case where markPos
point to ignored \n. Fixes PR libgcj/6301.
From-SVN: r52982
2002-04-30 23:55:57 +00:00
Adam King
f81c23cdf5
natFileDescriptorWin32.cc (open): Move file pointer to end of file in APPEND mode.
...
2002-04-29 Adam King <aking@dreammechanics.com>
* java/io/natFileDescriptorWin32.cc (open): Move file pointer to end
of file in APPEND mode.
From-SVN: r52869
2002-04-29 04:54:50 +01:00
Adam King
b7403f10f2
File.java (normalizePath): Add Win32 support for auto conversion of a '/' path separator to Win32's '\'...
...
* java/io/File.java (normalizePath): Add Win32 support for auto
conversion of a '/' path separator to Win32's '\' separator.
From-SVN: r52447
2002-04-18 00:02:33 +01:00
Adam King
6344da6f57
natFileWin32.cc (performList): Return the correct array type.
...
2002-04-16 Adam King <aking@dreammechanics.com>
Tom Tromey <tromey@redhat.com>
* java/io/natFileWin32.cc (performList): Return the correct array
type. Don't duplicate the creation of a File since it's already
done earlier in the method and the existing code would cause a
ArrayStoreException. Don't use fixed-size array.
(_access, _stat, attr, getCanonicalPath, performMkdir,
performRenameTo): Don't use fixed-size array.
(getCanonicalPath): Use throw, not _Jv_Throw.
Co-Authored-By: Tom Tromey <tromey@redhat.com>
From-SVN: r52369
2002-04-16 15:37:39 +00:00
Bryce McKinlay
8cf29a474f
Based on patch from Intel's ORP team:
...
* java/io/PushbackInputStream.java (available): Calculate correct
number of bytes in buffer.
(read): Remove redundant bound check. Return bytes from both the
buffer and the stream.
From-SVN: r51296
2002-03-25 02:28:22 +00:00
Bryce McKinlay
acf9549ef9
FileInputStream.java (skip): Call fd.getFilePointer() and calculate correct number of bytes skipped.
...
* java/io/FileInputStream.java (skip): Call fd.getFilePointer() and
calculate correct number of bytes skipped.
From-SVN: r51293
2002-03-25 02:01:29 +00:00
Bryce McKinlay
e89268b691
* java/io/PushbackReader.java: Reformat.
...
From-SVN: r51291
2002-03-25 01:13:20 +00:00
Tom Tromey
0c1fcb02b1
Win32Process.java: Added comment.
...
* java/lang/Win32Process.java: Added comment.
* include/posix.h (_Jv_platform_close_on_exec): New function.
Include fcntl.h.
* include/win32.h (_Jv_platform_close_on_exec): New function.
* java/net/natPlainSocketImpl.cc (create): Set close-on-exec
flag.
(accept): Likewise.
* java/net/natPlainDatagramSocketImpl.cc (create): Set
close-on-exec flag.
* java/io/natFileDescriptorPosix.cc (open): Set close-on-exec
flag.
From-SVN: r50536
2002-03-10 17:59:23 +00:00
Adam Megacz
828c1ddccc
natFileDescriptorWin32.cc (read): Return -1 if zero bytes read and no failure code returned.
...
2002-03-09 Adam Megacz <adam@xwt.org>
* java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
bytes read and no failure code returned.
From-SVN: r50519
2002-03-10 03:34:27 +00:00
Tom Tromey
51532731d1
natFileDescriptorEcos.cc (init): Don't use GetStdHandle.
...
* java/io/natFileDescriptorEcos.cc (init): Don't use
GetStdHandle.
* java/io/natFileDescriptorPosix.cc (valid): Don't call stat if FD
is negative.
(init): Don't use GetStdHandle.
From-SVN: r50383
2002-03-06 23:23:34 +00:00
Adam Megacz
348c9efcd3
FileDescriptor.java: Initialize in/out/err in init().
...
2002-03-06 Adam Megacz <adam@xwt.org>
* 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.
From-SVN: r50378
2002-03-06 22:37:26 +00:00
Adam Megacz
8a434a3691
natFilePosix.cc: Copied this from natFile.cc.
...
2002-02-12 Adam Megacz <adam@xwt.org>
* java/io/natFilePosix.cc: Copied this from natFile.cc.
* java/io/natFile.cc: Removed from repository.
* configure.in: Added AC_LINK_FILES for natFile${PLATFORM}.
From-SVN: r49700
2002-02-12 05:52:33 +00:00
Adam Megacz
30529b03fd
natFileWin32.cc, [...]: Added #undef STRICT to make windows.h and java/lang/reflect/Modifier.h cooperate.
...
2002-02-11 Adam Megacz <adam@xwt.org>
* java/io/natFileWin32.cc, java/io/natFileDescriptorWin32.cc:
Added #undef STRICT to make windows.h and
java/lang/reflect/Modifier.h cooperate.
From-SVN: r49692
2002-02-12 02:17:21 +00:00
Adam Megacz
27fa520dc7
natFileWin32.cc: Created a placeholder class with lots of FIXMEs.
...
2002-02-11 Adam Megacz <adam@xwt.org>
* java/io/natFileWin32.cc: Created a placeholder class with lots
of FIXMEs.
From-SVN: r49691
2002-02-12 01:54:18 +00:00
Tom Tromey
6478d7c9c1
natFile.cc (_access): Use __builtin_alloca.
...
* java/io/natFile.cc (_access): Use __builtin_alloca.
(_stat): Likewise.
(attr): Likewise.
(getCanonicalPath): Likewise.
(performList): Likewise.
(performMkdir): Likewise.
(performSetReadOnly): Likewise.
(performRenameTo): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(performDelete): Likewise.
From-SVN: r49607
2002-02-08 04:48:03 +00:00
Tom Tromey
85ea93b38f
natThrowable.cc: Updated copyright.
...
* java/lang/natThrowable.cc: Updated copyright.
* java/io/natFileWin32.cc: Updated copyright.
* java/io/natFileDescriptorWin32.cc: Updated copyright.
* win32-threads.cc: Updated copyright.
* name-finder.cc: Updated copyright.
* include/name-finder.h: Updated copyright.
From-SVN: r49586
2002-02-07 19:26:06 +00:00
Tom Tromey
fc7563ecb0
natFile.cc (_access): Don't stack-allocate buffer.
...
* java/io/natFile.cc (_access): Don't stack-allocate buffer.
Size buffer based on real size of string.
(_stat): Likewise.
(attr): Likewise.
(getCanonicalPath): Likewise.
(performList): Likewise.
(performMkdir): Likewise.
(performSetReadOnly): Likewise.
(unixroot): Removed.
(performRenameTo): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(performDelete): Likewise.
(performListRoots): Always return new array.
From-SVN: r49584
2002-02-07 19:18:35 +00:00
Anthony Green
b5ee195f1e
embedded updates
...
From-SVN: r49562
2002-02-07 03:24:12 +00:00
Tom Tromey
6c69cbcc69
* java/io/natFile.cc: Removed old "FIXME" comments.
...
From-SVN: r49434
2002-02-02 07:45:50 +00:00
Mark Wielaard
92aaa24628
Add license clarification.
...
From-SVN: r49104
2002-01-22 22:40:42 +00:00
Tom Tromey
e3109d4c17
ObjectInputStream.java (enableResolveObject): Use correct security check.
...
* java/io/ObjectInputStream.java (enableResolveObject): Use
correct security check.
* java/io/ObjectOutputStream.java (enableReplaceObject): Use
correct security check.
From-SVN: r48256
2001-12-21 22:51:41 +00:00
Bryce McKinlay
1e2bba3565
DataOutputStream (write (byte[], int, int)): Update "written" correctly.
...
* java/io/DataOutputStream (write (byte[], int, int)): Update
"written" correctly. Fix from the ORP team.
From-SVN: r48050
2001-12-16 00:14:57 +00:00
Tom Tromey
91c6dda6c7
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (java/lang/reflect/Method.h): ObjectInputStream now
a friend.
* java/lang/natClass.cc (getSignature): Only look at elements of
non-null parameters.
(getPrivateMethod): Removed old FIXME comment.
* java/io/natObjectInputStream.cc (allocateObject): Removed old
FIXME comment.
(callConstructor): Simply use `NULL' for value of parameters.
(ObjectClass): Removed.
(ClassClass): Likewise.
* java/io/ObjectInputStream.java (readObject): Fixed typo.
From-SVN: r47800
2001-12-09 00:17:07 +00:00
Joseph Myers
18e1f2bd67
HACKING, [...]: Fix spelling errors.
...
* HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
java/io/CharConversionException.java,
java/io/PipedInputStream.java, java/io/PipedReader.java,
java/io/PrintWriter.java, java/io/WriteAbortedException.java,
java/io/natFileWin32.cc, java/lang/Class.h,
java/lang/natClassLoader.cc, java/lang/natObject.cc,
java/lang/Package.java, java/net/BindException.java,
java/net/ConnectException.java, java/net/ProtocolException.java,
java/net/SocketException.java,
java/net/UnknownServiceException.java,
java/security/cert/X509Certificate.java,
java/security/interfaces/DSAKey.java,
java/security/SecureRandom.java, java/security/SignedObject.java,
java/sql/DatabaseMetaData.java,
java/text/DecimalFormatSymbols.java,
java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
java/util/jar/JarInputStream.java,
java/util/jar/JarOutputStream.java, java/util/Calendar.java,
java/util/Collections.java, java/util/GregorianCalendar.java,
java/util/HashMap.java, java/util/List.java,
java/util/Properties.java, java/util/Timer.java,
java/util/Vector.java, java/util/WeakHashMap.java,
javax/naming/NamingException.java,
testsuite/libjava.lang/Thread_Wait.java,
org/xml/sax/helpers/DefaultHandler.java,
org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
spelling errors.
* configure: Regenerate.
From-SVN: r46665
2001-10-31 00:48:17 +00:00
Tom Tromey
28a8851e65
* java/io/BufferedWriter.java (localFlush): Don't synchronize.
...
From-SVN: r46435
2001-10-23 16:18:44 +00:00
Bryce McKinlay
e042de67c4
BufferedWriter (write (String, int, int)): Remove redundant bounds checks.
...
* java/io/BufferedWriter (write (String, int, int)): Remove
redundant bounds checks.
(write (char[], int, int)): Likewise.
From-SVN: r46426
2001-10-23 07:04:58 +01:00
Tom Tromey
ac569f305c
BufferedWriter.java (write(String,int,int)): Correctly check bounds.
...
* java/io/BufferedWriter.java (write(String,int,int)): Correctly
check bounds.
From-SVN: r46338
2001-10-18 23:43:59 +00:00
Tom Tromey
d281f2a236
re PR libgcj/4481 (java.io.File.getParent not working properly)
...
Fix for PR libgcj/4481:
* java/io/File.java (getParent): Handle case where path is "/".
(normalizePath): Use correct string for UNC leader.
From-SVN: r46093
2001-10-08 20:42:13 +00:00
Mark Wielaard
11064ef947
* java/io/BufferedInputStream.java: Merge with Classpath
...
From-SVN: r46086
2001-10-08 18:53:49 +00:00
Mark Wielaard
ce0d5fce2b
SequenceInputStream.java: Merge with Classpath
...
* java/io/SequenceInputStream.java: Merge with Classpath
* java/io/StringBufferInputStream.java: Ditto
* java/util/Collections.java: Remerge with Classpath
From-SVN: r46005
2001-10-04 05:34:47 +00:00
Mark Wielaard
477946a63d
FileWriter.java: Merge with Classpath.
...
* java/io/FileWriter.java: Merge with Classpath.
* java/io/FilterInputStream.java: Ditto.
(mark): no longer synchronized
(reset): Likewise
* java/io/FilterOutputStream.java: Merge with Classpath.
* java/io/FilterReader.java: Ditto.
(mark): no longer synchronized
(reset): Likewise
* java/io/FilterWriter.java: Merge with Classpath.
* java/io/Writer.java: Ditto.
* java/lang/Compiler.java: Ditto.
* java/lang/Process.java: Ditto.
* java/lang/Void.java: Ditto.
* java/net/ContentHandler.java: Ditto.
* java/net/DatagramPacket.java: Ditto.
* java/net/MulticastSocket.java: Merge comments with Classpath.
From-SVN: r45930
2001-10-01 18:24:54 +00:00
Mark Wielaard
cfcdbe5480
DataInput.java: Merge with Classpath.
...
* java/io/DataInput.java: Merge with Classpath.
* java/io/DataOutput.java: Idem.
* java/io/FilenameFilter.java: Idem.
* java/io/Serializable.java: Idem.
* java/lang/Cloneable.java: Idem.
* java/lang/Comparable.java: Idem.
* java/lang/Runnable.java: Idem.
* java/lang/reflect/Member.java: Idem.
* java/net/ContentHandlerFactory.java: Idem.
* java/net/FileNameMap.java: Idem.
* java/net/SocketImplFactory.java: Idem.
* java/net/SocketOptions.java: Idem.
* java/net/URLStreamHandlerFactory.java: Idem.
From-SVN: r45910
2001-09-30 18:04:38 +00:00
Tom Tromey
03219cb5d9
Configuration.java.in (INIT_LOAD_LIBRARY): New constant.
...
* gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
constant.
* java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
Re-merged with Classpath.
From-SVN: r45835
2001-09-27 00:24:52 +00:00
Tom Tromey
1685382e99
DataInputStream.java (readChar): Use readFully.
...
* java/io/DataInputStream.java (readChar): Use readFully.
(readInt): Likewise.
(readLong): Likewise.
(readShort): Likewise.
(readUnsignedShort): Likewise.
From-SVN: r45834
2001-09-26 22:49:02 +00:00
Bryce McKinlay
f449e8853b
posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of blocking IO via pthread_kill().
...
* posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
blocking IO via pthread_kill().
* java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
interrupted status flag only if ::write returned an error.
(write (jbyteArray, jint, jint): Likewise.
(read (jint)): Likewise.
(read (jbyteArray, jint, jint): Likewise.
From-SVN: r45719
2001-09-21 05:23:31 +01:00
Bryce McKinlay
7364d5f851
File.java (normalizePath): Use equals() not '==' for string comparison.
...
* java/io/File.java (normalizePath): Use equals() not '==' for string
comparison.
From-SVN: r45583
2001-09-14 00:18:07 +01:00
Tom Tromey
45571704cf
* java/io/File.java (toURL): Use getAbsolutePath and `file://'.
...
From-SVN: r45556
2001-09-12 04:28:32 +00:00
Tom Tromey
7eee682ba8
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added
UnsupportedClassVersionError.
* java/lang/UnsupportedClassVersionError.java: New file from
Classpath.
* java/io/CharConversionException.java, java/io/EOFException.java,
java/io/FileNotFoundException.java, java/io/IOException.java,
java/io/InterruptedIOException.java,
java/io/ObjectStreamException.java,
java/io/OptionalDataException.java,
java/io/StreamCorruptedException.java,
java/io/SyncFailedException.java,
java/io/UTFDataFormatException.java,
java/io/UnsupportedEncodingException.java,
java/lang/AbstractMethodError.java,
java/lang/ArithmeticException.java,
java/lang/ArrayIndexOutOfBoundsException.java,
java/lang/ArrayStoreException.java,
java/lang/ClassCastException.java,
java/lang/ClassCircularityError.java,
java/lang/ClassFormatError.java,
java/lang/CloneNotSupportedException.java, java/lang/Error.java,
java/lang/Exception.java,
java/lang/ExceptionInInitializerError.java,
java/lang/IllegalAccessError.java,
java/lang/IllegalAccessException.java,
java/lang/IllegalArgumentException.java,
java/lang/IllegalMonitorStateException.java,
java/lang/IllegalStateException.java,
java/lang/IllegalThreadStateException.java,
java/lang/IncompatibleClassChangeError.java,
java/lang/IndexOutOfBoundsException.java,
java/lang/InstantiationError.java,
java/lang/InstantiationException.java,
java/lang/InternalError.java, java/lang/InterruptedException.java,
java/lang/LinkageError.java,
java/lang/NegativeArraySizeException.java,
java/lang/NoClassDefFoundError.java,
java/lang/NoSuchFieldError.java,
java/lang/NoSuchFieldException.java,
java/lang/NoSuchMethodError.java,
java/lang/NoSuchMethodException.java,
java/lang/NullPointerException.java,
java/lang/NumberFormatException.java,
java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
java/lang/SecurityException.java,
java/lang/StackOverflowError.java,
java/lang/StringIndexOutOfBoundsException.java,
java/lang/ThreadDeath.java, java/lang/UnknownError.java,
java/lang/UnsatisfiedLinkError.java,
java/lang/UnsupportedOperationException.java,
java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
java/lang/reflect/InvocationTargetException.java,
java/net/BindException.java, java/net/ConnectException.java,
java/net/MalformedURLException.java,
java/net/NoRouteToHostException.java,
java/net/ProtocolException.java, java/net/SocketException.java,
java/net/UnknownHostException.java,
java/net/UnknownServiceException.java,
java/text/ParseException.java: Copied from Classpath, thanks to
Mark Wielaard who did the merge.
* java/lang/System.java (getProperty): Use single argument form of
SecurityManager.checkPropertyAccess.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added VMSecurityManager.
* java/lang/VMSecurityManager.java: New file.
* java/lang/SecurityManager.java: Merged with Classpath.
From-SVN: r45353
2001-09-02 06:18:49 +00:00
Tom Tromey
788d7b942c
BufferedReader.java, [...]: Re-merged with Classpath.
...
* java/io/BufferedReader.java, java/io/ObjectInput.java,
java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
Re-merged with Classpath.
From-SVN: r45342
2001-09-01 00:59:09 +00:00
Tom Tromey
4504a65546
Re-merge with Classpath:
...
* 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.
From-SVN: r45337
2001-08-31 22:31:40 +00:00