]> pere.pagekite.me Git - homepage.git/blob - linux/obsolete/kaffe-net.diff
Generated.
[homepage.git] / linux / obsolete / kaffe-net.diff
1 Index: ChangeLog
2 ===================================================================
3 RCS file: /home/cvspublic/kaffe/ChangeLog,v
4 retrieving revision 1.588
5 diff -u -w -u -r1.588 ChangeLog
6 --- ChangeLog 1999/04/22 16:47:42 1.588
7 +++ ChangeLog 1999/04/26 12:22:22
8 @@ -1,3 +1,9 @@
9 +1999-04-25 Petter Reinholdtsen <pere@td.org.uit.no
10 +
11 + * libraries/clib/net/InetAddressImpl.c: JDK returns hostname as
12 + info in UnknownHostException, not "Unknown host". Fixing this
13 + with kaffe.
14 +
15 Thu Apr 22 09:38:32 PDT 1999 Robert Zawiasa <rhz@bibl.u-szeged.hu>
16
17 * libraries/javalib/kaffe/net/www/protocol/http/HttpURLConnection.java:
18 Index: libraries/clib/net/InetAddressImpl.c
19 ===================================================================
20 RCS file: /home/cvspublic/kaffe/libraries/clib/net/InetAddressImpl.c,v
21 retrieving revision 1.8
22 diff -u -w -u -r1.8 InetAddressImpl.c
23 --- InetAddressImpl.c 1999/02/13 09:22:01 1.8
24 +++ InetAddressImpl.c 1999/04/26 12:22:23
25 @@ -64,7 +64,7 @@
26
27 rc = KGETHOSTBYNAME(name, &ent);
28 if (rc) {
29 - SignalError("java.net.UnknownHostException", SYS_HERROR(rc));
30 + SignalError("java.net.UnknownHostException", name);
31 }
32 return (ntohl(*(jint*)ent->h_addr_list[0]));
33 }
34 @@ -86,7 +86,7 @@
35
36 rc = KGETHOSTBYNAME(name, &ent);
37 if (rc) {
38 - SignalError("java.net.UnknownHostException", SYS_HERROR(rc));
39 + SignalError("java.net.UnknownHostException", name);
40 }
41
42 for (alength = 0; ent->h_addr_list[alength]; alength++)
43 @@ -115,7 +115,14 @@
44 addr = htonl(addr);
45 rc = KGETHOSTBYADDR((char*)&addr, sizeof(jint), AF_INET, &ent);
46 if (rc) {
47 - SignalError("java.net.UnknownHostException", SYS_HERROR(rc));
48 + char errstr[16];
49 + sprintf(errstr, "%3o.%3o.%3o.%3o",
50 + /* XXX Make sure it is the right endiannes */
51 + (addr >> 24) & 0xff,
52 + (addr >> 16) & 0xff,
53 + (addr >> 8) & 0xff,
54 + (addr) & 0xff);
55 + SignalError("java.net.UnknownHostException", errstr);
56 }
57
58 return (stringC2Java((char*)ent->h_name));