Matthias Klose
a1906e8bbf
Import GNU Classpath (20121202).
...
2012-12-19 Matthias Klose <doko@ubuntu.com>
Import GNU Classpath (20121202).
* Regenerate class and header files.
* Regenerate auto* files.
* sources.am, gcj/javaprims.h: Regenerate.
* gnu/java/nio/FileLockImpl.java (close): New override.
From-SVN: r194618
2012-12-19 17:03:15 +00:00
Matthias Klose
e1ab4b422f
re PR libgcj/42676 (javah doesn't generate the header files as checked in in the archive)
...
2010-03-13 Matthias Klose <doko@ubuntu.com>
PR libgcj/42676
* Regenerate .h files for anonymous inner classes.
From-SVN: r157422
2010-03-13 14:27:27 +00:00
Matthias Klose
e0441a5bfb
Import GNU Classpath (classpath-0_97_2-release).
...
libjava/
2008-06-28 Matthias Klose <doko@ubuntu.com>
Import GNU Classpath (classpath-0_97_2-release).
* Regenerate class and header files.
* Regenerate auto* files.
* gcj/javaprims.h: Define jobjectRefType.
* jni.cc (_Jv_JNI_GetObjectRefType): New (stub only).
(_Jv_JNIFunctions): Initialize GetObjectRefType.
* gnu/classpath/jdwp/VMVirtualMachine.java,
java/security/VMSecureRandom.java: Merge from classpath.
* HACKING: Fix typo.
* ChangeLog-2007: New file.
* configure.ac: Set JAVAC, pass --disable-regen-headers to classpath.
libjava/classpath/
2008-06-28 Matthias Klose <doko@ubuntu.com>
* m4/ac_prog_javac.m4: Disable check for JAVAC, when
not configured with --enable-java-maintainer-mode.
* aclocal.m4, configure: Regenerate.
* native/jni/gstreamer-peer/Makefile.am: Do not link with
libclasspathnative.
* native/jni/gstreamer-peer/Makefile.in: Regenerate.
* tools/Makefile.am, lib/Makefile.am: Use JAVAC for setting
JCOMPILER, drop flags not understood by gcj.
From-SVN: r137223
2008-06-28 13:29:13 +00:00
Matthias Klose
e1bea0c068
libjava/classpath/ChangeLog.gcj:
...
2007-05-31 Matthias Klose <doko@ubuntu.com>
* javax/management/NotificationBroadcasterSupport.java
(getNotificationInfo): Add cast.
* native/jni/qt-peer/Makefile.am (AM_CXXFLAGS): Add libstdc++ include
directories.
* native/jni/qt-peer/Makefile.in: Regenerate.
libjava/ChangeLog:
2007-06-03 Matthias Klose <doko@ubuntu.com>
* java/io/natFileWin32.cc (setFilePermissions): New (stub only).
_access: Handle EXEC query, stub only.
2007-06-03 Matthias Klose <doko@ubuntu.com>
Merged from classpath:
* gnu/java/nio/SelectorProviderImpl.java: Whitespace merge.
* java/lang/System.java(inheritedChannel): New.
* java/lang/Character.java: Remove stray`;'.
* java/net/MulticastSocket.java: Merged.
* java/text/DateFormatSymbols.java(getInstance): New, comment updates.
* java/text/Collator.java(getInstance): Merged.
* java/util/Calendar.java: New attributes ALL_STYLES, SHORT, LONG.
getDisplayName, getDisplayNames: New.
* java/util/logging/Logger.java: Merged.
* Regenerate .class and .h files.
2007-06-03 Matthias Klose <doko@ubuntu.com>
* java/io/File.java: Merge with classpath-0.95, new method
setFilePermissions, new attribute EXEC.
* java/io/natFilePosix.cc (setFilePermissions): New.
_access: Handle EXEC query.
* classpath/lib/java/io/File.class, java/io/File.h: Regenerate.
2007-06-03 Matthias Klose <doko@ubuntu.com>
Imported GNU Classpath 0.95.
* classpath/Makefile.in,
classpath/native/jni/midi-dssi/Makefile.in,
classpath/native/jni/classpath/Makefile.in,
classpath/native/jni/Makefile.in,
classpath/native/jni/gconf-peer/Makefile.in,
classpath/native/jni/java-io/Makefile.in,
classpath/native/jni/native-lib/Makefile.in,
classpath/native/jni/java-util/Makefile.in,
classpath/native/jni/midi-alsa/Makefile.in,
classpath/native/jni/java-lang/Makefile.in,
classpath/native/jni/java-nio/Makefile.in,
classpath/native/jni/java-net/Makefile.in,
classpath/native/jni/xmlj/Makefile.in,
classpath/native/jni/qt-peer/Makefile.in,
classpath/native/jni/gtk-peer/Makefile.in,
classpath/native/Makefile.in, classpath/native/jawt/Makefile.in,
classpath/native/fdlibm/Makefile.in,
classpath/native/plugin/Makefile.in,
classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
classpath/tools/Makefile.in, classpath/doc/Makefile.in,
classpath/doc/api/Makefile.in, classpath/lib/Makefile.in,
classpath/external/Makefile.in, classpath/external/jsr166/Makefile.in,
classpath/external/sax/Makefile.in,
classpath/external/w3c_dom/Makefile.in,
classpath/external/relaxngDatatype/Makefile.in,
classpath/include/Makefile.in,
classpath/examples/Makefile.in: Regenerate.
* classpath/config.guess, classpath/config.sub,
classpath/ltmain.sh : Update.
* classpath/configure, classpath/depcomp, classpath/missing,
classpath/aclocal.m4, classpath/install-sh: Regenerate.
* gnu/classpath/Configuration.java (CLASSPATH_VERSION): Now 0.95.
* sources.am: Regenerate.
* Makefile.in: Regenerate.
* Update the .class files and generated CNI header files, add new
.class and generated CNI header files.
* Remove generated files for removed java source files:
classpath/gnu/java/net/BASE64.java,
classpath/gnu/java/security/util/Base64.java,
classpath/gnu/java/awt/peer/gtk/GThreadMutex.java,
classpath/gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
classpath/gnu/java/awt/font/autofit/Scaler.java,
classpath/gnu/classpath/jdwp/util/Value.java,
classpath/gnu/javax/net/ssl/Base64.java.
* Remove empty directories.
* Makefile.am(nat_source_files): Add natVMOperatingSystemMXBeanImpl.cc.
* java/lang/Class.java(setAccessible): Merge from classpath.
* java/util/Locale.java: Remove.
* gnu/java/lang/management/VMOperatingSystemMXBeanImpl.java,
gnu/java/lang/management/natVMOperatingSystemMXBeanImpl.cc: New.
* gcj/javaprims.h: Update class declarations.
* scripts/classes.pl: Update usage.
* HACKING: Mention to build all peers.
From-SVN: r125302
2007-06-03 23:18:43 +00:00
Tom Tromey
8854e14c61
natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short.
...
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157
* gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend
file, when writing, if it is too short.
From-SVN: r123447
2007-04-03 01:05:50 +00:00
Tom Tromey
c44cc446f7
natPlainSocketImplPosix.cc (create): Return if already created.
...
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406
* gnu/java/net/natPlainSocketImplPosix.cc (create): Return if
already created.
* gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case
where localport is -1.
(create): Now public.
* gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call
'create' on the socket.
From-SVN: r123440
2007-04-02 22:10:41 +00:00
David Daney
46ecc2bc5c
re PR libgcj/31228 (Race condition between setting close-on-exec and Runtime.exec())
...
PR libgcj/31228
* configure.ac: Add checks for getrlimit and sys/resource.h.
* include/posix.h (_Jv_platform_close_on_exec): Remove.
* include/config.h.in: Regenerate.
* configure: Regenerate.
* gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
_Jv_platform_close_on_exec;
* gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
(accept): Likewise.
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
* java/lang/natPosixProcess.cc: Include sys/resource.h.
(nativeSpawn): Close all file descriptors. Don't set FD_CLOEXEC on
pipes.
From-SVN: r123138
2007-03-23 00:06:41 +00:00
Michele Sandri
94468b1ceb
2007-01-28 Michele Sandri <gpointorama@gmail.com>
...
* gnu/java/nio/channels/natFileChannelWin32.cc
(lock): Implemented.
(unlock): Implemented.
From-SVN: r121265
2007-01-28 18:55:36 +00:00
Gary Benson
463c03f1bc
natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc.
...
2007-01-18 Gary Benson <gbenson@redhat.com>
* gnu/java/nio/natVMPipeEcos.cc:
Renamed from gnu/java/nio/natPipeImplEcos.cc.
* gnu/java/nio/natVMPipePosix.cc:
Renamed from gnu/java/nio/natPipeImplPosix.cc.
* gnu/java/nio/natVMPipeWin32.cc:
Renamed from gnu/java/nio/natPipeImplWin32.cc.
* gnu/java/nio/natVMSelectorEcos.cc:
Renamed from gnu/java/nio/natSelectorImplEcos.cc.
* gnu/java/nio/natVMSelectorPosix.cc:
Renamed from gnu/java/nio/natSelectorImplPosix.cc.
* gnu/java/nio/natVMSelectorWin32.cc:
Renamed from gnu/java/nio/natSelectorImplWin32.cc.
* java/io/natVMObjectInputStream.cc:
Renamed from java/io/natObjectInputStream.cc.
* java/lang/natVMDouble.cc:
Renamed from java/lang/natDouble.cc.
* java/lang/natVMFloat.cc:
Renamed from java/lang/natFloat.cc.
* Makefile.am, configure.ac: Reflect the above.
* Makefile.in, configure: Rebuilt.
From-SVN: r120895
2007-01-18 11:32:40 +00:00
Tom Tromey
97b8365caf
Merged gcj-eclipse branch to trunk.
...
From-SVN: r120621
2007-01-09 19:58:05 +00:00
Mark Wielaard
ac1ed908de
Imported GNU Classpath 0.92
...
2006-08-14 Mark Wielaard <mark@klomp.org>
Imported GNU Classpath 0.92
* HACKING: Add more importing hints. Update automake version
requirement.
* configure.ac (gconf-peer): New enable AC argument.
Add --disable-gconf-peer and --enable-default-preferences-peer
to classpath configure when gconf is disabled.
* scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
gnu/java/awt/dnd/peer/gtk to bc. Classify
gnu/java/security/Configuration.java as generated source file.
* gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
gnu/java/lang/management/VMThreadMXBeanImpl.java,
gnu/java/lang/management/VMMemoryMXBeanImpl.java,
gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
classes.
* java/lang/management/VMManagementFactory.java: Likewise.
* java/net/VMURLConnection.java: Likewise.
* gnu/java/nio/VMChannel.java: Likewise.
* java/lang/Thread.java (getState): Add stub implementation.
* java/lang/Class.java (isEnum): Likewise.
* java/lang/Class.h (isEnum): Likewise.
* gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.
* javax/naming/spi/NamingManager.java: New override for StackWalker
functionality.
* configure, sources.am, Makefile.in, gcj/Makefile.in,
include/Makefile.in, testsuite/Makefile.in: Regenerated.
From-SVN: r116139
2006-08-14 23:12:35 +00:00
Tom Tromey
143145daa4
sources.am, [...]: Rebuilt.
...
* 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
2006-05-13 02:16:22 +00:00
Tom Tromey
37e7dc121d
natFileChannelPosix.cc (write): Properly handle EINTR.
...
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
handle EINTR.
From-SVN: r113082
2006-04-19 17:01:53 +00:00
Tom Tromey
8479d5f123
[multiple changes]
...
2005-12-26 Anthony Green <green@redhat.com>
* gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount
of data to read (dst.remaining()).
* gnu/java/nio/DatagramChannelImpl.java (receive): Ditto.
2005-11-11 Mark Wielaard <mark@klomp.org>
Reported by john.zigman@anu.edu.au as bug #24608 .
* gnu/java/nio/SocketChannelImpl.java (read): Put readBytes in
destination ByteBuffer when it doesn't have an array instead of len
bytes.
From-SVN: r109422
2006-01-06 18:57:36 +00:00
David Daney
8ceb88d4cd
PR libgcj/9715, PR libgcj/19132:
...
* java/nio/charset/Charset.java (charsetForName): Try default
provider first.
(availableCharsets): Re-merged.
(providers2): Likewise.
(defaultCharset): Likewise.
* sources.am, Makefile.in: Rebuilt.
* gnu/java/nio/charset/Provider.java: Removed.
* java/io/OutputStreamWriter.java
(OutputStreamWriter(OutputStream,Charset)): New constructor.
(OutputStreamWriter(OutputStream,CharsetEncoder)): Likewise.
* java/io/InputStreamReader.java
(InputStreamReader(InputStream,CharsetDecoder)): New constructor.
(InputStreamReader(InputStream,Charset)): Likewise.
* gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try a
BytesToCharsetAdaptor.
* gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try a
CharsetToBytesAdaptor.
* gnu/gcj/convert/CharsetToBytesAdaptor.java: New file.
* gnu/gcj/convert/BytesToCharsetAdaptor.java: New file.
* mauve-libgcj: Remove getEncoding exclusion.
Co-Authored-By: Tom Tromey <tromey@redhat.com>
From-SVN: r109294
2006-01-03 22:58:31 +00:00
Tom Tromey
b0fa81eea9
Major merge with Classpath.
...
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.
From-SVN: r102082
2005-07-16 01:27:14 +00:00
Kelley Cook
917b04f492
Update FSF address
...
From-SVN: r101453
2005-06-30 03:22:09 +00:00
Bryce McKinlay
2a2ea37674
re PR libgcj/21821 (MAXPATHLEN usage in libjava)
...
2005-05-30 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/21821
* gnu/java/nio/channels/natFileChannelPosix.cc (open): Don't use
MAXPATHLEN. Format exception message using a StringBuffer instead.
From-SVN: r100364
2005-05-30 17:02:38 +01:00
Andrew Overholt
f525d7a75f
re PR libgcj/21372 (FileChannel.tryLock() return value incorrect)
...
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-05-03 22:38:17 +00:00
Dalibor Topic
b61ae8b261
2005-04-29 Dalibor Topic <robilad@kaffe.org>
...
* 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-29 18:47:42 +00:00
Luca Barbieri
31f0451e7e
re PR libgcj/21136 ([4.0 only] tryLock waits for the lock, and lock doesn't)
...
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-04-26 21:49:23 +00:00
Michael Koch
fb227d5c24
Buffers.java, [...]: Reorganized import statements.
...
2005-04-18 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/Buffers.java,
gnu/java/awt/image/ImageDecoder.java,
gnu/java/awt/image/XBMDecoder.java,
gnu/java/awt/peer/ClasspathFontPeer.java,
gnu/java/net/CRLFInputStream.java,
gnu/java/net/EmptyX509TrustManager.java,
gnu/java/net/LineInputStream.java,
gnu/java/net/protocol/ftp/ActiveModeDTP.java,
gnu/java/net/protocol/ftp/BlockInputStream.java,
gnu/java/net/protocol/ftp/CompressedInputStream.java,
gnu/java/net/protocol/ftp/DTP.java,
gnu/java/net/protocol/ftp/DTPInputStream.java,
gnu/java/net/protocol/ftp/FTPConnection.java,
gnu/java/net/protocol/ftp/FTPURLConnection.java,
gnu/java/net/protocol/ftp/PassiveModeDTP.java,
gnu/java/net/protocol/ftp/StreamInputStream.java,
gnu/java/net/protocol/http/ChunkedInputStream.java,
gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPURLConnection.java,
gnu/java/net/protocol/http/Headers.java,
gnu/java/net/protocol/http/Request.java,
gnu/java/nio/ChannelInputStream.java,
gnu/java/nio/ChannelOutputStream.java,
gnu/java/nio/InputStreamChannel.java,
gnu/java/nio/OutputStreamChannel.java,
gnu/java/nio/SelectorProviderImpl.java,
gnu/java/rmi/RMIMarshalledObjectInputStream.java,
gnu/java/rmi/RMIMarshalledObjectOutputStream.java,
gnu/java/rmi/dgc/DGCImpl.java,
gnu/java/rmi/registry/RegistryImpl.java,
gnu/java/rmi/server/ProtocolConstants.java,
gnu/java/rmi/server/RMIDefaultSocketFactory.java,
gnu/java/rmi/server/RMIIncomingThread.java,
gnu/java/rmi/server/RMIObjectInputStream.java,
gnu/java/rmi/server/RMIObjectOutputStream.java,
gnu/java/rmi/server/RMIVoidValue.java,
gnu/java/rmi/server/UnicastConnectionManager.java,
gnu/java/rmi/server/UnicastRef.java,
gnu/java/rmi/server/UnicastRemoteCall.java,
gnu/java/rmi/server/UnicastRemoteStub.java,
gnu/java/rmi/server/UnicastServerRef.java,
gnu/java/security/OID.java,
gnu/java/security/der/DERReader.java,
gnu/java/security/provider/CollectionCertStoreImpl.java,
gnu/java/security/provider/DSAParameterGenerator.java,
gnu/java/security/provider/DefaultPolicy.java,
gnu/java/security/provider/EncodedKeyFactory.java,
gnu/java/security/provider/GnuDHPublicKey.java,
gnu/java/security/provider/GnuDSAPrivateKey.java,
gnu/java/security/provider/GnuDSAPublicKey.java,
gnu/java/security/provider/GnuRSAPrivateKey.java,
gnu/java/security/provider/GnuRSAPublicKey.java,
gnu/java/security/provider/PKIXCertPathValidatorImpl.java,
gnu/java/security/provider/RSA.java,
gnu/java/security/provider/SHA1PRNG.java,
gnu/java/security/provider/SHA1withRSA.java,
gnu/java/security/provider/X509CertificateFactory.java,
gnu/java/security/x509/GnuPKIExtension.java,
gnu/java/security/x509/X500DistinguishedName.java,
gnu/java/security/x509/X509CRL.java,
gnu/java/security/x509/X509CRLEntry.java,
gnu/java/security/x509/X509CertPath.java,
gnu/java/security/x509/X509CertSelectorImpl.java,
gnu/java/security/x509/X509Certificate.java,
gnu/java/security/x509/ext/AuthorityKeyIdentifier.java,
gnu/java/security/x509/ext/BasicConstraints.java,
gnu/java/security/x509/ext/CRLNumber.java,
gnu/java/security/x509/ext/CertificatePolicies.java,
gnu/java/security/x509/ext/ExtendedKeyUsage.java,
gnu/java/security/x509/ext/Extension.java,
gnu/java/security/x509/ext/GeneralNames.java,
gnu/java/security/x509/ext/IssuerAlternativeNames.java,
gnu/java/security/x509/ext/KeyUsage.java,
gnu/java/security/x509/ext/PolicyConstraint.java,
gnu/java/security/x509/ext/PolicyMappings.java,
gnu/java/security/x509/ext/PrivateKeyUsagePeriod.java,
gnu/java/security/x509/ext/ReasonCode.java,
gnu/java/security/x509/ext/SubjectAlternativeNames.java,
gnu/java/security/x509/ext/SubjectKeyIdentifier.java:
Reorganized import statements.
From-SVN: r98339
2005-04-18 18:40:27 +00:00
Andrew Haley
4fd24a7582
FileChannelImpl.java (smallTransferFrom): New.
...
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-03-10 15:29:15 +00:00
Andreas Tobler
2fdedf0462
dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and spec_case.
...
2005-03-05 Andreas Tobler <a.tobler@schweiz.ch>
* java/lang/dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and
spec_case. Initialize pointer mlo.
* java/lang/strtod.c (_strtod_r): Initialize pointers bb, bd, ds and
delta.
* java/lang/e_asin.c (__ieee754_asin): Initialize variable t.
* java/lang/e_exp.c (__ieee754_exp): Initialize variables hi, lo
and k.
* java/lang/e_rem_pio2.c (__ieee754_rem_pio2): Initialize
uninitialized variable z.
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (mcastGrp): Ifdef
possible unused variables.
* gnu/java/nio/natPipeImplPosix.cc (init): Remove self.
* jawt.c: Include <stdlib.h> to fix implict declaration of malloc.
From-SVN: r95925
2005-03-05 08:47:58 +01:00
Robert Schuster
c34fdf0b7d
ChannelReader: Fixed comments.
...
2005-02-23 Robert Schuster <thebohemian@gmx.net>
* gnu/java/nio/ChannelReader: Fixed comments.
2005-02-23 Robert Schuster <thebohemian@gmx.net>
* java/nio/channels/Channels: Added FIXMEs about
stub method implementation.
(newReader): Implemented.
* gnu/java/nio/ChannelReader: New class.
From-SVN: r95444
2005-02-23 08:26:36 +00:00
Michael Koch
b376ca1ad6
SelectorImpl.java: Reworked import statements.
...
2005-02-19 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SelectorImpl.java:
Reworked import statements.
(register): Removed unused code.
* java/nio/channels/Channels.java: Reformatted.
* java/nio/charset/Charset.java: Likewise.
* java/rmi/server/RemoteObject.java
(serialVersionUID): Made private.
* java/rmi/server/UID.java
(serialVersionUID): Likewise.
From-SVN: r95273
2005-02-19 09:10:39 +00:00
Ito Kazumitsu
7801fed43d
FileChannelImpl.java (write(ByteBuffer)): Move the position of the source 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
2005-02-17 19:51:25 +00:00
Andrew John Hughes
c38e914edb
Cookie.java, [...]: Reworked import statements, fixed modifier order and some little formatting issues.
...
2005-02-17 Andrew John Hughes <gnu_andrew@member.fsf.org>
Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Cookie.java,
gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPDateFormat.java,
gnu/java/net/protocol/http/Request.java,
gnu/java/nio/PipeImpl.java,
gnu/java/rmi/dgc/DGCImpl.java,
gnu/java/rmi/server/ConnectionRunnerPool.java,
gnu/java/rmi/server/UnicastConnectionManager.java,
gnu/java/security/der/DERWriter.java,
gnu/java/security/pkcs/SignerInfo.java,
gnu/java/security/provider/EncodedKeyFactory.java,
gnu/java/security/provider/GnuDHPublicKey.java,
gnu/java/security/provider/GnuDSAPrivateKey.java,
gnu/java/security/provider/GnuDSAPublicKey.java,
gnu/java/security/provider/PKIXCertPathValidatorImpl.java,
gnu/java/security/x509/X500DistinguishedName.java,
gnu/java/security/x509/X509CRL.java,
gnu/java/security/x509/X509CRLEntry.java,
gnu/java/security/x509/X509Certificate.java,
gnu/java/security/x509/ext/AuthorityKeyIdentifier.java,
gnu/java/security/x509/ext/CertificatePolicies.java,
gnu/java/security/x509/ext/PolicyConstraint.java,
gnu/xml/dom/Consumer.java,
gnu/xml/dom/DomCharacterData.java,
gnu/xml/dom/DomDocument.java,
gnu/xml/dom/DomDocumentBuilder.java,
gnu/xml/dom/DomIterator.java,
gnu/xml/dom/DomNode.java,
gnu/xml/dom/DomXPathExpression.java,
gnu/xml/dom/DomXPathResult.java,
gnu/xml/dom/JAXPFactory.java,
gnu/xml/pipeline/CallFilter.java,
gnu/xml/pipeline/DomConsumer.java,
gnu/xml/pipeline/LinkFilter.java,
gnu/xml/pipeline/NSFilter.java,
gnu/xml/pipeline/TeeConsumer.java,
gnu/xml/pipeline/ValidationConsumer.java,
gnu/xml/pipeline/WellFormednessFilter.java,
gnu/xml/pipeline/XIncludeFilter.java,
gnu/xml/pipeline/XsltFilter.java,
gnu/xml/transform/ApplyImportsNode.java,
gnu/xml/transform/Bindings.java,
gnu/xml/transform/DocumentFunction.java,
gnu/xml/transform/FormatNumberFunction.java,
gnu/xml/transform/NodeNumberNode.java,
gnu/xml/transform/NumberNode.java,
gnu/xml/transform/Stylesheet.java,
gnu/xml/transform/SystemPropertyFunction.java,
gnu/xml/transform/Template.java,
gnu/xml/transform/TemplatesImpl.java,
gnu/xml/transform/TransformerImpl.java,
gnu/xml/transform/ValueOfNode.java,
gnu/xml/transform/XSLURIResolver.java,
gnu/xml/util/DoParse.java,
gnu/xml/util/Resolver.java,
gnu/xml/xpath/Expr.java,
gnu/xml/xpath/FunctionCall.java,
gnu/xml/xpath/RelationalExpr.java,
gnu/xml/xpath/Selector.java,
gnu/xml/xpath/XPathParser.java:
Reworked import statements, fixed modifier order and some little
formatting issues.
Co-Authored-By: Michael Koch <konqueror@gmx.de>
From-SVN: r95177
2005-02-17 18:26:34 +00:00
Julian Scheid
cc51f4fb7f
UTF_8.java (decodeLoop): Set inPos to in.position().
...
2005-02-16 Julian Scheid <julian@sektor37.de>
* gnu/java/nio/charset/UTF_8.java (decodeLoop): Set inPos to
in.position().
(encodeLoop): Likewise.
From-SVN: r95125
2005-02-16 23:33:02 +00:00
Robert Schuster
c686e630c3
ISO_8859_1.java, [...]: Fixed canonical names and aliases according to...
...
2005-02-07 Robert Schuster <thebohemian@gmx.net>
* gnu/java/nio/charset/ISO_8859_1.java,
gnu/java/nio/charset/US_ASCII.java,
gnu/java/nio/charset/UTF_16.java,
gnu/java/nio/charset/UTF_16_LE.java,
gnu/java/nio/charset/UTF_16_BE.java,
gnu/java/nio/charset/UTF_8.java: Fixed canonical names
and aliases according to
"http://www.iana.org/assignments/character-sets ",
"http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html "
and "http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL ".
* gnu/java/nio/charset/Provider.java: Made charset lookup
case-insensitive which fixes bug #11740 .
From-SVN: r94711
2005-02-07 20:34:17 +00:00
Michael Koch
11dde1bb18
NIOServerSocket.java: Added email to @author tag.
...
2004-11-24 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/NIOServerSocket.java: Added email to @author tag.
* java/nio/DirectByteBufferImpl.java:
Moved native methods to java.nio.VMDirectByteBuffer class.
* java/nio/MappedByteBufferImpl.java:
Use native methods from java.nio.VMDirectByteBuffer class.
* java/nio/VMDirectByteBuffer.java: New file,
* java/nio/natDirectByteBufferImpl.cc:
Moved all methods into java.nio.VMDirectByteBuffer class.
* java/nio/channels/spi/AbstractSelectableChannel.java
(register): Only re-use valid keys.
* Makefile.am: Added java/nio/VMDirectByteBuffer.java.
* Makefile.in: Regenerated.
From-SVN: r91146
2004-11-24 10:44:18 +00:00
Michael Koch
392cd098c5
2004-11-22 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/SocketChannelImpl.java
(read): Made check for blocking un-ambiguous.
Removed wrong check for data array length.
From-SVN: r91028
2004-11-22 20:32:56 +00:00
Michael Koch
926253eeca
2004-11-21 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/SocketChannelImpl.java
(read): Only return 0 when no bytes for reading available in
non-blocking mode.
* java/nio/channels/SocketChannel.java:
Added some missing @return tags.
From-SVN: r90986
2004-11-21 20:19:59 +00:00
Casey Marshall
2941ddc40c
FileLock.java (isValid): locks are valid if the channel is open.
...
2004-11-11 Casey Marshall <csm@gnu.org>
* gnu/java/nio/FileLock.java (isValid): locks are valid if the
channel is open.
* gnu/java/nio/channels/natFileChannelPosix.cc (lock): use
'F_RDLCK' for shared locks, 'F_WRLCK' for exclusive locks.
From-SVN: r90538
2004-11-12 19:15:27 +00:00
Tom Tromey
91229668e3
ISO_8859_1.java (Decoder): Now package-private.
...
* gnu/java/nio/charset/ISO_8859_1.java (Decoder): Now
package-private.
(Encoder): Likewise.
* gnu/java/nio/charset/UTF_8.java (Decoder): Now package-private.
(Encoder): Likewise.
* gnu/java/nio/charset/US_ASCII.java (Decoder): Now
package-private.
(Encoder): Likewise.
From-SVN: r90196
2004-11-06 22:44:47 +00:00
Ulrich Weigand
b228bf7fd2
* gnu/java/nio/channels/natFileChannelPosix.cc
...
(FileChannelImpl::available): Call FIONREAD ioctl with 'int *'
argument instead of 'long *'.
From-SVN: r89391
2004-10-21 18:21:00 +00:00
Michael Koch
410c47a4d1
NIODatagramSocket.java, [...]: Reorganized import statements.
...
2004-10-16 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/NIODatagramSocket.java,
gnu/java/nio/ServerSocketChannelImpl.java:
Reorganized import statements.
From-SVN: r89154
2004-10-16 18:32:21 +00:00
Michael Koch
d8d3480a29
UTF_16.java, [...]: Cleanup.
...
2004-10-16 Michael Koch <konqueror@gmx.de>
* libjava/gnu/java/nio/charset/UTF_16.java,
libjava/gnu/java/nio/charset/UTF_16BE.java,
libjava/gnu/java/nio/charset/UTF_16LE.java,
libjava/java/nio/ByteOrder.java,
libjava/java/nio/MappedByteBuffer.java,
libjava/java/nio/channels/Channels.java,
libjava/java/nio/channels/spi/SelectorProvider.java,
libjava/java/nio/charset/Charset.java:
Cleanup.
From-SVN: r89151
2004-10-16 18:06:03 +00:00
Michael Koch
752ef8732d
2004-10-16 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/charset/UTF_16Encoder.java
(UTF_16Encoder): Fixed maxBytesPerChar handling.
From-SVN: r89150
2004-10-16 17:58:01 +00:00
Michael Koch
9e54846fac
PipeImpl.java: Use VMPipe for native stuff.
...
2004-09-24 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
* gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
* gnu/java/nio/VMPipe.java,
gnu/java/nio/VMSelector.java:
New files.
* gnu/java/nio/natPipeImplEcos.cc,
gnu/java/nio/natPipeImplPosix.cc,
gnu/java/nio/natPipeImplWin32.cc:
Ported to VMPipe.
* gnu/java/nio/natSelectorImplEcos.cc,
gnu/java/nio/natSelectorImplPosix.cc,
gnu/java/nio/natSelectorImplWin32.cc:
Ported to VMSelector.
* Makefile.am: Added new files gnu/java/nio/VMPipe.java and
gnu/java/nio/VMSelector.java.
* Makefile.in: Regenerated.
From-SVN: r88014
2004-09-24 06:41:57 +00:00
Michael Koch
baa61e09ef
[multiple changes]
...
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-17 13:46:02 +00:00
Michael Koch
2ccc5a9508
2004-07-17 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/channels/FileChannelImpl.java
(finalize): Added javadoc.
From-SVN: r84858
2004-07-17 08:48:31 +00:00
Mark Wielaard
2e54a860a8
SelectorImpl.java (select): Call static Thread interrupted() method to clear interupt flag of our Thread.
...
2004-07-09 Mark Wielaard <mark@klomp.org>
* gnu/java/nio/SelectorImpl.java (select): Call static Thread
interrupted() method to clear interupt flag of our Thread.
From-SVN: r84367
2004-07-09 13:56:08 +00:00
Mark Wielaard
af62fd128a
2004-05-04 Mark Wielaard <mark@klomp.org>
...
* gnu/java/nio/channels/FileChannelImpl.java
(finalize): New method.
From-SVN: r81469
2004-05-04 05:32:46 +00:00
Tom Tromey
7b68f0bf7e
URLStreamHandler.java (toExternalForm): Removed unused variables.
...
2004-05-03 Tom Tromey <tromey@redhat.com>
* java/net/URLStreamHandler.java (toExternalForm): Removed
unused variables.
unused constructor.
* java/math/BigDecimal.java (divide): Removed unused variable.
* java/lang/Throwable.java: Cleaned up imports.
* java/lang/ClassLoader.java: Cleaned up imports.
* java/io/FilePermission.java (implies): Removed unused
variable.
* java/awt/TextComponent.java: Removed unused import.
* gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
* gnu/java/util/DoubleEnumeration.java: Removed unused import.
* gnu/java/text/WordBreakIterator.java: Removed unused import.
* gnu/java/text/SentenceBreakIterator.java: Removed unused
import.
* gnu/java/text/LineBreakIterator.java: Removed unused import.
* gnu/java/text/CharacterBreakIterator.java: Removed
unused import.
* gnu/java/security/provider/DSAKeyPairGenerator.java:
Cleaned up imports.
* gnu/java/security/der/DERWriter.java: Cleaned up imports.
* gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
unused method.
* gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
* gnu/java/nio/FileLockImpl.java: Cleaned up imports.
* gnu/java/io/Base64InputStream.java: Cleaned up imports.
* gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
* gnu/classpath/ServiceFactory.java: Cleaned up imports.
(lookupProviders): Removed unused variable.
(loadNextServiceProvider): Likewise.
* gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
From-SVN: r81450
2004-05-03 19:52:29 +00:00
Michael Koch
87939d70f8
2004-04-23 Michael Koch <konqueror@gmx.de>
...
* 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-23 06:56:34 +00:00
Michael Koch
0150fc2287
2004-04-20 Michael Koch <konqueror@gmx.de>
...
* 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-04-20 10:43:48 +00:00
Per Bothner
ab16524d62
configure.in: FILE variable overrides FLATFORM when linking natFileChannelXXX.cc.
...
* configure.in: FILE variable overrides FLATFORM when linking
natFileChannelXXX.cc.
* gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
(write): Call diag_write, as in old natFileDescriptorEcos.cc.
From-SVN: r79731
2004-03-19 22:06:12 -08:00
Rainer Orth
acc63e4c3d
natFileChannelPosix.cc (mapImpl): Cast MAP_FAILED to void *.
...
* gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
MAP_FAILED to void *.
From-SVN: r79627
2004-03-18 17:23:53 +00:00
Andreas Tobler
406c98b264
natFileChannelPosix.cc: Implement munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
...
2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
* gnu/java/nio/channels/natFileChannelPosix.cc: Implement
munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
(MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
(MappedByteBufferImpl::forceImpl): Use msync_adptor.
From-SVN: r79462
2004-03-14 00:07:58 +01:00