summaryrefslogtreecommitdiff
path: root/native/jni/java-lang/java_lang_VMProcess.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-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-211-135/+35
|
* 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-221-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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.
* * all files: Update for new FSF address.Mark Wielaard2005-07-021-2/+2
|
* 2005-04-08 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2005-04-081-144/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 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-04-29 Michael Koch <konqueror@gmx.de>Michael Koch2004-04-291-1/+1
| | | | | | | | | | | | | | * 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.
* 2004-04-27 Archie Cobbs <archie@dellroad.org>Archie Cobbs2004-04-271-0/+477
* include/Makefile.am: add java_lang_VMProcess.h * include/java_lang_VMProcess.h: new file * include/java_lang_VMRuntime.h: regenerate * native/jni/java-lang/Makefile.am: add java_lang_VMProcess.c * native/jni/java-lang/java_lang_VMProcess.c: new file * vm/reference/java/lang/Makefile.am: add VMProcess.java * vm/reference/java/lang/VMProcess.java: new file * vm/reference/java/lang/VMRuntime.java (exec): use VMProcess