From owner-freebsd-threads@FreeBSD.ORG Thu Mar 3 19:01:37 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 731CD16A4CE for ; Thu, 3 Mar 2005 19:01:37 +0000 (GMT) Received: from lakermmtao01.cox.net (lakermmtao01.cox.net [68.230.240.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6FA143D31 for ; Thu, 3 Mar 2005 19:01:36 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao01.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050303190134.NCDV29182.lakermmtao01.cox.net@mezz.mezzweb.com>; Thu, 3 Mar 2005 14:01:34 -0500 Date: Thu, 03 Mar 2005 13:02:51 -0600 To: "Craig Rodrigues" References: <1109551418.782.30.camel@compass.straycat.dhs.org> <1109742079.777.15.camel@compass.straycat.dhs.org> <422649AF.5090606@freebsd.org> <1109833505.777.80.camel@compass.straycat.dhs.org> <4226B9DC.7040405@freebsd.org> <1109835366.777.95.camel@compass.straycat.dhs.org> <42272009.507@freebsd.org> <20050303151544.GA2518@crodrigues.org> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <20050303151544.GA2518@crodrigues.org> User-Agent: Opera M2/7.54 (Linux, build 955) cc: freebsd-threads@freebsd.org Subject: Re: Mono's XSP crashes on browser connection X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 19:01:37 -0000 On Thu, 3 Mar 2005 10:15:44 -0500, Craig Rodrigues wrote: > On Thu, Mar 03, 2005 at 10:32:41PM +0800, David Xu wrote: >> whether _POSIX_THREAD_PROCESS_SHARED is defined or not in >> source code, but he failed to respect this macro at many places, so the >> macro is rather bogus. David, thanks for dig it deeper! > Side note: > > Keep in mind, that according to the POSIX/Single Unix Specification > standards, if a _POSIX_* macro is defined, but > is -1, that means that the feature is unsupported. > ( See: > http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html ). > > We define a lot of POSIX macros like this in . Do you need anyone to test your ttyname_r patch? I can try to test it with mono here on RELENG_5 and see how it goes. I don't know ttyname_r that much, but I can dig in web/google. Cheers, Mezz > The convention on Linux's glibc is to only define a _POSIX > macro if the feature is supported. Consequently, a lot of > software written on Linux which assumes this convention will break > on FreeBSD. > > The Linux glibc convention is IMHO more intuitive, > but FreeBSD is more "standards" conformant. > > So the Mono code is not entirely doing the right thing > with respect to checking _POSIX_THREAD_PROCESS_SHARED....but > you mention that the Mono code isn't even consistent in checking this > macro. Bleh. :) -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org