Skip to content
Snippets Groups Projects
  1. Aug 14, 2004
  2. Aug 13, 2004
    • bryce's avatar
      2004-08-13 Bryce McKinlay <mckinlay@redhat.com> · 9abf00f8
      bryce authored
      	* java/net/InetAddress.java (loopbackAddress): Renamed from
      	localhostAddress.
      	(getByName): Return loopback address for null hostname, without
      	security check. Use lookup(), not getAllByName.
      	(getAllByName): Return loopback address for null hostname, without
      	security check.
      	* java/net/natInetAddressPosix.cc (lookup): Don't perform security
      	check here.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85967 138bc75d-0d04-0410-961f-82ee72b054a4
      9abf00f8
  3. Nov 30, 2003
    • mkoch's avatar
      2003-11-30 Jeff Sturm <jsturm@one-point.com> · 4fcf6efa
      mkoch authored
      	* java/net/InetAddress.java:
      	(static): Don'f force DNS request for ANY_IF address.
      
      2003-11-30  Michael Koch  <konqueror@gmx.de>
      
      	* java/net/InetAddress.java,
      	java/net/natInetAddressNoNet.cc,
      	java/net/natInetAddressPosix.cc,
      	java/net/natInetAddressWin32.cc:
      	Reverted my last patch.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74074 138bc75d-0d04-0410-961f-82ee72b054a4
      4fcf6efa
  4. Nov 28, 2003
    • mkoch's avatar
      2003-11-28 Michael Koch <konqueror@gmx.de> · 8d898c63
      mkoch authored
      	* java/net/InetAddress.java
      	(lookup): New method that doesnt lookup "0.0.0.0".
      	(ImplLookup): Renamed from lookup.
      	* java/net/natInetAddressNoNet.cc
      	(ImplLookup): Renamed from lookup.
      	* java/net/natInetAddressPosix.cc
      	(ImplLookup): Renamed from lookup.
      	* java/net/natInetAddressWin32.cc
      	(ImplLookup): Renamed from lookup.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74026 138bc75d-0d04-0410-961f-82ee72b054a4
      8d898c63
  5. Mar 18, 2003
    • mkoch's avatar
      2003-03-18 Michael Koch <konqueror@gmx.de> · 28440d3b
      mkoch authored
      	* configure.in: Create links to architecture dependent files,
      	introduced PLATFORMNET variable (set to NoNet for newlib usage).
      	* configure: Regenerated.
      	* java/net/natInetAddressNoNet.cc,
      	java/net/natInetAddressPosix.cc,
      	java/net/natInetAddressWin32.cc,
      	java/net/natNetworkInterfaceNoNet.cc,
      	java/net/natNetworkInterfacePosix.cc,
      	java/net/natNetworkInterfaceWin32.cc,
      	java/net/natPlainDatagramSocketImplNoNet.cc,
      	java/net/natPlainDatagramSocketImplPosix.cc,
      	java/net/natPlainDatagramSocketImplWin32.cc,
      	java/net/natPlainSocketImplNoNet.cc,
      	java/net/natPlainSocketImplPosix.cc,
      	java/net/natPlainSocketImplWin32.cc: New files.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64526 138bc75d-0d04-0410-961f-82ee72b054a4
      28440d3b
  6. Nov 01, 2002
    • mkoch's avatar
      2002-11-01 Michael Koch <konqueror@gmx.de> · 66ab2e1e
      mkoch authored
      	* java/net/InetAddress.java:
      	(isAnyLocalAddress): Implemented.
      	(isLoopbackAddress): Implemented, comment added.
      	(isLinkLocalAddress): Implemented, documentation added.
      	(isSiteLocalAddress): Implemented, documentation added.
      	(isMCGlobal): Implemented, documentation added.
      	(isMCNodeLocal): Implemented, documentation added.
      	(isMCLinkLocal): Implemented, documentation added.
      	(isMCSiteLocal): Implemented, documentation added.
      	(isMCOrgLocal): Implemented, documentation added.
      	(getHostName): Documentation added.
      	(getCanonicalHostName): Implemented, documentation added.
      	(getAddress): Documentation added.
      	(hashCode): Documentation added.
      	(equals): Documentation added.
      	(toString): Fixed implementation.
      	(getByAddress): Use Inet4Address and Inet6Address.
      	(lookup): New linewrap.
      	(getByName): SecurityManager check added, support Inet4Address and
      	Inet6address, comments added.
      	(getAllByName): SecurityManager check added, comments added.
      	* java/net/Inet6Address.java:
      	(Inet6Address): Initialize parent class with addr instead of null.
      	* java/net/URL.java
      	(equals): Documentation added.
      	(getFile): Documentation added.
      	(hashCode): Documentation added.
      	* java/net/natInetAddress.cc:
      	(aton): Fix IPv6 support.
      	* java/net/natPlainDatagramSocketImpl.cc:
      	(peek): Throw PortUnreachableException when suitable.
      	(peekData): Throw PortUnreachableException when suitable.
      	(send): Throw PortUnreachableException when suitable.
      	(receive): Throw PortUnreachableException when suitable.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58704 138bc75d-0d04-0410-961f-82ee72b054a4
      66ab2e1e
  7. Feb 28, 2002
  8. May 24, 2001
    • tromey's avatar
      2001-05-23 Tom Tromey <tromey@redhat.com> · f414d9a7
      tromey authored
      	* posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
      	* gcj/Makefile.in: Rebuilt.
      	* gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
      	* gcj/javaprims.h: Include gcj/libgcj-config.h.
      	* gcj/libgcj-config.h.in: New file.
      	* libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
      	* configure: Rebuilt.
      	* configure.in: Enable hash synchronization by default on some
      	platforms.
      	(HASH_SYNC_SPEC): New subst.
      	(AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
      	Correctly use `test -z' instead of `test -n' in a couple places.
      	(JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
      	LIBGCJ_CXXFLAGS.
      	* configure.host (enable_java_net_default): Initialize.
      	(enable_hash_synchronization_default): New variable.
      
      2001-05-23  Hans Boehm <Hans_Boehm@hp.com>
      
      	* boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
      	synchronization in use.
      	(_Jv_MarkArray): Likewise.
      	(_Jv_AllocBytes): Don't check return result.
      	(handle_out_of_memory): New function.
      	(_Jv_InitGC): Set GC_oom_fn.
      	(trace_one_vtable): New global.
      	(_Jv_AllocTraceOne): New function.
      	* configure.in: Added --enable-hash-synchronization.
      	* defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
      	java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
      	* nogc.cc (_Jv_AllocObj): Throw out-of-memory.
      	(_Jv_AllocArray): Likewise.
      	(_Jv_AllocBytes): Likewise.
      	(_Jv_AllocPtrFreeObject): New function.
      	(_Jv_AllocTraceOne): Likewise.
      	* posix-threads.cc (_Jv_ThreadRegister): Handle slow
      	pthread_self().
      	(self_cache): New global.
      	(_Jv_ThreadSelf_out_of_line): New function.
      	* prims.cc (_Jv_AllocBytesChecked): Removed.
      	(_Jv_ThrowNoMemory): New function.
      	(_Jv_AllocObject): Don't check for null return from allocator.
      	(_Jv_NewObjectArray): Likewise.
      	(_Jv_AllocPtrFreeObject): New function.
      	(_Jv_NewPrimArray): Allocate pointer-free object if possible.
      	* include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
      	(_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
      	* include/boehm-gc.h (_Jv_AllocObj): Define.
      	(_Jv_AllocPtrFreeObj): Define.
      	* include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
      	(_Jv_ThrowNoMemory): Declare.
      	(_Jv_AllocTraceOne): Declare.
      	(_Jv_AllocBytesChecked): Removed.
      	* include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
      	_Jv_MutexUnlock): Handle LOCK_DEBUG.
      	(_Jv_ThreadSelf): Handle case where system pthread_self() is
      	slow.
      	* java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
      	friend.
      	* java/lang/Object.h (sync_info): Conditional upon presence of
      	hash synchronization.
      	* java/lang/natObject.cc: Much new code to handle thin locks and
      	hash synchronization.
      	* java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
      	object if possible.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42519 138bc75d-0d04-0410-961f-82ee72b054a4
      f414d9a7
  9. Apr 25, 2001
  10. Nov 03, 2000
    • warrenl's avatar
      * java/net/InetAddress.java (addr): Renamed from 'address'. · 8a3e97d2
      warrenl authored
      	(address): New field to match Serialized Form doc.
      	(hostName): Renamed from 'hostname' to match Serialized Form doc.
      	(family): New serialization field.
      	(serialVersionUID): New field.
      	(readObject): New method.
      	(writeObject): New method.
      	(getFamily): New native method.
      	(InetAddress): Set family.
      	* java/net/natInetAddress.cc (getFamily): New method.
      	(addr): Renamed from 'address'.
      	(hostName): Renamed from 'hostname' to match Serialized Form doc.
      	* java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
      	* java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
      
      Serialization mod.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37222 138bc75d-0d04-0410-961f-82ee72b054a4
      8a3e97d2
  11. Sep 05, 2000
  12. Apr 21, 2000
    • tromey's avatar
      Fix for PR libgcj/15: · 223ce3b3
      tromey authored
      	* java/util/natGregorianCalendar.cc (_REENTRANT,
      	_POSIX_PTHREAD_SEMANTICS): Don't define.
      	* java/net/natInetAddress.cc (_REENTRANT): Don't define.
      	* java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
      	Don't define.
      	* java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
      	define.
      	* configure: Rebuilt.
      	* configure.in: If using POSIX threads, define _REENTRANT if
      	needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
      	GETHOSTBYNAME_R_NEEDS_REENTRANT.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33318 138bc75d-0d04-0410-961f-82ee72b054a4
      223ce3b3
  13. Mar 15, 2000
    • tromey's avatar
      2000-03-15 Tom Tromey <tromey@cygnus.com> · 648fb746
      tromey authored
      	* java/io/natFileDescriptorWin32.cc (winerr): Now static.
      
      	* prims.cc (win32_exception_handler): Reformatted.
      
      	* include/win32-threads.h (_Jv_HaveCondDestroy): New define.
      	(_Jv_HaveMutexDestroy): Likewise.
      
      2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
      
      	* java/io/natFileDescriptorWin32.cc: New file.
      	* java/io/natFileWin32.cc: New file.
      	* java/net/natInetAddress.cc: Added conditional inclusion of
      	Windows / Winsock headers.
      	* java/net/natPlainDatagramSocketImpl.cc: Added conditional
      	inclusion of Windows / Winsock headers.
      	* java/net/natPlainSocketImpl.cc: Added conditional inclusion of
      	Windows / Winsock headers.
      	* include/win32-signal.h: New file.
      	* include/win32-threads.h: New file.
      	* win32-threads.cc: New file.
      	* exception.cc (win32_get_restart_frame): New function.
      	* prims.cc (win32_exception_handler): New function.
      	(main_init) Performs Winsock initialisation.
      	(main_init) Installs exeception handler.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32567 138bc75d-0d04-0410-961f-82ee72b054a4
      648fb746
  14. Mar 07, 2000
  15. Jan 19, 2000
  16. Oct 02, 1999
    • tromey's avatar
      * configure: Rebuilt. · c441eb63
      tromey authored
      	* configure.in: Set classpath when invoking gcj.  Use changequote
      	around sed invocation.
      
      	* java/net/natPlainSocketImpl.cc: Stub native functions if
      	DISABLE_JAVA_NET is defined.
      	* java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
      	typo in exception string.
      	(getTimeToLive): Likewise.
      	Stub native functions if DISABLE_JAVA_NET is defined.
      	* java/net/natInetAddress.cc: Stub native functions if
      	DISABLE_JAVA_NET is defined.
      	* configure.host: Disable java.net for mips-tx39.
      	* configure, include/config.h.in: Rebuilt.
      	* acconfig.h (DISABLE_JAVA_NET): Undefine.
      	* configure.in: Added --disable-java-net and new define
      	`DISABLE_JAVA_NET'.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29759 138bc75d-0d04-0410-961f-82ee72b054a4
      c441eb63
  17. Sep 10, 1999
    • tromey's avatar
      * configure: Rebuilt. · 5e25b6c0
      tromey authored
      	* configure.in: Build include/Makefile.
      	* Makefile.in: Rebuilt.
      	* Makefile.am (SUBDIRS): Added gcj and include.
      	(install-data-local): New target.
      	(extra_headers): New macro.
      	* include/Makefile.in: New file.
      	* include/Makefile.am: New file.
      
      	* interpret.cc: Don't include gcj/field.h or gcj/cni.h.
      	* java/lang/reflect/natField.cc: Don't include gcj/field.h or
      	gcj/cni.h.
      	* boehm.cc: Don't include java-threads.h or gcj/field.h.
      	* resolve.cc: Include config.h.
      	* defineclass.cc: Include config.h.
      	* include/java-interp.h: Don't include config.h.
      	* include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
      	cni.h.
      
      	* gcj/javaprims.h: Regenerated namespace decls.
      	* classes.pl (scan): Don't put `;' after closing brace.
      
      	* Makefile.in: Rebuilt.
      	* Makefile.am (INCLUDES): Added -I for top_srcdir.
      	* configure.in: Create gcj/Makefile.
      	* gcj/Makefile.in: New file.
      	* gcj/Makefile.am: New file.
      	* java/lang/Object.h: Don't include any other headers.
      	* gcj/array.h: Renamed from include/java-array.h.
      	* gcj/field.h: Renamed from include/java-field.h.
      	* gcj/method.h: Renamed from include/java-method.h.
      	* gcj/cni.h, gcj/javaprims.h: Moved from include/.
      	Updated all files to reflect new include structure.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29278 138bc75d-0d04-0410-961f-82ee72b054a4
      5e25b6c0
  18. Aug 21, 1999
  19. Aug 01, 1999
  20. Jun 18, 1999
  21. Jun 11, 1999
  22. May 26, 1999
    • warrenl's avatar
      1999-05-26 Bryce McKinlay <bryce@albatross.co.nz> · 9378f999
      warrenl authored
      	* java/net/DatagramSocket.java (getSoTimeout): Verify class type.
      	* java/net/DatagramSocketImpl.java (getOption): Made abstract.
      	(setOption): Made abstract.
      	* java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
      	to avoid cpp conflicts in native code.
      	* java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
      	cpp conflicts in native code.
      	* java/net/ServerSocket.java (toString): Prepended "ServerSocket".
      	* java/net/Socket.java (getLocalAddress): Implemented.
      	(setTcpNoDelay): Implemented.
      	(getTcpNoDelay): Implemented.
      	(setSoLinger): Implemented.
      	(getSoLinger): Implemented.
      	(getSoTimeout): Verify class type.
      	(setSendBufferSize): Implemented.
      	(getSendBufferSize): Implemented.
      	(setReceiveBufferSize): Implemented.
      	(getReceiveBufferSize): Implemented.
      	(toString): Prepended "Socket".
      	* java/net/SocketImpl.java (toString): Rewritten.
      	(getOption): Made abstract.
      	(setOption): Made abstract.
      	* java/net/natPlainSocketImpl.cc (connect): Set localport properly.
      	(setOption): Implemented.
      	(getOption): Implemented.
      1999-05-26  Warren Levy  <warrenl@cygnus.com>
      	* java/net/DatagramSocket.java (DatagramSocket): Get local host
      	address when null.  Set SO_REUSEADDR for multicasts.
      	(getSoTimeout): Implemented.
      	(setSoTimeout): Implemented.
      	* java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
      	* java/net/MulticastSocket.java (getInterface): Implemented.
      	(setInterface): Implemented.
      	(setTimeToLive): Check for invalid ttl.
      	(joinGroup): Verify multicast address and security.
      	(leaveGroup): Verify multicast address and security.
      	(send): Implemented.
      	* java/net/PlainDatagramSocketImpl.java (timeout): Added.
      	(iface): Added.
      	(ttl): Added.
      	(setOption): Added.
      	(getOption): Added.
      	(mcastGrp): Added.
      	(getTTL): Implemented as non-native.
      	(setTTL): ditto.
      	(join): ditto.
      	(leave): ditto.
      	* java/net/ServerSocket.java (setSoTimeout): Implemented.
      	(getSoTimeout): Implemented.
      	(setSocketFactory): Made synchronized.
      	* java/net/Socket.java (setSoTimeout): Implemented.
      	(getSoTimeout): Implemented.
      	(close): Made synchronized.
      	(setSocketImplFactory): Made synchronized.
      	* java/net/SocketImpl.java: Implement SocketOptions interface.
      	* java/net/natInetAddress.cc: Corrected module name at top of file.
      	* java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
      	(bind): Added FIXME.
      	(peek): Implemented.
      	(setTTL): Removed.
      	(getTTL): Removed.
      	(join): Removed.
      	(leave): Removed.
      	(mcastGrp): Added.
      	(setOption): Implemented for SO_REUSEADDR.
      	(getOption): Implemented for SO_REUSEADDR.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27184 138bc75d-0d04-0410-961f-82ee72b054a4
      9378f999
  23. Apr 14, 1999
  24. Apr 08, 1999
  25. Apr 07, 1999
Loading