[kaffe] CVS kaffe (dalibor): Updated getaddrinfo to 1.6.1

Kaffe CVS cvs-commits at kaffe.org
Mon Sep 22 14:09:01 PDT 2003


PatchSet 4056 
Date: 2003/09/22 20:57:50
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Updated getaddrinfo to 1.6.1

Members: 
	ChangeLog:1.1651->1.1652 
	THIRDPARTY:1.1->1.2 
	aclocal.m4:1.67->1.68 
	configure:1.257->1.258 
	sockinttypes.m4:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1651 kaffe/ChangeLog:1.1652
--- kaffe/ChangeLog:1.1651	Mon Sep 22 15:31:22 2003
+++ kaffe/ChangeLog	Mon Sep 22 20:57:50 2003
@@ -1,3 +1,21 @@
+2003-09-22  Dalibor Topic <robilad at kaffe.org>
+
+	* sockinttypes.m4:
+	Updated to getaddrinfo-1.6.1. From the getaddrinfo docs:
+
+	Major changes in release 1.6.1
+
+	* Fix typo in m4/sockinttypes.m4.
+	configure exits with an error message if it fails to get size of
+	`sin_port' in `struct sockaddr_in' or `sa_family' in 
+	`struct sockaddr'.
+
+	* aclocal.m4, configure:
+	Regenerated.
+
+	* THIRDPARTY:
+	Added information on getaddrinfo.
+	
 2003-09-22  Helmer Kraemer  <hkraemer at freenet.de>
 
 	* kaffe/kaffevm/access.c: (findSuperMethod) minor tweak
Index: kaffe/THIRDPARTY
diff -u kaffe/THIRDPARTY:1.1 kaffe/THIRDPARTY:1.2
--- kaffe/THIRDPARTY:1.1	Wed May 21 10:42:29 2003
+++ kaffe/THIRDPARTY	Mon Sep 22 20:57:51 2003
@@ -35,3 +35,36 @@
 Thanks to Stuart Ballard and Ito Kazumitsu, who started the merge
 effort, and Mark Wielaard, who provided a lot of useful advice on GNU
 Classpath's implementation.
+
+* Replacement functions for getaddrinfo
+
+This code comes from Motoyuki Kasahara's <m-kasahr at sra.co.jp>
+getaddrinfo() and getnameinfo() implementations for traditional IPv4 
+systems available at http://www.sra.co.jp/people/m-kasahr/getaddrinfo/ 
+under the following GPL-compatible BSD like license:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the name of the project nor the names of its contributors
+   may be used to endorse or promote products derived from this software
+   without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+
+At the time of writing, Kaffe uses getaddrinfo 1.6.1.
\ No newline at end of file
Index: kaffe/aclocal.m4
diff -u kaffe/aclocal.m4:1.67 kaffe/aclocal.m4:1.68
--- kaffe/aclocal.m4:1.67	Tue Aug 26 15:39:08 2003
+++ kaffe/aclocal.m4	Mon Sep 22 20:57:51 2003
@@ -8138,7 +8138,7 @@
 	return (sizeof(addr.sin_port) == sizeof(char)) ? 0 : 1;
     }
     ], [ac_cv_sin_port_size=char])
-    if test "$ac_cv_sin_port_size" = unknown; then
+    if test "ac_cv_sin_port_size" = unknown; then
 	AC_MSG_ERROR([Failed to get size of sin_port in struct sockaddr_in.])
     fi
     AC_DEFINE_UNQUOTED(in_port_t, unsigned $ac_cv_sin_port_size,
@@ -8192,7 +8192,7 @@
 	return (sizeof(addr.sa_family) == sizeof(char)) ? 0 : 1;
     }
     ], [ac_cv_sa_family_size=char])
-    if test "$ac_cv_sa_family_size" = unknown; then
+    if test "ac_cv_sa_family_size" = unknown; then
 	AC_MSG_ERROR([Failed to get size of sa_family in struct sockaddr.])
     fi
     AC_DEFINE_UNQUOTED(sa_family_t, unsigned $ac_cv_sa_family_size,
Index: kaffe/configure
diff -u kaffe/configure:1.257 kaffe/configure:1.258
--- kaffe/configure:1.257	Sun Sep 21 18:18:13 2003
+++ kaffe/configure	Mon Sep 22 20:57:51 2003
@@ -38422,7 +38422,7 @@
 fi
 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 fi
-    if test "$ac_cv_sin_port_size" = unknown; then
+    if test "ac_cv_sin_port_size" = unknown; then
 	{ { echo "$as_me:$LINENO: error: Failed to get size of sin_port in struct sockaddr_in." >&5
 echo "$as_me: error: Failed to get size of sin_port in struct sockaddr_in." >&2;}
    { (exit 1); exit 1; }; }
@@ -39091,7 +39091,7 @@
 fi
 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 fi
-    if test "$ac_cv_sa_family_size" = unknown; then
+    if test "ac_cv_sa_family_size" = unknown; then
 	{ { echo "$as_me:$LINENO: error: Failed to get size of sa_family in struct sockaddr." >&5
 echo "$as_me: error: Failed to get size of sa_family in struct sockaddr." >&2;}
    { (exit 1); exit 1; }; }
Index: kaffe/sockinttypes.m4
diff -u kaffe/sockinttypes.m4:1.3 kaffe/sockinttypes.m4:1.4
--- kaffe/sockinttypes.m4:1.3	Thu Jun 26 11:05:36 2003
+++ kaffe/sockinttypes.m4	Mon Sep 22 20:57:56 2003
@@ -90,7 +90,7 @@
 	return (sizeof(addr.sin_port) == sizeof(char)) ? 0 : 1;
     }
     ], [ac_cv_sin_port_size=char])
-    if test "$ac_cv_sin_port_size" = unknown; then
+    if test "ac_cv_sin_port_size" = unknown; then
 	AC_MSG_ERROR([Failed to get size of sin_port in struct sockaddr_in.])
     fi
     AC_DEFINE_UNQUOTED(in_port_t, unsigned $ac_cv_sin_port_size,
@@ -144,7 +144,7 @@
 	return (sizeof(addr.sa_family) == sizeof(char)) ? 0 : 1;
     }
     ], [ac_cv_sa_family_size=char])
-    if test "$ac_cv_sa_family_size" = unknown; then
+    if test "ac_cv_sa_family_size" = unknown; then
 	AC_MSG_ERROR([Failed to get size of sa_family in struct sockaddr.])
     fi
     AC_DEFINE_UNQUOTED(sa_family_t, unsigned $ac_cv_sa_family_size,




More information about the kaffe mailing list