| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
SocketTimeoutException on EAGAIN timeout.
|
|
|
|
|
|
|
|
| |
(Java_java_net_VMInetAddress_getHostByAddr): Add error string as
exception message.
* native/jni/java-net/javanet.c (_javanet_accept): Likewise.
(_javanet_shutdownInput): Likewise.
(_javanet_shutdownOutput): Likewise.
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_PlainSocketImpl.c: Include
target_native_file.h. PR classpath/22926.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Whenever an ExceptionOccurred just return to throw it, don't mask.
* native/jni/java-net/javanet.c (_javanet_get_netaddr): Check for
NULL addr.
(_javanet_create): Explicitly close socket on failure.
(_javanet_close): Save error message and retry closing when
interrupted before throwing exception.
(_javanet_connect): Keep retrying connect after system call
interrupted. First construct exception before cleanup.
(_javanet_bind): Save error string for exception.
(_javanet_accept): Explicitly close socket on failure.
(_javanet_recvfrom): Throw SocketTimeoutException when timed out.
(_javanet_sendto): Send all data even when interrupted.
(_javanet_set_option): Don't ignore error when setting SO_TIMEOUT.
* native/target/generic/target_generic_network.h
(TARGET_NATIVE_NETWORK_SOCKET_SET_OPTION_SO_TIMEOUT): Use timeval for
setsockopt.
(TARGET_NATIVE_NETWORK_SOCKET_GET_OPTION_SO_TIMEOUT): Likewise for
getsockopt.
|
| |
|
|
|
|
|
|
| |
* native/jni/java-net/Makefile.am
Compile new files java_net_VMInetAddress.c and
java_net_VMNetworkInterface.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/net/InetAddress.java
(static): Removed.
(getLocalHostname): Likewise.
(lookupInaddrAny): Likewise.
(getHostByAddr): Likewise.
(getHostByName): Likewise.
* java/net/NetworkInterface.java
(static): Likewise.
(getRealNetworkInterfaces): Likewise.
* native/jni/java-net/java_net_InetAddress.c: Renamed to...
* native/jni/java-net/java_net_VMInetAddress.c: New file.
Renamed from java_net_InetAddress.c. All native methods moved to class
VMInetAddress.
* native/jni/java-net/java_net_NetworkInterface.c: Renamed to...
Renamed from java_net_NetworkInterface.c. All native methods moved to
class VMNetworkInterface.
* native/jni/java-net/java_net_VMNetworkInterface.c: New file.
* vm/reference/java/net/VMInetAddress.java,
vm/reference/java/net/VMNetworkInterface.java: New files.
* include/java_net_InetAddress.h,
include/java_net_NetworkInterface.h: Removed.
* include/java_net_VMInetAddress.h,
include/java_net_VMNetworkInterface.h: New files.
* include/Makefile.am: Build new header files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/net/PlainSocketImpl.java
(shutdownInput): Made native. Throws IOException. Added Javadoc.
(shutdownOutput): Likewise.
* include/gnu_java_net_PlainSocketImpl.h: Regenerated.
* native/jni/java-net/gnu_java_net_PlainSocketImpl.c
(Java_gnu_java_net_PlainSocketImpl_shutdownInput): New method.
(Java_gnu_java_net_PlainSocketImpl_shutdownOutput): Likewise.
* native/jni/java-net/javanet.c
(_javanet_shutdownInput): Likewise.
(_javanet_shutdownOutput): Likewise.
* native/jni/java-net/javanet.h
(_javanet_shutdownInput): Likewise.
(_javanet_shutdownOutput): Likewise.
|
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c:
Replaced 'this' arguments by 'obj' to make source compatible with
C++ compilers.
|
|
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c:
Add dummy return values for WITHOUT_NETWORK code path.
(Java_gnu_java_net_PlainDatagramSocketImpl_receive0): Check fid not
NULL for maxlen field id.
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_PlainSocketImpl.c: Added missing
return values for WITHOUT_NETWORK code path.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
(receive0): Don't byte-swap already-swapped remote port
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c
(receive0): Fix usage of java.net.DatagramPacket class.
|
|
|
|
| |
EINTR.
|
|
|
|
|
|
|
| |
* native/jni/java-net/javanet.h
(BIND_EXCEPTION): New define.
* native/jni/java-net/javanet.c
(_javanet_bind): Throw correct exception on failed bind().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Initialize CLASSPATH_MODULE.
* native/fdlibm/Makefile.am,
native/jni/classpath/Makefile.am,
native/jni/gtk-peer/Makefile.am,
native/jni/java-awt/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:
Use new @CLASSPATH_MODULE@.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
longlong (jlong) support and modern POSIX and BSD C library
funtions/prototypes.
* native/fdlibm/Makefile.am: Cancel out project wide AM_CFLAGS.
* native/fdlibm/mprec.h: Remove C++ comments.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Turn C++
comments into C comments.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
Likewise.
* native/jni/java-io/FileDescriptor.c: Likewise.
* native/jni/java-io/java_io_File.c: Likewise.
* native/jni/java-io/javaio.c: Remove unused fprintf calls.
* native/jni/java-net/javanet.c: Turn C++ comments into C comments.
* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c:
Likewise.
* native/target/generic/target_generic_file.h: Likewise.
* native/target/generic/target_generic_network.h: Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/fdlibm/dtoa.c, 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_pow.c,
native/fdlibm/e_rem_pio2.c, native/fdlibm/e_remainder.c,
native/fdlibm/e_scalb.c, native/fdlibm/e_sqrt.c,
native/fdlibm/fdlibm.h, native/fdlibm/k_cos.c,
native/fdlibm/k_rem_pio2.c, native/fdlibm/k_sin.c,
native/fdlibm/k_tan.c, native/fdlibm/mprec.c,
native/fdlibm/mprec.h, 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_floor.c, native/fdlibm/s_rint.c,
native/fdlibm/s_scalbn.c, native/fdlibm/s_sin.c,
native/fdlibm/s_tan.c, native/fdlibm/sf_fabs.c,
native/fdlibm/sf_rint.c, native/fdlibm/strtod.c,
native/fdlibm/w_acos.c, native/fdlibm/w_asin.c,
native/fdlibm/w_atan2.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, native/jni/classpath/jcl.c,
native/jni/classpath/jcl.h, native/jni/classpath/jnilink.c,
native/jni/classpath/jnilink.h,
native/jni/classpath/native_state.c,
native/jni/classpath/native_state.h,
native/jni/classpath/primlib.c, native/jni/classpath/primlib.h,
native/jni/gtk-peer/gdkfont.h,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.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_GdkPixbufDecoder.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.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_GtkPanelPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,
native/jni/gtk-peer/gthread-jni.c, native/jni/gtk-peer/gtkpeer.h,
native/jni/java-awt/gnu_java_awt_EmbeddedWindow.c,
native/jni/java-io/FileDescriptor.c,
native/jni/java-io/java_io_File.c,
native/jni/java-io/java_io_ObjectInputStream.c,
native/jni/java-io/java_io_VMObjectStreamClass.c,
native/jni/java-io/javaio.c, native/jni/java-io/javaio.h,
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_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-net/javanet.h,
native/jni/java-nio/gnu_java_nio_NIOServerSocket.c,
native/jni/java-nio/java_nio.c,
native/jni/java-nio/java_nio_DirectByteBufferImpl.c,
native/jni/java-nio/java_nio_FileChannelImpl.c,
native/jni/java-nio/java_nio_FileLockImpl.c,
native/jni/java-util/java_util_TimeZone.c,
native/target/Linux/target_native.h,
native/target/Linux/target_native_file.h,
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/Linux/target_native_misc.h,
native/target/Linux/target_native_network.h,
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,
native/testsuite/guile-jvm.c, native/vmi/vmi.c, native/vmi/vmi.h:
Indented using GNU indent.
|
|
|
|
|
|
|
|
|
| |
* gnu/java/net/PlainDatagramSocketImpl.java
(sendTo): Added offset argument.
* include/gnu_java_net_PlainDatagramSocketImpl.h: Regenerated.
* native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c
(receive0): Use completely available space in buffer array.
(sendTo): Use offset.
|
|
|
|
| |
java/net to gnu/java/net.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/net/InetAddress.java
(isSiteLocalAddress): Made hexadecimal numbers lowercase.
(getLocalHostname): Renamed from getLocalHostName, fixed
documentation.
(aton): New method.
(getByName): Moved functionality to aton(), simplified code.
(getLocalHost): Reformated.
(lookupInaddrAny): Reformated.
* include/java_net_InetAddress.h: Regenerated.
* native/jni/java-net/java_net_InetAddress.c
(getLocalHostname): Renamed from getLocalHostName.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/net/PlainDatagramSocketImpl.java,
gnu/java/net/PlainSocketImpl.java,
gnu/java/net/SocketInputStream.java,
gnu/java/net/SocketOutputStream.java: Moved from java/net.
* gnu/java/net/Makefile.am
(EXTRA_DIST): Added new files:
PlainDatagramSocketImpl.java, PlainSocketImpl.java,
SocketInputStream.java, SocketOutputStream.java.
* include/gnu_java_net_PlainDatagramSocketImpl.h,
include/gnu_java_net_PlainSocketImpl.h: New generated JNI header.
* include/java_net_PlainDatagramSocketImpl.h,
include/java_net_PlainSocketImpl.h: Removed generated JNI header.
* include/Makefile.am: Generate and install new JNI header files
instead of the old ones.
* java/net/PlainDatagramSocketImpl.java,
java/net/PlainSocketImpl.java,
java/net/SocketInputStream.java,
java/net/SocketOutputStream.java: Moved to gnu/java/net.
* java/net/DatagramSocket.java:
Import gnu.java.net.PlainDatagramSocketImpl.
* java/net/ServerSocket.java,
java/net/Socket.java: Import gnu.java.net.PlainSocketImpl.
* java/net/Makefile.am (EXTRA_DIST): Removed the following files:
PlainDatagramSocketImpl.java, PlainSocketImpl.java,
SocketInputStream.java, SocketOutputStream.java.
* native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c,
native/jni/java-net/gnu_java_net_PlainSocketImpl.c,
native/jni/java-net/java_net_PlainDatagramSocketImpl.c,
native/jni/java-net/java_net_PlainSocketImpl.c:
Moved from java.net namespace to gnu.java.net.
* native/jni/java-net/Makefile.am:
Compile new files instead of old ones.
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/java-net/java_net_PlainDatagramSocketImpl.c (receive, receive0): renamed receive to receive0
* include/java_net_PlainDatagramSocketImpl.h (receive, receive0): renamed receive to receive0
* java/net/PlainDatagramSocketImpl.java (receive0): added
(receive): changed to call receive0 and serialize access on RECEIVE_LOCK
(send): chanded to serialize access on SEND_LOCK
|
|
|
|
|
|
|
|
|
|
|
| |
* java/net/SocketImpl.java (toString): Display the remote address
of an unconnected server socket as "0.0.0.0/0.0.0.0".
* native/jni/java-net/javanet.c (_javanet_connect):
Don't create a new InetAddress for the remote host.
Instead, attach the parameter InetAddress to the
connected SocketImpl object.
* java/net/PlainSocketImpl.java (connect):
Implemented connect(SocketAddress, int) overloading.
|
|
|
|
| |
Java_java_net_PlainDatagramSocketImpl_receive, Java_java_net_PlainDatagramSocketImpl_sendto
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.in:
Added native/jni/java-nio/Makefile to AC_OUTPUT call.
* include/gnu_java_nio_FileChannelImpl.h:
Regenrated.
* include/gnu_java_nio_FileLockImpl.h,
include/java_nio_DirectByteBufferImpl.h:
New files.
* native/jni/Makefile.am
(SUBDIRS): Added new java-nio subdir.
* native/jni/java-io/Makefile.am:
Removed java_nio.c from compilation.
* native/jni/java-io/java_nio.c:
Removed.
* native/jni/java-net/java_net_NetworkInterface.c
(getRealNetworkInterfaces): Fixed arguments.
* native/jni/java-nio/.cvsignore,
native/jni/java-nio/Makefile.am,
native/jni/java-nio/java_nio.c,
native/jni/java-nio/java_nio_DirectByteBufferImpl.c,
native/jni/java-nio/java_nio_FileChannelImpl.c,
native/jni/java-nio/java_nio_FileLockImpl.c:
New files.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/PropertyPermission.java: Fix to prevent recursive
call during
initialization
* java/io/FileDescriptor.java (close) : clear nativeFD on
success
* java/net/PlainDatagramSocketImpl.java (setTTL): remap the TTL
passed
as an unsigned byte to an integer in the range 0..255
* native/jni/java-net/javanet.c (_javanet_get_option):
implement ..._get(SOCKOPT_SO_BINDADDR) -> 'getsockname'
syscall
* native/jni/java-net/javanet.c (_javanet_set_option):
implement ..._set(SOCKOPT_SO_BINDADDR) -> Exception
|
|
|
|
|
|
|
|
| |
* include/java_net_NetworkInterface.h: New file.
* java/net/NetworkInterface.java: Merged with libgcj.
* native/jni/java-net/java_net_NetworkInterface.c: New file.
* native/jni/java-net/Makefile.am
(libjavanet_la_SOURCES): Added java_net_NetworkInterface.c.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/zip/InflaterInputStream.java (markSupported): added method
(mark): added method
(reset): added method
2003-02-15 C. Brian Jones <cbj@gnu.org>
* native/jni/java-net/java_net_PlainSocketImpl.c: do not need to
specifically test for AIX since the configure check for the header
does what is needed.
|
|
|
|
|
|
| |
* native/jni/java-net/javanet.h (SOCKOPT_SO_KEEPALIVE): new #define
* native/jni/java-net/javanet.c (_javanet_set_option): case SO_KEEPALIVE
(_javanet_get_option): case SO_KEEPALIVE
|
|
|
|
|
|
|
|
|
|
|
| |
example and setting SO_REUSEADDR before binding the port, testing
with JDK seems to indicate it does this as well
(_javanet_set_option): support SO_REUSEADDR; use JNI_TRUE/JNI_FALSE
instead of 1/0 where applicable. Do not throw exception if setting
SO_TIMEOUT fails; appears JDK does not throw exception and may be
using alarm or setitimer (see `man 7 socket' on GNU/Linux)
(_javanet_get_option): support SO_REUSEADDR; use JNI_TRUE/JNI_FALSE
instead of 1/0 where applicable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* missing: ditto
* install-sh: ditto
* config.sub: ditto
* config.guess: ditto
* depcomp: ditto
* doc/texinfo.tex: ditto
* configure.in: check for headers sys/ioctl.h asm/ioctls.h
* native/jni/java-net/java_net_PlainSocketImpl.c: include config.h,
checks for HAVE_SYS_IOCTL_H and HAVE_ASM_IOCTL_H, exclude for _AIX
asm/ioctls.h, parts of patch from Julian Dolby
2003-01-10 Julian Dolby <dolby@us.ibm.com>
* native/fdlibm/fdlibm.h: define _XOPEN_SOURCE for AIX
* native/fdlibm/ieeefp.h: defines for _POWER as well as __PPC__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/java-net/java_net_InetAddress.c (getHostByName):
JCL_ThrowException takes hostname, not host.
* native/jni/java-net/javanet.c (_javanet_set_remhost_addr): New
method.
(_javanet_set_remhost): Use new method.
(_javanet_connect): Likewise.
* java/net/InetAddress.java (toString): Include hostname or alias if
known, but don't lookup.
* java/net/Socket.java (setSocketImplFactory): Throw SocketException
when fac == null.
2002-12-01 Julian Dolby <dolby@us.ibm.com>
* native/jni/java-net/java_net_PlainSocketImpl.c (available):
Implement.
|
|
|
|
|
|
|
| |
unsigned int.
* native/jni/java-net/java_net_InetAddress.c (getHostByName):
FindClass "[B", not "[I".
|
|
|
|
|
|
| |
Byte not Int arrays.
(getHostByAddr): Likewise.
(getHostByName): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remake classes when source changes or new classes are added.
Do not bother including glibj.zip in dist, it has to be remade
regardless due to path differences to source files we cannot control
in users' environment
* lib/gen-classlist.sh: create java.dep from this script instead of
mkdep.pl.in
* native/jni/gtk-peer/Makefile.am: added $(top_srcdir)/include to
INCLUDES
* native/jni/java-io/Makefile.am: added $(top_srcdir)/include to
INCLUDES
* native/jni/java-lang/Makefile.am: added $(top_srcdir)/include to
INCLUDES
* native/jni/java-net/Makefile.am: added $(top_srcdir)/include to
INCLUDES
* configure.in: removed mkdep.pl, mkcollections.pl from output.
Commented out check for Perl.
* acinclude.m4: do not fail if no javah program found
* include/.cvsignore: no longer ignore JNI headers
* include/gnu_java_awt_image_GdkPixbufDecoder.h: new file
* include/gnu_java_awt_peer_gtk_GdkFontMetrics.h: ditto
* include/gnu_java_awt_peer_gtk_GdkGraphics.h: ditto
* include/gnu_java_awt_peer_gtk_GtkButtonPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkCheckButtonPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkChoicePeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkClipboard.h: ditto
* include/gnu_java_awt_peer_gtk_GtkComponentPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkFramePeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkImagePainter.h: ditto
* include/gnu_java_awt_peer_gtk_GtkLabelPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkListPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkMainThread.h: ditto
* include/gnu_java_awt_peer_gtk_GtkMenuBarPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkMenuItemPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkMenuPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkPanelPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkScrollPanePeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkTextAreaPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkTextComponentPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkTextFieldPeer.h: ditto
* include/gnu_java_awt_peer_gtk_GtkToolkit.h: ditto
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: ditto
* include/gnu_java_lang_ExecutionStack.h: ditto
* include/java_io_FileDescriptor.h: ditto
* include/java_io_File.h: ditto
* include/java_io_FileInputStream.h: ditto
* include/java_io_FileOutputStream.h: ditto
* include/java_io_ObjectInputStream.h: ditto
* include/java_io_ObjectOutputStream.h: ditto
* include/java_io_RandomAccessFile.h: ditto
* include/java_lang_Class.h: ditto
* include/java_lang_Double.h: ditto
* include/java_lang_Float.h: ditto
* include/java_lang_Math.h: ditto
* include/java_lang_Object.h: ditto
* include/java_lang_reflect_Array.h: ditto
* include/java_lang_reflect_Constructor.h: ditto
* include/java_lang_reflect_Field.h: ditto
* include/java_lang_reflect_Method.h: ditto
* include/java_lang_reflect_Proxy.h: ditto
* include/java_lang_Runtime.h: ditto
* include/java_lang_System.h: ditto
* include/java_lang_Thread.h: ditto
* include/java_lang_Throwable.h: ditto
* include/java_lang_VMClassLoader.h: ditto
* include/java_net_InetAddress.h: ditto
* include/java_net_PlainDatagramSocketImpl.h: ditto
* include/java_net_PlainSocketImpl.h: ditto
* include/java_util_TimeZone.h: ditto
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/Makefile.am: ditto
* native/fdlibm/Makefile.am: ditto
* native/jni/java-io/Makefile.am: ditto
* native/jni/java-net/Makefile.am: ditto
* native/jni/java-util/Makefile.am: ditto
* java/io/Makefile.am: removed BlockDataException.java
* native/Makefile.am: removed empty SUBDIRS, added option to build
cni and jni libraries at the same time (if we actually built cni
libraries)
* configure.in: added native/cni/Makefile to output
|
| |
|
|
|
|
|
|
| |
message more clear.
* native/jni/java-net/javanet.h
(SOCKOPT_SO_SNDBUF,SOCKOPT_SO_REUSEADDR): swap definitions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
used in creating socket instead of calling a native method to retrieve
a value that cannot be changed (fixes Mauve regression).
* native/jni/classpath/jcl.h: #include <config.h> for definition
of DEBUG
* native/jni/java-net/java_net_PlainDatagramSocketImpl.c: Added
more checks for exceptions thrown from use of JNI functions to all
methods (fixes Mauve regression).
Debug messages cleaned up.
* native/jni/java-net/javanet.c: ditto
* native/jni/java-io/javaio.c: _javaio_ThrowException changed to
JCL_ThrowException
* mauve-classpath: updated and can be used with ORP (158 of 1943 tests
fail)
|
|
|
|
| |
on these files
|