From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5594 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: C11 threads Date: Fri, 25 Jul 2014 15:04:39 +0200 Message-ID: <20140725130438.GA10402@port70.net> References: <1406282437.6438.34.camel@eris.loria.fr> <20140725104056.GO9928@port70.net> <1406286404.6438.38.camel@eris.loria.fr> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1406293500 13442 80.91.229.3 (25 Jul 2014 13:05:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 13:05:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5599-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 25 15:04:53 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XAfB6-0007NE-9p for gllmg-musl@plane.gmane.org; Fri, 25 Jul 2014 15:04:52 +0200 Original-Received: (qmail 26494 invoked by uid 550); 25 Jul 2014 13:04:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26486 invoked from network); 25 Jul 2014 13:04:50 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <1406286404.6438.38.camel@eris.loria.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5594 Archived-At: * Jens Gustedt [2014-07-25 13:06:44 +0200]: > Am Freitag, den 25.07.2014, 12:40 +0200 schrieb Szabolcs Nagy: > > * Jens Gustedt [2014-07-25 12:00:37 +0200]: > > > /* Best of all worlds, these are just weak aliases */ > > > int cnd_broadcast(cnd_t *); // pthread_cond_broadcast > > > > posix is not yet aligned with c11, but i think they will > > require inequal function pointers for these functions > > The term "inequal function pointer" had nothing pop up. Could you give > a reference to the relevant part in POSIX that makes the requirement > for a "strong" symbol? hm i might be wrong: there is a requirement in c and posix that the address of a standard function can be taken and that == is only true for function pointers if they point to the same function but i don't see any requirement that each library function must be distinct and there is a dr that implies the opposite: http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_078.html without explanation the response says h can return 0. the musl math library currently defines distinct long double functions even if long double and double have the same representation, they could be weak aliases if the standard allows this..