From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/403 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: cluts daily reports 8/12 - continuing pthread_eintr, still stuck with alloc Date: Thu, 11 Aug 2011 22:41:51 -0400 Message-ID: <20110812024151.GF132@brightrain.aerifal.cx> References: <4E4493E6.6050809@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1313117705 25422 80.91.229.12 (12 Aug 2011 02:55:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2011 02:55:05 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-404-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 12 04:55:01 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Qrhtj-0006lH-EN for gllmg-musl@lo.gmane.org; Fri, 12 Aug 2011 04:54:59 +0200 Original-Received: (qmail 30041 invoked by uid 550); 12 Aug 2011 02:54:59 -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 30033 invoked from network); 12 Aug 2011 02:54:58 -0000 Content-Disposition: inline In-Reply-To: <4E4493E6.6050809@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:403 Archived-At: On Fri, Aug 12, 2011 at 04:45:58AM +0200, Luka Marčetić wrote: > Hey. > As I've explained in the recent e-mail to Alexander, I couldn't get > alloc.c to work with musl, so I switched to pthread_eintr, but ran > into a problem there too. So we're on the same page, is the latest version in git what you're looking at? I'll take a look.. > Rich, help me out please with the question from IRC: What's up with > the line from pthread_eintr.c looking like this: > pthread_cleanup_push(child_wait_vp, NULL); > Both musl and glibc macros generate invalid code for this one, it > ends with `do {;` in both cases iirc. Strange - what is it? > Thank you, > Luka You might want to read this: http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_cleanup_pop.html There's even a sample implementation in the rationale. Rich