Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 84664 invoked from network); 7 Nov 2002 16:21:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Nov 2002 16:21:28 -0000 Received: (qmail 588 invoked by uid 97); 7 Nov 2002 16:17:39 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 340 invoked by uid 97); 7 Nov 2002 16:17:35 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 254 invoked by uid 98); 7 Nov 2002 16:17:34 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3DCA9200.30503@apache.org> Date: Thu, 07 Nov 2002 17:17:04 +0100 From: Henri Gomez User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en, fr MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_channel_socket.c References: <001401c28678$972dbdb0$5c00000a@GISDATA.ZG> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Mladen Turk wrote: > >>-----Original Message----- >>From: Henri Gomez >> >>>Why? Think we just add the -DBSD_COMP to the JK_CFLAGS in >> >>Makefile.in >> >>Sure but it's not very clean and didn't take use of configure >>"detection" features. >> >>BTW: we'll need to find a way to add it to jkant for those >>who want to >>use ant to build native code ;{ >> > > > Agreed, but the entire purpose of the ioctl is to disable the > nonblocking socket. > We can use the fcntl for that. > > > int fd_flags; > fd_flags = fcntl(sd, F_GETFL, 0); > #if defined(O_NONBLOCK) > fd_flags &= ~O_NONBLOCK; > #elif defined(O_NDELAY) > fd_flags &= ~O_NDELAY; > #elif defined(FNDELAY) > fd_flags &= ~O_FNDELAY; > #else > /* XXXX: this breaks things, but an alternative isn't obvious...*/ > return -1; > #endif > if (fcntl(sd, F_SETFL, fd_flags) == -1) { > return errno; > } > > > That's how its done in apr. So let use it that way, APR is a reference in native code implementation ;) -- To unsubscribe, e-mail: For additional commands, e-mail: