summaryrefslogtreecommitdiff
path: root/native/jni/java-lang
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete Solaris 9 support.Andrew John Hughes2014-04-301-5/+1
| | | | | | | | | | | 2014-04-30 Andrew John Hughes <gnu_andrew@member.fsf.org> * configure.ac: Remove check for sys/loadavg.h used by Solaris 9. * native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c: Remove Solaris 9 ifdef and update copyright header. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Replace all .cvsignore files with .gitignoreIvan Maidanski2012-10-151-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-06-10 Ivan Maidanski <ivmai@mail.ru> * compat/.gitignore, * compat/java.net/.gitignore, * doc/.gitignore, * doc/api/.gitignore, * doc/www.gnu.org/.gitignore, * doc/www.gnu.org/announce/.gitignore, * doc/www.gnu.org/cp-tools/.gitignore, * doc/www.gnu.org/docs/.gitignore, * doc/www.gnu.org/downloads/.gitignore, * doc/www.gnu.org/events/.gitignore, * doc/www.gnu.org/faq/.gitignore, * examples/.gitignore, * external/.gitignore, * external/jsr166/.gitignore, * external/relaxngDatatype/.gitignore, * external/sax/.gitignore, * external/w3c_dom/.gitignore, * gnu/classpath/.gitignore, * gnu/java/locale/.gitignore, * gnu/java/security/.gitignore, * gnu/test/.gitignore, * include/.gitignore, * java/util/.gitignore, * lib/.gitignore, * native/.gitignore, * native/fdlibm/.gitignore, * native/jawt/.gitignore, * native/jni/.gitignore, * native/jni/classpath/.gitignore, * native/jni/gconf-peer/.gitignore, * native/jni/gstreamer-peer/.gitignore, * native/jni/gtk-peer/.gitignore, * native/jni/java-io/.gitignore, * native/jni/java-lang/.gitignore, * native/jni/java-math/.gitignore, * native/jni/java-net/.gitignore, * native/jni/java-nio/.gitignore, * native/jni/java-util/.gitignore, * native/jni/midi-alsa/.gitignore, * native/jni/midi-dssi/.gitignore, * native/jni/native-lib/.gitignore, * native/jni/qt-peer/.gitignore, * native/jni/xmlj/.gitignore, * native/plugin/.gitignore, * native/testsuite/.gitignore, * native/vmi/.gitignore, * resource/.gitignore, * resource/META-INF/services/.gitignore, * scripts/.gitignore, * test/.gitignore, * test/gnu.java.lang.reflect/.gitignore, * test/java.io/.gitignore, * test/java.lang.reflect/.gitignore, * test/java.net/.gitignore, * test/java.util/.gitignore, * tools/.gitignore, * tools/gnu/classpath/tools/doclets/.gitignore, * tools/gnu/classpath/tools/doclets/debugdoclet/.gitignore, * tools/gnu/classpath/tools/doclets/htmldoclet/.gitignore, * tools/gnu/classpath/tools/doclets/xmldoclet/.gitignore, * tools/gnu/classpath/tools/doclets/xmldoclet/doctranslet/.gitignore, * tools/gnu/classpath/tools/gjdoc/.gitignore, * tools/gnu/classpath/tools/gjdoc/expr/.gitignore, * tools/gnu/classpath/tools/java2xhtml/.gitignore, * tools/gnu/classpath/tools/taglets/.gitignore, * vm/.gitignore, * vm/reference/.gitignore: Renamed from .cvsignore. Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Fix clock_gettime() support check for DarwinPekka Enberg2011-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Darwin doesn't support clock_gettime() but has _POSIX_MONOTONIC_CLOCK defined so use a more strict check with HAVE_CLOCK_GETTIME. This fixes the following compilation error: java_lang_VMSystem.c: In function ‘Java_java_lang_VMSystem_nanoTime’: java_lang_VMSystem.c:148: warning: implicit declaration of function ‘clock_gettime’ java_lang_VMSystem.c:148: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function) java_lang_VMSystem.c:148: error: (Each undeclared identifier is reported only once java_lang_VMSystem.c:148: error: for each function it appears in.) 2011-07-05 Pekka Enberg <penberg@kernel.org> * configure.ac: Check for clock_gettime(). native/jni/java-lang/java_lang_VMSystem.c: (Java_java_lang_VMSystem_nanoTime): Fix compile error on systems that don't have clock_gettime().
* Fix clock_gettime() fallbackPekka Enberg2011-01-221-3/+1
| | | | | | | | | | | | | | | | As suggested by Ivan Maidanski: The clock_gettime(CLOCK_MONOTONIC) function may fail on some machines (even if _POSIX_MONOTONIC_CLOCK has been defined during compilation), so it's better to silently fall-back to gettimeofday() in that case. Reviewed-by: Andrew Haley <aph@redhat.com> 2011-01-22 Pekka Enberg <penberg@kernel.org> * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_nanoTime): Fallback to gettimeofday() if clock_gettime(CLOCK_MONOTONIC) fails.
* Rename currentTimeMillis to currentTimeMicrosPekka Enberg2011-01-221-3/+3
| | | | | | | | | | Reviewed-by: Andrew Haley <aph@redhat.com> 2011-01-22 Pekka Enberg <penberg@kernel.org> * native/jni/java-lang/java_lang_VMSystem.c (currentTimeMillis): Rename currentTimeMillis to currentTimeMicros to reflect what the function returns.
* PR44411: Make VMSystem.nanoTime independent of wall time where possible.Andrew John Hughes2010-11-051-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-11-04 Andrew John Hughes <ahughes@redhat.com> Provide a fallback for systems without POSIX timers. * native/jni/java-lang/java_lang_VMSystem.c: (currentTimeMillis): New function which provides the behaviour for both Java_java_lang_VMSystem_currentTimeMillis and the fallback by obtaining the result of gettimeofday. (Java_java_lang_VMSystem_nanoTime): Return currentTimeMillis multiplied by a 1000 if a monotonic clock is unavailable. (Java_java_lang_VMSystem_currentTimeMillis): Split main behaviour out into currentTimeMillis and then return its result divided by a 1000. 2010-07-08 Roland Brand <roland.brand@ergon.ch> Pekka Enberg <penberg@kernel.org> PR classpath/44411 * native/jni/java-lang/java_lang_VMSystem.c: (Java_java_lang_VMSystem_nanoTime): Implement using POSIX monotonic clock support and clock_gettime. (Java_java_lang_VMSystem_currentTimeMillis): Use old nanoTime method (which uses gettimeofday) to provide the current time in milliseconds. * vm/reference/java/lang/VMSystem.java: (currentTimeMillis()): Make native with its own implementation rather than using nanoTime, which should be independent of wall-clock time.
* 2008-06-23 Andrew Haley <aph@redhat.com>Andrew Haley2008-06-231-1/+2
| | | | | | | | | | | | | | | | | | | | | * native/jawt/Makefile.am, native/fdlibm/Makefile.am, native/jni/java-util/Makefile.am, native/jni/gstreamer-peer/Makefile.am, native/jni/native-lib/Makefile.am, native/jni/gconf-peer/Makefile.am, native/jni/gtk-peer/Makefile.am, native/jni/xmlj/Makefile.am, native/jni/midi-alsa/Makefile.am, native/jni/java-nio/Makefile.am, native/jni/midi-dssi/Makefile.am, native/jni/classpath/Makefile.am, native/jni/java-io/Makefile.am, native/jni/java-lang/Makefile.am, native/jni/java-net/Makefile.am (AM_CFLAGS): Add @EXTRA_CFLAGS@. * configure.ac (EXTRA_CFLAGS): New macro. * lib/Makefile.am (resources): Add .svn.
* 2008-02-27 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-281-0/+5
| | | | | | | * configure.ac: Check for sys/loadavg.h. * native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c: Include sys/loadavg.h if found.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-22/+0
| | | | | | | | | | | | | * vm/reference/java/lang/VMFloat.java (floatToIntBits): Removed unused method. * native/jni/java-lang/java_lang_VMFloat.c (Java_java_lang_VMFloat_floatToIntBits): Removed unused function. * include/java_lang_VMDouble.h: Regenerated. * doc/cp-vmintegration.texinfo (java.lang.VMFloat): Removed unused method floatToIntBits. (java.lang.VMDouble): Use similar text to text used for floatToRawIntBits for doubleToLongBits.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-30/+2
| | | | | | | | | | | | | | | | | * m4/acinclude.m4 (CLASSPATH_CHECK_JAVAH) [USER_JAVAH]: Check for gjavah-4.2 and gjavah-4.1. 2008-02-08 Dalibor Topic <robilad@kaffe.org> * vm/reference/java/lang/VMDouble.java (doubleToLongBits): Removed unused method. * native/jni/java-lang/java_lang_VMDouble.c (Java_java_lang_VMDouble_doubleToLongBits): Removed unused function. * include/java_lang_VMDouble.h: Regenerated. * doc/cp-vmintegration.texinfo (java.lang.VMDouble): Removed unused method doubleToLongBits.
* 2008-01-09 Stefan Huehner <stefan@huehner.org>Andrew John Hughes2008-01-111-1/+1
| | | | | | | | * native/jni/java-io/java_io_VMObjectStreamClass.c, * native/jni/java-lang/java_lang_VMDouble.c, * native/jni/java-net/java_net_VMInetAddress.c: Don't discard const by casting (const char *) to (char *) when it's not needed.
* 2007-04-15 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-151-1/+1
| | | | | * native/jni/java-lang/Makefile.am (libjavalang_la_LIBADD): Fix portability warnings from automake 1.10.
* 2007-04-05 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2007-04-051-0/+18
| | | | | | | PR classpath/22800: * native/jni/java-lang/java_lang_VMDouble.c (doubleToLongBits) (doubleToRawLongBits, longBitsToDouble): Swap the byte ordering for little-endian arms without VFP.
* PR classpath/31276:Tom Tromey2007-03-281-2/+2
| | | | | * native/jni/java-lang/java_lang_VMDouble.c (parseDoubleFromChars): Use %p, not %i.
* 2006-12-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-262-1/+63
| | | | | | | | | | | | | | | | | | | | | * NEWS: Mention 1.6 support for java.lang.management * configure.ac: Check for getloadavg. * examples/gnu/classpath/examples/management/TestOS.java: Print system load average. * gnu/java/lang/management/OperatingSystemMXBeanImpl.java: (getSystemLoadAverage()): Implemented. * include/Makefile.am: Add new header. * include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated. * include/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.h: Generated. * java/lang/management/OperatingSystemMXBean.java: (getSystemLoadAverage()): Implemented. * native/jni/java-lang/Makefile.am: Add new native code. * native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c: New file. * vm/reference/gnu/java/lang/management/VMOperatingSystemMXBeanImpl.java: Likewise.
* Fix for printing Double.MIN_VALUE and Float.MIN_VALUEgenerics-merge-20061128Dalibor Topic2006-11-281-125/+204
| | | | | | | | | | | | | | 2006-11-28 Dalibor Topic <robilad@kaffe.org> * native/jni/java-lang/java_lang_VMDouble.c: (parseDoubleFromChars) New function. Factored out from ... (Java_java_lang_VMDouble_parseDouble): Factored out the parsing. (dtoa_toString): New function. Factored out from ... (Java_java_lang_VMDouble_toString) : Factored out the conversion. Changed conversion mode to 2, as modes 0 and 1 don't round as the API spec demands. Invoke conversion function as often as necessary with growing precision until a reversible representation of the double in form of a string is reached.
* 2006-09-16 Casey Marshall <csm@gnu.org>Casey Marshall2006-09-171-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: updated. * configure.ac (AC_CHECK_HEADERS): check for `sys/event.h'. (AC_CHECK_FUNCS): add checks for readv, writev, getifaddrs, kqueue, and kevent. (HAVE_INET6): define if IPv6 is supported. * gnu/java/net/PlainDatagramSocketImpl.java (channel): new field. (native_fd): removed. (impl): new field. (<init>): throw IOException; initialize fields. (finalize): removed. (getNativeFD): removed. (bind): use `PlainSocketImpl.bind.' (create): use `PlainSocketImpl.initSocket.' (disconnect): use `PlainSocketImpl.disconnect.' (getLocalPort): new method. (send): use `VMChannel.send.' (receive): use `VMChannel.receive.' (setOption): use `PlainSocketImpl.setOption.' (getOption): use `PlainSocketImpl.getOption.' (close): use `VMChannel.State.close.' (join): use `PlainSocketImpl.join.' (leave): use `PlainSocketImpl.leave.' (joinGroup, leaveGroup): implemented. * gnu/java/net/PlainSocketImpl.java: make non-final. (native_fd): removed. (impl): new field. (channel): new field. (<init>): initialize `impl.' (finalize, getNativeFD): removed. (setOption): use `PlainSocketImpl.setOption.' (getOption): use `PlainSocketImpl.getOption.' (shutdownInput): use `PlainSocketImpl.shutdownInput.' (shutdownOutput): use `PlainSocketImpl.shutdownOutput.' (create): create `channel,' initialize `impl's native state. (connect): use `connect(SocketAddress, int).' (connect): use `SocketChannelImpl.connect;' initialize `address' and `port.' (bind): use `VMPlainSocketImpl.bind.' (listen): use `VMPlainSocketImpl.listen.' (accept): use `SocketChannelImpl.accept.' (available): use `VMChannel.available.' (close): use `PlainSocketImpl.close.' (sendUrgentData): use `PlainSocketImpl.sendUrgentData.' (getVMChannel, getInetAddress, getLocalPort, getLocalAddress, getPort): new methods. (SocketInputStream.read): use `VMChannel.read.' (SocketInputStream.read): use `SocketChannel.read.' (SocketOutputStream.write): use `VMChannel.write.' (SocketOutputStream.write): use `SocketChannel.write.' * gnu/java/nio/DatagramChannelImpl.java: implement VMChannel. (channel): new field. (<init>): initialize `channel.' (implCloseSelectableChannel): use `VMChannel.close.' (implConfigureBlocking): use `VMChannel.setBlocking.' (connect): use `VMChannel.connect.' (disconnect): use `VMChannel.disconnect.' (isConnected): use `VMChannel.getPeerAddress.' (write): use `VMChannel.write.' (write): use `VMChannel.writeGathering.' (read): use `VMChannel.read.' (read): use `VMChannel.readScattering.' (receive): use `VMChannel.receive.' (send): use `VMChannel.send.' (getVMChannel): new method. * gnu/java/nio/DatagramChannelSelectionKey.java (getNativeFD): access native FD through VMChannel.State. * gnu/java/nio/FileChannelImpl.java: moved from gnu/java/nio/channels/FileChannelImpl.java. * gnu/java/nio/FileLockImpl.java: fix imports. * gnu/java/nio/KqueueSelectionKeyImpl.java: new file. * gnu/java/nio/KqueueSelectorImpl.java: new file. * gnu/java/nio/NIOSocket.java (impl): removed. (channel): new field. (<init>): init superclass with a `NIOSocketImpl;' init `channel.' (getPlainSocketImpl, setChannel): removed. (isConnected): new method. * gnu/java/nio/NIOSocketImpl.java: new file. * gnu/java/nio/PipeImpl.java (SourceChannelImpl): implement `VMChannelOwner.' (SourceChannelImpl.native_fd): removed. (SourceChannelImpl.<init>): init with a `VMChannel.' (SourceChannelImpl.getNativeFD): removed. (SourceChannelImpl.getVMChannel): new method. (SourceChannelImpl.implCloseSelectableChannel): implement. (SinkChannelImpl): implement `VMChannelOwner.' (SinkChannelImpl.native_fd): removed. (SinkChannelImpl.<init>): init with a `VMChannel.' (SinkChannelImpl.implCloseSelectableChannel): implement. (SinkChannelImpl.getNativeFD): removed. (SinkChannelImpl.getVMChannel): new method. * gnu/java/nio/SelectionKeyImpl.java (getNativeFD): mark deprecated. * gnu/java/nio/SelectorProviderImpl.java (SELECTOR_IMPL_KQUEUE, SELECTOR_IMPL_EPOLL, SELECTOR_IMPL): new constants. (openSelector): return kqueue selector if available. * gnu/java/nio/ServerSocketChannelImpl.java: implement `VMChannelOwner.' (channel): new field. (<init>): init `channel.' (finalizer): check if the `VMChannel.State' is valid. (implCloseSelectableChannel): use `VMChannel.close.' (implConfigureBlocking): use `VMChannel.setBlocking.' (accept): use `VMChannel.accept.' (getVMChannel): new method. * gnu/java/nio/ServerSocketChannelSelectionKey.java (getNativeFD): access native FD through `VMChannel.State.' * gnu/java/nio/SocketChannelImpl.java: implement `VMChannelOwner.' (impl): removed. (channel, connected, connectAddress): new field. (<init>): new constructors. (getPlainSocketImpl): removed. (implCloseSelectableChannel): use `VMChannel.close.' (implConfigureBlocking): use `VMChannel.setBlocking.' (connect): use `connect(SocketAddress,int).' (connect): use `VMChannel.connect.' (finishConnect): don't use a selector. (isConnected): use `VMChannel.getPeerAddress.' (read): use `VMChannel.read.' (read): use `VMChannel.readScattering.' (write): use `VMChannel.write.' (write): use `VMChannel.writeGathering.' (getVMChannel): new method. * gnu/java/nio/SocketChannelSelectionKey.java (getNativeFD): get native FD from `VMChannel.State.' * gnu/java/nio/SocketChannelSelectionKeyImpl.java (getNativeFD): get native FD from `VMChannel.State.' * gnu/java/nio/VMChannelOwner.java: new file. * gnu/java/nio/channels/FileChannelImpl.java: removed. * include/Makefile.am: generate `gnu_java_nio_FileChannelImpl.h' and `gnu_java_nio_KqueueSelectorImpl.h;' don't generate `gnu_java_nio_channels_FileChannelImpl.h.' * include/gnu_java_net_VMPlainSocketImpl.h: regenerated. * include/gnu_java_nio_FileChannelImpl.h: new file. * include/gnu_java_nio_KqueueSelectorImpl.h: new file. * include/gnu_java_nio_VMChannel.h: regenerated. * include/gnu_java_nio_VMPipe.h: regenerated. * include/java_net_VMNetworkInterface.h: regenerated. * java/io/FileDescriptor.java: fix imports. * java/io/FileInputStream.java (<init>): handle exceptions. (read): wrap the destination arary. * java/io/FileOutputStream.java (<init>): handle exceptions. (write): wrap the source array. * java/io/RandomAccessFile.java (<init>): handle exceptions. * java/net/DatagramSocket.java (<init>): handle exceptions. (receive): handle length/port setting. (connect): bind to any address/port if the argument is null. * java/net/NetworkInterface.java (name, inetAddress): removed. (netif): new field. (<init>): make private. (getName): return `netif.name.' (getInetAddresses): access `netif.addresses.' (getDisplayName): return `netif.name.' (getByName, getByAddress): handle changes to `VMNetworkInterface.' (condense): removed. (getNetworkInterfaces): handle changes to `VMNetworkInterface.' (equals): compare `netif' fields. (hashCode): get hash codes from `netif.' (toString): use a StringBuffer. * java/net/ServerSocket.java (close): don't set `impl' to null. (isClosed): use `VMChannel.State.isClosed.' * java/net/Socket.java (getLocalAddress): don't use `getOption' if the `SocketImpl' is a `PlainSocketImpl.' (close): just close the `impl.' (toString): use `super.toString' in the value we return. (isConnected): just access `impl,' not `getImpl.' (isBound): use `PlainSocketImpl' methods if we can. (isClosed): look at `VMChannel.State.' * native/jni/classpath/jcl.c (JNI_OnLoad): new function. (JCL_NewRawDataObject): don't initialize cached fields here; throw an exception if they were not. (JCL_GetRawData): throw an exception if cached fields weren't created. * native/jni/java-lang/java_lang_VMProcess.c: handle FileChannelImpl move. * native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c (IO_EXCEPTION, SOCKET_EXCEPTION, BIND_EXCEPTION, THROW_NO_NETWORK): new macros. (Java_gnu_java_net_VMPlainSocketImpl_bind): reipmlemented. (Java_gnu_java_net_VMPlainSocketImpl_bind6): new function. (Java_gnu_java_net_VMPlainSocketImpl_listen): reimplemented. (java_sockopt): new enum. (Java_gnu_java_net_VMPlainSocketImpl_setOption): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_getOption): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_shutdownInput): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_shutdownOutput): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_sendUrgentData): new function. (Java_gnu_java_net_VMPlainSocketImpl_join): new function. (Java_gnu_java_net_VMPlainSocketImpl_join6): new function. (Java_gnu_java_net_VMPlainSocketImpl_read): removed. (Java_gnu_java_net_VMPlainSocketImpl_leave): new function. (Java_gnu_java_net_VMPlainSocketImpl_leave6): new function. (Java_gnu_java_net_VMPlainSocketImpl_joinGroup): new function. (Java_gnu_java_net_VMPlainSocketImpl_write): removed. (Java_gnu_java_net_VMPlainSocketImpl_joinGroup6): new function. (Java_gnu_java_net_VMPlainSocketImpl_leaveGroup): new function. (Java_gnu_java_net_VMPlainSocketImpl_leaveGroup6): new function. (getif_address): new function. (getif_index): new function. * native/jni/java-net/java_net_VMNetworkInterface.c (java_net_VMNetworkInterface_init, java_net_VMNetworkInterface_addAddress): new file-scope globals. (Java_java_net_VMNetworkInterface_initIds): new function. (struct netif_entry): new struct. (free_netif_list): new function. (Java_java_net_VMNetworkInterface_getInterfaces): removed. (Java_java_net_VMNetworkInterface_getVMInterfaces): new function. * native/jni/java-nio/Makefile.am (libjavanio_la_SOURCES): remove gnu_java_nio_channels_FileChannelImpl.c, add gnu_java_nio_KqueueSelectorImpl.c. * native/jni/java-nio/gnu_java_nio_KqueueSelectorImpl.c: new file. * native/jni/java-nio/gnu_java_nio_VMChannel.c (INTERRUPTED_IO_EXCEPTION, SOCKET_TIMEOUT_EXCEPTION, ALIGN_UP, ALIGN_DOWN): new macros. (JCL_init_buffer): get the address through GetDirectBufferAddress if possible. (Java_gnu_java_nio_VMChannel_stdin_1fd, Java_gnu_java_nio_VMChannel_stdout_1fd, Java_gnu_java_nio_VMChannel_stderr_1fd): new functions. (Java_gnu_java_nio_VMChannel_setBlocking): fix setting blocking value. (Java_gnu_java_nio_VMChannel_read): renamed... (Java_gnu_java_nio_VMChannel_read__ILjava_nio_ByteBuffer_2): to this; handle interrupted IO; add HAVE_READ check. (Java_gnu_java_nio_VMChannel_write): renamed... (Java_gnu_java_nio_VMChannel_write__ILjava_nio_ByteBuffer_2): to this; handle zero-length write; add HAVE_WRITE check. (Java_gnu_java_nio_VMChannel_receive): new function. (Java_gnu_java_nio_VMChannel_send): new function. (Java_gnu_java_nio_VMChannel_send6): new function. (Java_gnu_java_nio_VMChannel_read__I): new function. (Java_gnu_java_nio_VMChannel_write__II): new function. (Java_gnu_java_nio_VMChannel_socket): new function. (Java_gnu_java_nio_VMChannel_connect): new function. (Java_gnu_java_nio_VMChannel_connect6): new function. (Java_gnu_java_nio_VMChannel_getsockname): new function. (Java_gnu_java_nio_VMChannel_getpeername): new function. (Java_gnu_java_nio_VMChannel_accept): new function. (Java_gnu_java_nio_VMChannel_disconnect): new function. (Java_gnu_java_nio_VMChannel_close): new function. (Java_gnu_java_nio_VMChannel_available): new function. (FileChannel_mode): new enum. (Java_gnu_java_nio_VMChannel_open): new function. (Java_gnu_java_nio_VMChannel_position): new function. (Java_gnu_java_nio_VMChannel_seek): new function. (Java_gnu_java_nio_VMChannel_truncate): new funciton. (Java_gnu_java_nio_VMChannel_lock): new function. (Java_gnu_java_nio_VMChannel_unlock): new function. (Java_gnu_java_nio_VMChannel_size): new function. (Java_gnu_java_nio_VMChannel_map): new function. (Java_gnu_java_nio_VMChannel_flush): new function. * native/jni/java-nio/gnu_java_nio_VMPipe.c (Java_gnu_java_nio_VMPipe_init): removed. (Java_gnu_java_nio_VMPipe_pipe0): new function. * native/jni/java-nio/javanio.c: new file. * native/jni/java-nio/javanio.h: new file. * native/jni/native-lib/cpnet.c (cpnet_getHostByName): fix for systems without `gethostbyname_r.' * vm/reference/gnu/java/net/VMPlainSocketImpl.java (nfd): new field. (<init>, <init>): new constructors. (setOption, getOption): make instance methods; defer to native implementation. (connect): removed. (bind): make an instance method; defer to native methods. (accept): removed. (available): removed. (listen): make an instance method; defer to native method. (read): removed. (join, leave): new methods. (write): removed. (joinGroup, leaveGroup): new methods. (shutdownInput, shutdownOutput): make instance methods. (sendUrgentData): removed. (State): new class. * vm/reference/gnu/java/nio/VMChannel.java: make final. (fd): removed. (nfd): new field. (<init>): new, public constructors. (getVMChannel): methods removed. (getState, getStdin, getStdout, getStderr, stdin_fd, stdout_fd, stderr_fd): new methods. (setBlocking): make an instance method. (available): new method. (read): get native fd from `nfd.' (read): new single-byte read method. (readScattering): get native fd from `nfd.' (receive): new method. (write, writeGathering): get native fd from `nfd.' (send): new method. (write): new single-byte write method. (initSocket): new method. (connect): new method. (disconnect): new method. (getLocalAddress): new method. (getPeerAddress): new method. (accept): new method. (openFile): new method. (position): new method. (seek): new method. (truncate): new method. (lock): new method. (unlock): new method. (size): new method. (map): new method. (flush): new method. (close): new method. (State): new class. (Kind): new class. * vm/reference/gnu/java/nio/VMPipe.java (init): removed. (pipe, pipe0): new method. * vm/reference/java/net/VMNetworkInterface.java (name, addresses): new fields. (<clinit>): call `initIds.' (initIds): new method. (getInterfaces): removed. (getVMInterfaces): new method. (addAddress): new method. * vm/reference/java/nio/channels/VMChannels.java: fix imports.
* 2006-09-14 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2006-09-141-18/+3
| | | | | | | | | | Fixes PR22800 * native/fdlibm/mprec.h (Storeinc): Define correctly for LE architectures (like Arm). * native/jni/java-lang/java_lang_VMDouble.c (doubleToLongBits): Reverted SWAP_DOUBLE patch. (doubleToRawLongBits): Likewise. (longBitsToDouble): Likewise.
* 2006-09-05 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-09-051-17/+19
| | | | | | | | | | | | * native/jni/native-lib/cpprocess.c: (forkAndExec(char*,char*,int,int,pid_t,char*)): Add redirection of stdout to stderr. * native/jni/native-lib/cpprocess.h: Added redirect argument. * native/jni/java-lang/java_lang_VMProcess.c (Java_java_lang_VMProcess_nativeSpawn): Readd redirect argument. * vm/reference/java/lang/VMProcess.java: Likewise. * include/java_lang_VMProcess.h: Regenerated.
* Merge NATIVE_LAYER branch.Mark Wielaard2006-08-212-136/+37
|
* 2006-07-26 Sven de Marothy <sven@physto.se>Sven de Marothy2006-07-261-4/+5
| | | | | | | | * include/java_lang_VMSystem.h * vm/reference/java/lang/VMSystem.java * native/jni/java-lang/java_lang_VMSystem.c (nanoTime, currentTimeMillis): Switch the former to native code and the latter to java.
* 2006-04-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h, * include/gnu_java_awt_peer_gtk_GdkFontPeer.h, * include/gnu_java_awt_peer_gtk_GdkGraphics.h, * include/gnu_java_awt_peer_gtk_GdkGraphics2D.h, * include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h, * include/gnu_java_awt_peer_gtk_GdkPixbufDecoder.h, * include/gnu_java_awt_peer_gtk_GdkRobotPeer.h, * include/gnu_java_awt_peer_gtk_GdkTextLayout.h, * include/gnu_java_awt_peer_gtk_GtkButtonPeer.h, * include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h, * include/gnu_java_awt_peer_gtk_GtkChoicePeer.h, * include/gnu_java_awt_peer_gtk_GtkClipboard.h, * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h, * include/gnu_java_awt_peer_gtk_GtkFramePeer.h, * include/gnu_java_awt_peer_gtk_GtkGenericPeer.h, * include/gnu_java_awt_peer_gtk_GtkImage.h, * include/gnu_java_awt_peer_gtk_GtkLabelPeer.h, * include/gnu_java_awt_peer_gtk_GtkListPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuBarPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkPanelPeer.h, * include/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollPanePeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h, * include/gnu_java_awt_peer_gtk_GtkSelection.h, * include/gnu_java_awt_peer_gtk_GtkTextAreaPeer.h, * include/gnu_java_awt_peer_gtk_GtkTextFieldPeer.h, * include/gnu_java_awt_peer_gtk_GtkToolkit.h, * include/gnu_java_awt_peer_gtk_GtkWindowPeer.h, * include/gnu_java_awt_peer_qt_MainQtThread.h, * include/gnu_java_awt_peer_qt_QMatrix.h, * include/gnu_java_awt_peer_qt_QPainterPath.h, * include/gnu_java_awt_peer_qt_QPen.h, * include/gnu_java_awt_peer_qt_QtAudioClip.h, * include/gnu_java_awt_peer_qt_QtButtonPeer.h, * include/gnu_java_awt_peer_qt_QtCanvasPeer.h, * include/gnu_java_awt_peer_qt_QtCheckboxPeer.h, * include/gnu_java_awt_peer_qt_QtChoicePeer.h, * include/gnu_java_awt_peer_qt_QtComponentPeer.h, * include/gnu_java_awt_peer_qt_QtContainerPeer.h, * include/gnu_java_awt_peer_qt_QtDialogPeer.h, * include/gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_qt_QtFileDialogPeer.h, * include/gnu_java_awt_peer_qt_QtFontMetrics.h, * include/gnu_java_awt_peer_qt_QtFontPeer.h, * include/gnu_java_awt_peer_qt_QtFramePeer.h, * include/gnu_java_awt_peer_qt_QtGraphics.h, * include/gnu_java_awt_peer_qt_QtGraphicsEnvironment.h, * include/gnu_java_awt_peer_qt_QtImage.h, * include/gnu_java_awt_peer_qt_QtLabelPeer.h, * include/gnu_java_awt_peer_qt_QtListPeer.h, * include/gnu_java_awt_peer_qt_QtMenuBarPeer.h, * include/gnu_java_awt_peer_qt_QtMenuComponentPeer.h, * include/gnu_java_awt_peer_qt_QtMenuItemPeer.h, * include/gnu_java_awt_peer_qt_QtMenuPeer.h, * include/gnu_java_awt_peer_qt_QtPanelPeer.h, * include/gnu_java_awt_peer_qt_QtPopupMenuPeer.h, * include/gnu_java_awt_peer_qt_QtScreenDevice.h, * include/gnu_java_awt_peer_qt_QtScrollPanePeer.h, * include/gnu_java_awt_peer_qt_QtScrollbarPeer.h, * include/gnu_java_awt_peer_qt_QtTextAreaPeer.h, * include/gnu_java_awt_peer_qt_QtTextFieldPeer.h, * include/gnu_java_awt_peer_qt_QtToolkit.h, * include/gnu_java_awt_peer_qt_QtVolatileImage.h, * include/gnu_java_awt_peer_qt_QtWindowPeer.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice.h, * include/gnu_javax_sound_midi_alsa_AlsaPortDevice.h, * include/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.h, * include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h, * include/gnu_xml_libxmlj_dom_GnomeAttr.h, * include/gnu_xml_libxmlj_dom_GnomeDocument.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentBuilder.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentType.h, * include/gnu_xml_libxmlj_dom_GnomeElement.h, * include/gnu_xml_libxmlj_dom_GnomeEntity.h, * include/gnu_xml_libxmlj_dom_GnomeNamedNodeMap.h, * include/gnu_xml_libxmlj_dom_GnomeNode.h, * include/gnu_xml_libxmlj_dom_GnomeNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeNotation.h, * include/gnu_xml_libxmlj_dom_GnomeProcessingInstruction.h, * include/gnu_xml_libxmlj_dom_GnomeTypeInfo.h, * include/gnu_xml_libxmlj_dom_GnomeXPathExpression.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeXPathResult.h, * include/gnu_xml_libxmlj_sax_GnomeLocator.h, * include/gnu_xml_libxmlj_sax_GnomeXMLReader.h, * include/gnu_xml_libxmlj_transform_GnomeTransformer.h, * include/gnu_xml_libxmlj_transform_GnomeTransformerFactory.h, * include/java_lang_VMProcess.h: Regenerated. * native/jni/java-lang/java_lang_VMProcess.c: Redirect when pipe_count is 2 not 3.
* 2006-04-22 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-04-222-20/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Mention changes to VMProcess and VMSystem. * doc/vmintegration.texinfo: Change documentation on VMProcess and VMSystem. * java/lang/reflect/Modifier.java: (toString(int,StringBuilder)): Merged from generics branch. * vm/reference/java/lang/reflect/Constructor.java (toString()): Use StringBuilder. (toGenericString()): Likewise. * vm/reference/java/lang/reflect/Field.java: (toString()): Use StringBuilder. (toGenericString()): Likewise. * vm/reference/java/lang/reflect/Method.java (toString()): Use StringBuilder. (toGenericString()): Likewise. * include/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h, * include/gnu_java_awt_peer_gtk_GdkFontPeer.h, * include/gnu_java_awt_peer_gtk_GdkGraphics.h, * include/gnu_java_awt_peer_gtk_GdkGraphics2D.h, * include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h, * include/gnu_java_awt_peer_gtk_GdkPixbufDecoder.h, * include/gnu_java_awt_peer_gtk_GdkRobotPeer.h, * include/gnu_java_awt_peer_gtk_GdkTextLayout.h, * include/gnu_java_awt_peer_gtk_GtkButtonPeer.h, * include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h, * include/gnu_java_awt_peer_gtk_GtkChoicePeer.h, * include/gnu_java_awt_peer_gtk_GtkClipboard.h, * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h, * include/gnu_java_awt_peer_gtk_GtkFramePeer.h, * include/gnu_java_awt_peer_gtk_GtkGenericPeer.h, * include/gnu_java_awt_peer_gtk_GtkImage.h, * include/gnu_java_awt_peer_gtk_GtkLabelPeer.h, * include/gnu_java_awt_peer_gtk_GtkListPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuBarPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkPanelPeer.h, * include/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollPanePeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h, * include/gnu_java_awt_peer_gtk_GtkSelection.h, * include/gnu_java_awt_peer_gtk_GtkTextAreaPeer.h, * include/gnu_java_awt_peer_gtk_GtkTextFieldPeer.h, * include/gnu_java_awt_peer_gtk_GtkToolkit.h, * include/gnu_java_awt_peer_gtk_GtkWindowPeer.h, * include/gnu_java_awt_peer_qt_MainQtThread.h, * include/gnu_java_awt_peer_qt_QMatrix.h, * include/gnu_java_awt_peer_qt_QPainterPath.h, * include/gnu_java_awt_peer_qt_QPen.h, * include/gnu_java_awt_peer_qt_QtAudioClip.h, * include/gnu_java_awt_peer_qt_QtButtonPeer.h, * include/gnu_java_awt_peer_qt_QtCanvasPeer.h, * include/gnu_java_awt_peer_qt_QtCheckboxPeer.h, * include/gnu_java_awt_peer_qt_QtChoicePeer.h, * include/gnu_java_awt_peer_qt_QtComponentPeer.h, * include/gnu_java_awt_peer_qt_QtContainerPeer.h, * include/gnu_java_awt_peer_qt_QtDialogPeer.h, * include/gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_qt_QtFileDialogPeer.h, * include/gnu_java_awt_peer_qt_QtFontMetrics.h, * include/gnu_java_awt_peer_qt_QtFontPeer.h, * include/gnu_java_awt_peer_qt_QtFramePeer.h, * include/gnu_java_awt_peer_qt_QtGraphics.h, * include/gnu_java_awt_peer_qt_QtGraphicsEnvironment.h, * include/gnu_java_awt_peer_qt_QtImage.h, * include/gnu_java_awt_peer_qt_QtLabelPeer.h, * include/gnu_java_awt_peer_qt_QtListPeer.h, * include/gnu_java_awt_peer_qt_QtMenuBarPeer.h, * include/gnu_java_awt_peer_qt_QtMenuComponentPeer.h, * include/gnu_java_awt_peer_qt_QtMenuItemPeer.h, * include/gnu_java_awt_peer_qt_QtMenuPeer.h, * include/gnu_java_awt_peer_qt_QtPanelPeer.h, * include/gnu_java_awt_peer_qt_QtPopupMenuPeer.h, * include/gnu_java_awt_peer_qt_QtScreenDevice.h, * include/gnu_java_awt_peer_qt_QtScrollPanePeer.h, * include/gnu_java_awt_peer_qt_QtScrollbarPeer.h, * include/gnu_java_awt_peer_qt_QtTextAreaPeer.h, * include/gnu_java_awt_peer_qt_QtTextFieldPeer.h, * include/gnu_java_awt_peer_qt_QtToolkit.h, * include/gnu_java_awt_peer_qt_QtVolatileImage.h, * include/gnu_java_awt_peer_qt_QtWindowPeer.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice.h, * include/gnu_javax_sound_midi_alsa_AlsaPortDevice.h, * include/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.h, * include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h, * include/gnu_xml_libxmlj_dom_GnomeAttr.h, * include/gnu_xml_libxmlj_dom_GnomeDocument.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentBuilder.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentType.h, * include/gnu_xml_libxmlj_dom_GnomeElement.h, * include/gnu_xml_libxmlj_dom_GnomeEntity.h, * include/gnu_xml_libxmlj_dom_GnomeNamedNodeMap.h, * include/gnu_xml_libxmlj_dom_GnomeNode.h, * include/gnu_xml_libxmlj_dom_GnomeNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeNotation.h, * include/gnu_xml_libxmlj_dom_GnomeProcessingInstruction.h, * include/gnu_xml_libxmlj_dom_GnomeTypeInfo.h, * include/gnu_xml_libxmlj_dom_GnomeXPathExpression.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeXPathResult.h, * include/gnu_xml_libxmlj_sax_GnomeLocator.h, * include/gnu_xml_libxmlj_sax_GnomeXMLReader.h, * include/gnu_xml_libxmlj_transform_GnomeTransformer.h, * include/gnu_xml_libxmlj_transform_GnomeTransformerFactory.h, * include/java_lang_VMProcess.h, * include/java_lang_VMSystem.h: Regenerated with GCJ 4.1. 2005-12-05 Casey Marshall <csm@gnu.org> * native/jni/classpath/jcl.h (environ): define, or declare 'extern.' * native/jni/java-lang/java_lang_VMProcess.c: include <jcl.h>. Remove 'extern' define. * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_environ): don't declare 'environ.' 2005-09-25 Jeroen Frijters <jeroen@frijters.net> * java/lang/System.java, vm/reference/java/lang/VMSystem.java: Removed generic type from VMSystem.environ() signature. 2005-05-04 Tom Tromey <tromey@redhat.com> * native/jni/java-lang/java_lang_VMProcess.c (Java_java_lang_VMProcess_nativeSpawn): Added 'redirect' argument. Use defines instead of contents. * vm/reference/java/lang/VMProcess.java (redirect): New field. (spawn): Updated. (setProcessInfo): Updated. (VMProcess): Added 'redirect' argument. (nativeSpawn): Likewise. (exec): New overload. 2005-01-20 Andrew John Hughes <gnu_andrew@member.fsf.org> * include/java_lang_VMSystem.h: (Java_java_lang_VMSystem_environ): added * vm/reference/java/lang/VMSystem.java: (environ()): new native method
* 2006-03-19 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-03-192-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * doc/vmintegration.texinfo: Updated to include VMArray. * include/Makefile.am: Replace java_lang_reflect_Array.h with java_lang_reflect_VMArray.h * include/java_lang_reflect_VMArray.h: New autogenerated header. * include/java_lang_reflect_Array.h: Removed. * java/lang/reflect/Array.java: (newInstance(Class,int)): Calls VMArray. (createMultiArray(Class,int[],int)): Likewise. (createObjectArray(Class,int)): Removed. * native/jni/java-lang/Makefile.am: Replaced java_lang_reflect_Array.c with java_lang_reflect_VMArray.c * native/jni/java-lang/java_lang_reflect_VMArray.c: Renamed from java_lang_reflect_Array.c. * vm/reference/java/lang/reflect/VMArray.java: (createObjectArray(Class,int)): Native method moved from java.lang.reflect.Array.
* PR classpath/26623:Tom Tromey2006-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * native/jni/qt-peer/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/midi-alsa/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/java-net/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/java-lang/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/xmlj/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/gtk-peer/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/midi-dssi/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/java-io/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/java-nio/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jni/java-util/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * native/jawt/Makefile.am (nativeexeclib_LTLIBRARIES): Renamed. * configure.ac (nativeexeclibdir): Renamed from nativelibdir.
* 2006-02-23 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-02-231-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/java_lang_VMMath.h: (Java_java_lang_VMMath_cbrt(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_cosh(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_expm1(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_hypot(JNIEnv*,jclass,jdouble,jdouble)): Added. (Java_java_lang_VMMath_log10(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_log1p(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_sinh(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_tanh(JNIEnv*,jclass,jdouble)): Added. * java/lang/Math.java: (cbrt(double)): Implemented. (cosh(double)): Implemented. (expm1(double)): Implemented. (hypot(double,double)): Implemented. (log10(double)): Implemented. (log1p(double)): Implemented. (signum(double)): Implemented. (signum(float)): Implemented. (sinh(double)): Implemented. (tanh(double)): Implemented. * native/fdlibm/Makefile.am: Added new files from fdlibm 5.3. * native/fdlibm/e_acos.c, * native/fdlibm/e_asin.c, * native/fdlibm/e_atan2.c, * native/fdlibm/e_exp.c, * native/fdlibm/e_fmod.c, * native/fdlibm/e_log.c, * native/fdlibm/e_rem_pio2.c, * native/fdlibm/e_remainder.c, * native/fdlibm/e_scalb.c, * native/fdlibm/e_sqrt.c, * native/fdlibm/k_cos.c, * native/fdlibm/k_rem_pio2.c, * native/fdlibm/k_sin.c, * native/fdlibm/k_tan.c, * native/fdlibm/s_atan.c, * native/fdlibm/s_ceil.c, * native/fdlibm/s_copysign.c, * native/fdlibm/s_cos.c, * native/fdlibm/s_fabs.c, * native/fdlibm/s_finite.c, * native/fdlibm/s_floor.c, * native/fdlibm/s_rint.c, * native/fdlibm/s_scalbn.c, * native/fdlibm/s_sin.c, * native/fdlibm/s_tan.c, * native/fdlibm/w_acos.c, * native/fdlibm/w_asin.c, * native/fdlibm/w_atan2.c, * native/fdlibm/w_acos.c, * native/fdlibm/w_exp.c, * native/fdlibm/w_fmod.c, * native/fdlibm/w_log.c, * native/fdlibm/w_pow.c, * native/fdlibm/w_remainder.c, * native/fdlibm/w_sqrt.c: Updated to fdlibm 5.3. * native/fdlibm/e_cosh.c, * native/fdlibm/e_hypot.c, * native/fdlibm/e_log10.c, * native/fdlibm/e_sinh.c, * native/fdlibm/s_cbrt.c, * native/fdlibm/s_expm1.c, * native/fdlibm/s_log1p.c, * native/fdlibm/s_tanh.c, * native/fdlibm/w_cosh.c, * native/fdlibm/w_hypot.c, * native/fdlibm/w_log10.c, * native/fdlibm/w_sinh.c: Imported from fdlibm 5.3. * native/fdlibm/fdlibm.h: Imported from fdlibm 5.3 with Classpath additions. * native/fdlibm/namespace.h: Updated from new math_symbols file. * native/jni/java-lang/java_lang_VMMath.c: (Java_java_lang_VMMath_cbrt(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_cosh(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_expm1(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_hypot(JNIEnv*,jclass,jdouble,jdouble)): Implemented. (Java_java_lang_VMMath_log10(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_log1p(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_sinh(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_tanh(JNIEnv*,jclass,jdouble)): Implemented. * scripts/math_symbols: Added tanh, expm1, log10 and log1p. * vm/reference/java/lang/VMMath.java: (cbrt(double)): Implemented. (cosh(double)): Implemented. (expm1(double)): Implemented. (hypot(double,double)): Implemented. (log10(double)): Implemented. (log1p(double)): Implemented. (sinh(double)): Implemented. (tanh(double)): Implemented.
* 2006-02-13 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-02-132-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/Makefile.am: Swapped Math.h for VMMath.h * include/java_lang_Math.h: Removed. * include/java_lang_VMMath.h: New autogenerated header for the new class. * java/lang/Math.java: (sin(double)): Changed to link to VMMath. (cos(double)): Changed to link to VMMath. (tan(double)): Changed to link to VMMath. (asin(double)): Changed to link to VMMath. (acos(double)): Changed to link to VMMath. (atan(double)): Changed to link to VMMath. (atan2(double)): Changed to link to VMMath. (exp(double)): Changed to link to VMMath. (log(double)): Changed to link to VMMath. (sqrt(double)): Changed to link to VMMath. (pow(double,double)): Changed to link to VMMath. (IEEEremainder(double,double)): Changed to link to VMMath. (ceil(double)): Changed to link to VMMath. (floor(double)): Changed to link to VMMath. (rint(double)): Changed to link to VMMath. * native/jni/java-lang/Makefile.am: Replaced java_lang_Math.c with java_lang_VMMath.c * native/jni/java-lang/java_lang_Math.c: Removed. * native/jni/java-lang/java_lang_VMMath.c: Renamed from java_lang_Math.c. * vm/reference/java/lang/VMMath.java: New class. (sin(double)): New native method. (cos(double)): New native method. (tan(double)): New native method. (asin(double)): New native method. (acos(double)): New native method. (atan(double)): New native method. (atan2(double)): New native method. (exp(double)): New native method. (log(double)): New native method. (sqrt(double)): New native method. (pow(double,double)): New native method. (IEEEremainder(double,double)): New native method. (ceil(double)): New native method. (floor(double)): New native method. (rint(double)): New native method.
* 2006-01-26 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2006-01-261-1/+21
| | | | | | * native/jni/java-lang/java_lang_VMDouble.c (doubleToLongBits) (doubleToRawLongBits, longBitsToDouble): Swap the byte ordering for little-endian arms without VFP.
* 2006-01-25 Roman Kennke <kennke@aicas.com>Roman Kennke2006-01-251-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac * native/Makefile.am * native/jni/classpath/Makefile.am * native/jni/classpath/jcl.c * native/jni/classpath/jcl.h * native/jni/classpath/native_state.c * native/jni/gtk-peer/Makefile.am * native/jni/java-io/Makefile.am * native/jni/java-io/java_io_VMFile.c * native/jni/java-io/java_io_VMObjectStreamClass.c * native/jni/java-lang/Makefile.am * native/jni/java-net/Makefile.am * native/jni/java-net/java_net_VMInetAddress.c * native/jni/java-net/javanet.c * native/jni/java-net/javanet.h * native/jni/java-nio/Makefile.am * native/jni/java-nio/gnu_java_nio_VMPipe.c * native/jni/java-nio/gnu_java_nio_VMSelector.c * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c * native/jni/java-nio/java_nio_MappedByteBufferImpl.c * native/jni/java-nio/java_nio_VMDirectByteBuffer.c * native/jni/java-util/Makefile.am * native/jni/java-util/java_util_VMTimeZone.c * native/jni/midi-dssi/Makefile.am * native/jni/xmlj/Makefile.am * native/target/Makefile.am * native/target/Linux/target_native_math.h * native/target/Linux/target_native_memory.h * native/target/Linux/Makefile.am * native/target/Linux/target_native_io.h * native/target/Linux/target_native_math_float.h * native/target/Linux/target_native_math_int.h * native/target/generic/target_generic.c * native/target/generic/target_generic_io.c * native/target/generic/target_generic_math.h * native/target/generic/target_generic_memory.h * native/target/generic/target_generic_misc.c * native/target/generic/target_generic_network.c * native/target/generic/Makefile.am * native/target/generic/target_generic.h * native/target/generic/target_generic_file.h * native/target/generic/target_generic_io.h * native/target/generic/target_generic_math_float.h * native/target/generic/target_generic_math_int.h * native/target/generic/target_generic_misc.h * native/target/generic/target_generic_network.h: Reverted target native related changes back to the state of the 0.20 release. * native/target/MinGW/.cvsignore * native/target/MinGW/Makefile.am * native/target/MinGW/target_native.h * native/target/MinGW/target_native_file.h * native/target/MinGW/target_native_io.h * native/target/MinGW/target_native_math.h * native/target/MinGW/target_native_memory.h * native/target/MinGW/target_native_misc.h * native/target/MinGW/target_native_network.h * native/target/RTEMS/.cvsignore * native/target/RTEMS/Makefile.am * native/target/RTEMS/target_native.h * native/target/RTEMS/target_native_file.h * native/target/RTEMS/target_native_io.h * native/target/RTEMS/target_native_math.h * native/target/RTEMS/target_native_memory.h * native/target/RTEMS/target_native_misc.h * native/target/RTEMS/target_native_network.h * native/target/SunOS/.cvsignore * native/target/SunOS/Makefile.am * native/target/SunOS/target_native.h * native/target/SunOS/target_native_file.h * native/target/SunOS/target_native_io.h * native/target/SunOS/target_native_math.h * native/target/SunOS/target_native_memory.h * native/target/SunOS/target_native_misc.h * native/target/SunOS/target_native_network.h * native/target/embOS/.cvsignore * native/target/embOS/Makefile.am * native/target/embOS/target_native.h * native/target/embOS/target_native_file.h * native/target/embOS/target_native_io.c * native/target/embOS/target_native_io.h * native/target/embOS/target_native_math.h * native/target/embOS/target_native_memory.h * native/target/embOS/target_native_misc.h * native/target/embOS/target_native_network.h * native/target/posix/.cvsignore * native/target/posix/Makefile.am * native/target/posix/target_posix.c * native/target/posix/target_posix.h * native/target/posix/target_posix_file.c * native/target/posix/target_posix_file.h * native/target/posix/target_posix_io.c * native/target/posix/target_posix_io.h * native/target/posix/target_posix_math.c * native/target/posix/target_posix_math.h * native/target/posix/target_posix_memory.c * native/target/posix/target_posix_memory.h * native/target/posix/target_posix_misc.c * native/target/posix/target_posix_misc.h * native/target/posix/target_posix_network.c * native/target/posix/target_posix_network.h: Removed.
* 2006-01-17 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2006-01-171-9/+14
| | | | | | | | | | | | | * configure.ac: Set TARGET. * native/Makefile.am, native/jni/classpath/Makefile.am, native/jni/gtk-peer/Makefile.am, native/jni/java-io/Makefile.am, native/jni/java-lang/Makefile.am, native/jni/java-net/Makefile.am, native/jni/java-nio/Makefile.am, native/jni/midi-dssi/Makefile.am, native/jni/xmlj/Makefile.am, native/target/Makefile.am, native/target/Linux/Makefile.am, native/target/generic/Makefile.am, native/target/posix/Makefile.am: Build libclasspath.so with jcl and target stuff linked in and link it against lib*.so libraries.
* 2005-11-15 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2005-11-151-0/+5
| | | | | | | * native/jni/java-lang/java_lang_VMDouble.c (initIDs): Register clsDouble as global ref. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c (gtkInit): Register gtkgenericpeer as global ref.
* 2005-10-23 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2005-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Added support for "--with-native-libdir" and "--with-glibj-dir". Generate copy-vmresources.sh * lib/Makefile.am: Call copy-vmresources.sh to fetch possible vm resources from the vmdirs. * lib/copy-vmresources.sh.in: New script file. * lib/gen-classlist.sh.in: Include com/ as base package for the vm directories. * native/jawt/Makefile.am, native/jni/gtk-peer/Makefile.am, native/jni/java-io/Makefile.am, native/jni/java-lang/Makefile.am, native/jni/java-net/Makefile.am, native/jni/java-nio/Makefile.am, native/jni/java-util/Makefile.am, native/jni/midi-alsa/Makefile.am, native/jni/midi-dssi/Makefile.am, native/jni/qt-peer/Makefile.am, native/jni/xmlj/Makefile.am: Install libraries in nativelibdir and not pkglib.
* Reported by Christian Thalinger <twisti@complang.tuwien.ac.at>Mark Wielaard2005-10-121-2/+1
| | | | | | * native/jni/java-lang/java_lang_VMProcess.c (Java_java_lang_VMProcess_nativeSpawn): Don't delete clazz local reference twice.
* 2005-10-05 Christian Thalinger <twisti@complang.tuwien.ac.at>Tom Tromey2005-10-051-0/+1
| | | | | | | | | * m4/acattribute.m4: Added. * configure.ac: Added AC_C_ATTRIBUTE. * native/fdlibm/java-assert.h: Added missing config.h include, changed comments to C comments. * native/jni/java-lang/java_lang_reflect_Array.c: Added missing config.h include.
* * native/jni/java-lang/java_lang_VMDouble.cMark Wielaard2005-08-241-5/+0
| | | | (Java_java_lang_VMDouble_parseDouble): Remove KISSME_LINUX_USER hack.
* * all files: Update for new FSF address.Mark Wielaard2005-07-026-12/+12
|
* 2005-04-16 Michael Koch <konqueror@gmx.de>Michael Koch2005-04-164-375/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/java_lang_Double.h, include/java_lang_Object.h, native/jni/java-lang/java_lang_Double.c, native/jni/java-lang/java_lang_Object.c: Removed. * include/java_lang_VMDouble.h: Regenerated. * java/lang/Double.java (static): Removed. (toString): Call native method from VMDouble. (parseDouble): Make non-native and call native method from VMDouble. (toString): Removed. * java/lang/Float.java (toString): Call native method from VMDouble. * java/lang/Object.java (getClass): Refactored to call the native in java.lang.VMObject. * include/Makefile.am: Don't generate java_lang_Double.h and java_lang_Object.h. * native/jni/java-lang/Makefile.am: Removed java_lang_Double.c and java_lang_Object.c. * native/jni/java-lang/java_lang_VMDouble.c (initIDs): New method. (toString): Likewise. (parseDouble): Likewise. * vm/reference/java/lang/VMDouble.java (initIDs): Likewise. (toString): Likewise. (parseDouble): Likewise. * vm/reference/java/lang/VMObject.java (getClass): Likewise.
* 2005-04-09 Mark Wielaard <mark@klomp.org>Michael Koch2005-04-097-27/+27
| | | | | | | | | | | | | | | | | | | | | | * native/jni/java-lang/java_lang_Double.c: Reindent. * native/jni/java-lang/java_lang_Math.c: Likewise. * native/jni/java-lang/java_lang_Object.c: Likewise. * native/jni/java-lang/java_lang_VMDouble.c: Likewise. * native/jni/java-lang/java_lang_VMFloat.c: Likewise. * native/jni/java-lang/java_lang_VMSystem.c: Likewise. * native/jni/java-lang/java_lang_reflect_Array.c: Likewise. * native/jni/java-nio/java_nio.c (Java_gnu_java_nio_FileChannelImpl_nio_1mmap_1file): Removed. (Java_gnu_java_nio_FileChannelImpl_nio_1unmmap_1file): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketCreate): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketConnect): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketBind): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketListen): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketAvailable): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketClose): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketRead): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketWrite): Likewise. * native/jni/java-nio/java_nio_VMDirectByteBuffer.c: Reindent.
* 2005-04-08 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2005-04-088-353/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * native/jni/classpath/jcl.h, native/jni/java-io/java_io_ObjectInputStream.c, native/jni/java-io/java_io_VMFile.c, native/jni/java-io/java_io_VMObjectStreamClass.c, native/jni/java-io/javaio.c, native/jni/java-lang/java_lang_Double.c, native/jni/java-lang/java_lang_Math.c, native/jni/java-lang/java_lang_Object.c, native/jni/java-lang/java_lang_VMDouble.c, native/jni/java-lang/java_lang_VMFloat.c, native/jni/java-lang/java_lang_VMProcess.c, native/jni/java-lang/java_lang_VMSystem.c, native/jni/java-lang/java_lang_reflect_Array.c, native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c, native/jni/java-net/gnu_java_net_PlainSocketImpl.c, native/jni/java-net/java_net_InetAddress.c, native/jni/java-net/java_net_NetworkInterface.c, native/jni/java-net/javanet.c, native/jni/java-nio/gnu_java_nio_VMPipe.c, native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c, native/jni/java-nio/java_nio.c, native/jni/java-nio/java_nio_MappedByteBufferImpl.c, native/jni/java-nio/java_nio_VMDirectByteBuffer.c, native/jni/java-util/java_util_VMTimeZone.c: Reindented using GNU indent (GNU style).
* * native/jni/java-lang/java_lang_VMProcess.c: Fix segfaultArchie Cobbs2005-03-121-0/+2
| | | | in the case that a zero length command array is passed.
* * native/jni/java-io/java_io_VMFile.cMark Wielaard2005-01-091-0/+1
| | | | | | | | | | | | (Java_java_io_VMFile_create): Call JCL_free_cstring() when done with string. * native/jni/java-io/javaio.c (_javaio_open_read): Likewise. (_javaio_open_readwrite): Likewise. * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_getenv): Likewise. * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c (Java_gnu_java_nio_channels_FileChannelImpl_open): Likewise.
* 004-12-21 Chris Burdess <dog@gnu.org>Chris Burdess2004-12-211-1/+9
| | | | | | | * configure.ac: Check for presence of crt_externs.h on Darwin. * native/jni/java-lang/java_lang_VMProcess.c: If HAVE_CRT_EXTERNS_H is defined, define environ as calling _NSGetEnviron(), otherwise define it as an external variable.
* 2004-12-06 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2004-12-061-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/classpath/SystemProperties.java: New file. * vm/reference/gnu/classpath/VMSystemProperties.java: New file. * gnu/java/io/EncodingManager.java, gnu/java/net/protocol/file/Connection.java, java/io/File.java, java/lang/Throwable.java, java/security/Security.java, java/security/cert/X509CRLSelector.java, java/security/cert/X509CertSelector.java, java/util/Locale.java, vm/reference/java/lang/VMClassLoader.java: Modified to use SystemProperties. * java/lang/Class.java: Modified to use SecurityManager.current. * java/lang/ClassLoader.java (StaticData.systemClassLoader): New field. (StaticData.static): New static initializer to install default security manager. (ClassLoader()): Modified to use StaticData.systemClassLoader. ClassLoader(ClassLoader)): Modified to use SecurityManager.current. (findSystemClass): Modified to use StaticData.systemClassLoader. (getParent): Modified to use SecurityManager.current. (getSystemResource,getSystemResources): Modified to use StaticData.systemClassLoader. (getSystemClassLoader): Modified to use SecurityManager.current and StaticData.systemClassLoader. (getExtClassLoaderUrls,getSystemClassLoaderUrls): Modified to use SystemProperties. (defaultGetSystemClassLoader): Modified to use SecurityManager.current and SystemProperties. (getSystemProperty): Removed. * java/lang/Runtime.java (securityManager): Removed. (defaultProperties): Removed. (static): Removed. (Runtime): Modified to use SystemProperties. (exit,removeShutdownHook,halt,runFinalizersOnExit,exec,load,loadLib): Modified to use SecurityManager.current. (loadLibrary): Modified to use SecurityManager.current and changed call to System.mapLibraryName to VMRuntime.mapLibraryName. * java/lang/SecurityManager.java (current): New field. * java/lang/System.java (systemClassLoader): Removed. (properties): Removed. (in,out,err): Initialize in-line. (static): Removed. (initLoadLibrary): Removed. (initProperties): Removed. (initSystemClassLoader): Removed. (initSecurityManager): Removed. (setIn,setOut,setErr,setSecurityManager,getSecurityManager,getenv): Modified to use SecurityManager.current. (getProperties,setProperties,getProperty(String), getProperty(String,String),setProperty): Modified to use SecurityManager.current and SystemProperties. (mapLibraryName): Modified to call VMRuntime.mapLibraryName. * java/lang/Thread.java: Modified to use SecurityManager.current. * java/lang/ThreadGroup.java: Modified to use SecurityManager.current. * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_isWordsBigEndian): Removed. * vm/reference/java/lang/VMRuntime.java (nativeGetLibname): Removed (renamed to mapLibraryName). (mapLibraryName): New method. (insertSystemProperties): Removed. * vm/reference/java/lang/VMSystem.java (isWordsBigEndian): Removed.
* 2004-10-28 Michael Koch <konqueror@gmx.de>Michael Koch2004-10-286-71/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c, native/jni/java-lang/java_lang_Double.c, native/jni/java-lang/java_lang_Math.c, native/jni/java-lang/java_lang_Object.c, native/jni/java-lang/java_lang_VMDouble.c, native/jni/java-lang/java_lang_VMFloat.c, native/jni/java-lang/java_lang_reflect_Array.c: Fixed method names to start at begin of line. This is desired by GNU coding style guide.
* * configure.ac (CLASSPATH_MODULE): Add -no-undefined.Mark Wielaard2004-10-267-42/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Werror): New configure flag. (gtk-peer): Remove comma from help string. (AM_CFLAGS): Replace by... (WARNING_CFLAGS, STRICT_WARNING_CFLAGS, ERROR_CFLAGS): New gcc flags. (AM_CPPFLAGS): Replace by... (CLASSPATH_INCLUDES): New -I gcc flags. * native/fdlibm/Makefile.am: Use new AM_LDFLAGS, AM_CPPFLAGS and AM_CFLAGS when not library specific flags are used. * native/jni/gtk-peer/Makefile.am: Likewise. * native/jni/java-io/Makefile.am: Likewise. * native/jni/java-lang/Makefile.am: Likewise. * native/jni/java-net/Makefile.am: Likewise. * native/jni/java-nio/Makefile.am: Likewise. * native/jni/java-util/Makefile.am: Likewise. * native/jni/java-io/java_io_ObjectInputStream.c: Mark function arguments unused where necessary. * native/jni/java-io/java_io_VMFile.c: Likewise. * native/jni/java-io/java_io_VMObjectStreamClass.c: Likewise. (getFieldReference): Make sure we allocate the_type ourselves if we free it later. Removed unused argument object. * native/jni/java-io/javaio.c (javaio_read): Removed unused argument obj. (javaio_write): Likewise. * native/jni/java-io/javaio.h: Mark function arguments unused where necessary. * native/jni/java-lang/java_lang_Double.c: Likewise. (Java_java_lang_Double_parseDouble): Declare buf as const char*. * native/jni/java-lang/java_lang_Math.c: Mark function arguments unused where necessary. * native/jni/java-lang/java_lang_VMDouble.c: Likewise. * native/jni/java-lang/java_lang_VMFloat.c: Likewise. * native/jni/java-lang/java_lang_VMSystem.c: Likewise. * native/jni/java-lang/java_lang_reflect_Array.c: Likewise. * native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c (Java_gnu_java_net_PlainDatagramSocketImpl_receive0): Mark only maxlen and offset as unsigned. * native/jni/java-net/java_net_InetAddress.c: Mark function arguments unused where necessary. (Java_java_net_InetAddress_getHostByName): New local int variable max_addresses. * native/jni/java-net/java_net_NetworkInterface.c: Mark function arguments unused where necessary. * native/jni/java-net/javanet.c (_javanet_set_int_field): Removed unused argument class. (_javanet_accept): Check result variable after it has been assigned. * native/jni/java-nio/gnu_java_nio_NIOServerSocket.c: Mark function arguments unused where necessary. * native/jni/java-nio/gnu_java_nio_VMPipe.c: Likewise. * native/jni/java-nio/gnu_java_nio_VMSelector.c: Likewise. * native/jni/java-nio/gnu_java_nio_VMSelector.c: Likewise. * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c: Likewise. * native/jni/java-nio/java_nio_DirectByteBufferImpl.c: Likewise. * native/jni/java-nio/java_nio_MappedByteBufferImpl.c: Likewise. * native/jni/java-nio/java_nio_channels_Channels.c: Likewise. * native/jni/java-util/java_util_VMTimeZone.c (jint_to_charbuf): Mark as static function. (Java_java_util_VMTimeZone_getSystemTimeZoneId): Mark clazz argument as unused. Cast _timezone to long before use. * native/target/generic/target_generic_network.h: Remove asserts.
* 2004-10-10 Sven de Marothy <sven@physto.se>Sven de Marothy2004-10-101-0/+24
| | | | | | | * native/jni/java-lang/java_lang_Double.c (parseDouble): Add handling of NaN/Infinity (bug #10491) * java/nio/ByteBufferHelper.java (putDouble): Use Double.toRawLongBits instead (bug #9106)
* * java/lang/System.java (getenv): Do security checks and callMark Wielaard2004-08-281-1/+18
| | | | | | | | | | VMSystem.getenv(). * vm/reference/java/lang/VMSystem.java (getenv): New static native method. * native/jni/java-lang/java_lang_VMSystem.c (getenv): New function. * include/java_lang_VMSystem.h: Regenerated. * NEWS: Mention new VMSystem.getenv() method and reference implementation in Runtime Interface section.
* 2004-05-21 Michael Koch <konqueror@gmx.de>Michael Koch2004-05-211-15/+11
| | | | | | | | | | | | | | | | | * acinclude.m4 (CLASSPATH_WITH_INCLUDEDIR): Removed. * configure.ac (EXTRA_INCLUDES): Removed. (AM_CPPFLAGS): New variable to store needed includes. * native/fdlibm/Makefile.am (INCLUDES): Removed. * native/jni/classpath/Makefile.am (INCLUDES): Removed. * native/jni/gtk-peer/Makefile.am: Use libgtkpeer_la_CPPFLAGS instead of INCLUDES. * native/jni/java-awt/Makefile.am (INCLUDES): Removed. * native/jni/java-io/Makefile.am (INCLUDES): Removed. * native/jni/java-lang/Makefile.am: Use libjavalang_la_CFLAGS and libjavalangreflect_la_CFLAGS instead of INCLUDES. * native/jni/java-net/Makefile.am (INCLUDES): Removed. * native/jni/java-nio/Makefile.am (INCLUDES): Removed. * native/jni/java-util/Makefile.am (INCLUDES): Removed.
* 2004-04-30 Michael Koch <konqueror@gmx.de>Michael Koch2004-04-302-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/gnu_java_awt_peer_gtk_GdkFontMetrics.h, include/gnu_java_awt_peer_gtk_GdkGraphics.h, include/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.h, include/gnu_java_awt_peer_gtk_GtkLabelPeer.h, include/gnu_java_awt_peer_gtk_GtkMenuBarPeer.h, include/gnu_java_awt_peer_gtk_GtkMenuPeer.h, include/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.h, include/gnu_java_awt_peer_gtk_GtkScrollPanePeer.h, include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h, include/gnu_java_awt_peer_gtk_GtkTextAreaPeer.h, include/gnu_java_awt_peer_gtk_GtkTextFieldPeer.h, include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Fixed stange method signatures produced by buggy gcjh. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c: Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c (dispose): Removed. (remove): Removed. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (dispose): Removed. (requestFocus): Removed. (gtkWidgetSetUSize): Removed. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (setTitle): Removed. * native/jni/gtk-peer/gthread-jni.c (gdk_threads_wake): Removed * native/jni/java-io/javaio.h (_javaio_open_read): Added prototype. (_javaio_open_readwrite): Likewise. * native/jni/java-lang/java_lang_VMDouble.c: Include java_lang_VMDouble.h. * native/jni/java-lang/java_lang_reflect_Array.c (getLength): Removed. * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c (nativeGetLength): Removed.
* 2004-04-29 Michael Koch <konqueror@gmx.de>Michael Koch2004-04-292-1/+4
| | | | | | | | | | | | | | * native/jni/java-io/java_io_VMObjectStreamClass.c (getFieldReference): Use char* for strings, not jbyte*. * native/jni/java-lang/java_lang_VMProcess.c (copy_string): Likewise. * native/jni/java-lang/java_lang_VMSystem.c: Include jcl.h for JCL_FindClass definition. * native/jni/java-nio/gnu_java_nio_NIOServerSocket.c (getPlainSocketImpl): Return NULL. * native/jni/java-nio/java_nio_DirectByteBufferImpl.c (getImpl): Don't return anything. (adjustAddress): Return NULL.