Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2001 16:31:19 -0700
From:      Bill Huey <billh@gnuppy.monkey.org>
To:        Mikhail Kruk <meshko@cs.brandeis.edu>
Cc:        Fuyuhiko Maruyama <fuyuhik8@is.titech.ac.jp>, freebsd-java@FreeBSD.ORG
Subject:   Re: (j2sdk1.3.1) AWT improvement
Message-ID:  <20010904163119.A13798@gnuppy>
In-Reply-To: <Pine.LNX.4.33.0109041921320.29859-100000@daedalus.cs.brandeis.edu>
References:  <554rqj7ye1.wl@tripper.private> <Pine.LNX.4.33.0109041921320.29859-100000@daedalus.cs.brandeis.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Sep 04, 2001 at 07:22:06PM -0400, Mikhail Kruk wrote:
> It definitely works better! Thanks!
> Is there a patch for the connect (56) problem?

Look in this file:

../src/solaris/hpi/green_threads/src/iomgr.c

Find the connect() definition and make that the block with ioctl()
is used over the second connect() attempt. That's all. ;-)

Or maybe try this patch from the CVS ?

bill


--3MwIy2ne0vdjdPXF
Content-Type: application/x-troff
Content-Disposition: attachment; filename=t

Index: javasrc_1_3_scsl/j2sdk1.3.1/src/solaris/hpi/green_threads/src/iomgr.c
===================================================================
RCS file: /data/java/JDK2/javasrc_1_3_scsl/j2sdk1.3.1/src/solaris/hpi/green_threads/src/iomgr.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -r1.2 -r1.3
701a702,724
> #if defined(__FreeBSD__)
> #if defined(__i386__)
> #define ASM __asm__ volatile
> #define WRAPFUNC(FUNC)				\
> do {						\
>     ASM(".globl _" #FUNC);			\
>     ASM("	.type	_" #FUNC ",@function");	\
>     ASM("_" #FUNC ":");				\
>     ASM("jmp " #FUNC);				\
> } while (0)
> 
> static void __dummy() {
>     WRAPFUNC(open);
>     WRAPFUNC(close);
>     WRAPFUNC(read);
>     WRAPFUNC(write);
>     WRAPFUNC(fcntl);
>     __dummy();
> }
> #else
> #error "Unsupported architecture."
> #endif
> #endif
769c792,793
<     else
---
>     else {
> 	sysAssert(fd_flags[fd] == 0);
770a795
>     }
2431c2456
< #if defined(__solaris__)
---
> #if defined(__solaris__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
2448,2452c2473,2477
<                   if (errno == ENOTCONN) {
<                       errno = ECONNREFUSED;
<                   }
<                   /* see comment above */
<                   break;
---
>                     if (errno == ENOTCONN) {
>                 	errno = ECONNREFUSED;
>                     }
>                     /* see comment above */
>                     break;

--3MwIy2ne0vdjdPXF--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010904163119.A13798>