Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread David Xu
Daniel Eischen wrote: Hmm, agreed. But note that Solaris 10 does it this way: #definepthread_cleanup_push(routine, args) { \ _cleanup_t _cleanup_info; \ __pthread_cleanup_push((_Voidfp)(routine), (void *)(args), \ (caddr_t)_getfp(), &_cleanup_info); #definepthr

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Mark Andrews
In message , Daniel Eischen wri tes: > On Wed, 25 Nov 2009, Mark Andrews wrote: > > > > > In message <20091124153422.gt2...@deviant.kiev.zoral.com.ua>, Kostik Belous > ov write > > s: > >> > >> --i616tqyc3hrkKsk2 > >> Content-Type: text/plain; charset=us-ascii > >> Content-Disposition: inline > >

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Daniel Eischen
On Wed, 25 Nov 2009, Mark Andrews wrote: In message <20091124153422.gt2...@deviant.kiev.zoral.com.ua>, Kostik Belousov write s: --i616tqyc3hrkKsk2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 24, 2009 at 05:18

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Mark Andrews
In message <20091124153422.gt2...@deviant.kiev.zoral.com.ua>, Kostik Belousov write s: > > --i616tqyc3hrkKsk2 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Tue, Nov 24, 2009 at 05:18:29PM +0200, Mikolaj Golub wrot

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Daniel Eischen
On Wed, 25 Nov 2009, Mark Andrews wrote: Report it using "send-pr". That way the problem will make its way into the bug tracking system. In message <86aayc7z4g@zhuzha.ua1>, Mikolaj Golub writes: Hi, I have problems with compiling our application under 8.0. It fails due to these definit

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Mark Andrews
Report it using "send-pr". That way the problem will make its way into the bug tracking system. In message <86aayc7z4g@zhuzha.ua1>, Mikolaj Golub writes: > Hi, > > I have problems with compiling our application under 8.0. > > It fails due to these definitions in pthread.h that look like a

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Mikolaj Golub
On Tue, 24 Nov 2009 17:34:22 +0200 Kostik Belousov wrote: > pthread_cleanup_push/pop are supposed to be used from the common > lexical scope. Citation from SUSv4: > > These functions may be implemented as macros. The application shall > ensure that they appear as statements, and in pairs within th

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Hajimu UMEMOTO
Hi, > On Tue, 24 Nov 2009 17:18:29 +0200 > Mikolaj Golub said: to.my.trociny> I was hurry when said that the patch fixed the problem. The application to.my.trociny> compiled but later it crashed in pthread_cleanup_pop: to.my.trociny> (gdb) bt to.my.trociny> #0 0xbf4f9ee0 in ?? () to.m

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Kostik Belousov
On Tue, Nov 24, 2009 at 05:18:29PM +0200, Mikolaj Golub wrote: > On Tue, 24 Nov 2009 16:53:35 +0200 Mikolaj Golub wrote: > > > Hi, > > > > I have problems with compiling our application under 8.0. > > > > It fails due to these definitions in pthread.h that look like a typo or > > incorrectly appli

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Tom Evans
On Tue, Nov 24, 2009 at 3:18 PM, Mikolaj Golub wrote: > > So, I don't know what these macros actually were supposed to be. They were > introduced in r179662: > > Revision 1.43: download - view: text, markup, annotated - select for diffs > Mon Jun 9 01:14:10 2008 UTC (17 months, 2 weeks ago) by da

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Mikolaj Golub
On Tue, 24 Nov 2009 16:53:35 +0200 Mikolaj Golub wrote: > Hi, > > I have problems with compiling our application under 8.0. > > It fails due to these definitions in pthread.h that look like a typo or > incorrectly applied patch: > > 170 #define pthread_cleanup_push(cleanup_routine, cle

Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread pluknet
2009/11/24 Mikolaj Golub : > Hi, > > I have problems with compiling our application under 8.0. > > It fails due to these definitions in pthread.h that look like a typo or > incorrectly applied patch: > >    170 #define         pthread_cleanup_push(cleanup_routine, cleanup_arg)     >          \ >  

pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

2009-11-24 Thread Mikolaj Golub
Hi, I have problems with compiling our application under 8.0. It fails due to these definitions in pthread.h that look like a typo or incorrectly applied patch: 170 #define pthread_cleanup_push(cleanup_routine, cleanup_arg) \ 171 {