From owner-freebsd-threads@FreeBSD.ORG Tue Sep 22 17:30:22 2009 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CFE6106566C for ; Tue, 22 Sep 2009 17:30:22 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from lab.alexdupre.com (cl-506.trn-01.it.sixxs.net [IPv6:2001:1418:100:1f9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 08ACF8FC17 for ; Tue, 22 Sep 2009 17:30:21 +0000 (UTC) Received: (qmail 29574 invoked from network); 22 Sep 2009 17:30:20 -0000 Received: from athlon.alexdupre.com (192.168.178.2) by lab.alexdupre.com with SMTP; 22 Sep 2009 17:30:20 -0000 Message-ID: <4AB909AC.1000707@FreeBSD.org> Date: Tue, 22 Sep 2009 19:30:20 +0200 From: Alex Dupre User-Agent: Thunderbird 2.0.0.19 (X11/20090112) MIME-Version: 1.0 To: freebsd-threads@FreeBSD.org References: <4AB905D4.6020608@FreeBSD.org> In-Reply-To: <4AB905D4.6020608@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: how to overcome missing stubs in FreeBSD 6 (continued) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 17:30:22 -0000 Alex Dupre wrote: > In the pthread_equal() case the "right != clean" thing could be to > create a stub comparing the parameters instead of blindly return(1). Maybe the following solution is better: int pthread_equal() __attribute__ ((weak)); #define pthread_equal(a,b) (pthread_equal == 0 ? 1 : pthread_equal(a,b)) -- Alex Dupre