From owner-freebsd-arch@FreeBSD.ORG Fri Dec 16 22:31:32 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9198C106566B; Fri, 16 Dec 2011 22:31:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id E6F408FC1D; Fri, 16 Dec 2011 22:31:31 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id pBGMVQ3j056545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Dec 2011 00:31:26 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id pBGMVQ7O054949; Sat, 17 Dec 2011 00:31:26 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id pBGMVQs8054948; Sat, 17 Dec 2011 00:31:26 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 17 Dec 2011 00:31:26 +0200 From: Kostik Belousov To: Ed Schouten Message-ID: <20111216223126.GX50300@deviant.kiev.zoral.com.ua> References: <20111216214913.GA1771@hoeg.nl> <20111216220914.GW50300@deviant.kiev.zoral.com.ua> <20111216221959.GB1771@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GJTx2ed35C3D1GF1" Content-Disposition: inline In-Reply-To: <20111216221959.GB1771@hoeg.nl> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: threads@freebsd.org, arch@freebsd.org Subject: Re: [Patch] C1X threading support X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 22:31:32 -0000 --GJTx2ed35C3D1GF1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 16, 2011 at 11:19:59PM +0100, Ed Schouten wrote: > Hello Kostik, >=20 > * Kostik Belousov , 20111216 23:09: > > If application that does not use the new interface supposed to be > > able to implement function with new names, then the not-underscored > > symbols must be weak. >=20 > For example when an application wants to implement its own functions > that are named thrd_*(), for example? Yes. The realistic example is the code written to C99/SUSv4 conformance that happens to define thrd_. It might be that easiest solution is to put the functions into separate library, besides defining them weak. >=20 > > pthread_cond_init does not set errno, it returns error. > > There are several more instances of such errno use in the patch. >=20 > Oh wait. It returns the errno. Ugh. Fixed! >=20 > > Do you have reference to the draft ? >=20 > Yes, sure: >=20 > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf BTW, it looks not very useful to add a bunch of threading functions without at least trying to specify the memory model. --GJTx2ed35C3D1GF1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk7rxr4ACgkQC3+MBN1Mb4jqNwCff+EFGr2qR0uU9jPSjtCQaTA5 JfcAoJa6EjoIPT4sttlyWCQ4n8qXEG/o =LlXk -----END PGP SIGNATURE----- --GJTx2ed35C3D1GF1--