Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: From: Heribert Dahms To: =?iso-8859-1?Q?=27Ren=E9_M=F8ller_Fonseca=27?= , cygwin AT cygwin DOT com Subject: RE: pthread_t and strict standards compliance Date: Wed, 24 Apr 2002 23:47:42 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g3OLq2705054 Hi René, (not having reread SUS) how does a pointer hurt? If you are a thread user, and not implementer, you should treat it as an opaque type anyway, just storing or passing around to next thread function! What's the sense of the sum or difference of pthread_t's? Wait, you can also compare for equality, but that works for pointers... Bye, Heribert (heribert_dahms AT icon-scm DOT com) > -----Original Message----- > From: René Møller Fonseca [SMTP:fonseca AT mip DOT sdu DOT dk] > Sent: Wednesday, April 24, 2002 22:40 > To: cygwin AT cygwin DOT com > Subject: pthread_t and strict standards compliance > > Hi, > > I was porting my framework to Cygwin and noticed that pthread_t is a > typedef of a void pointer. > > According to "The Single UNIX Specification, Version 2" and "IEEE Std > 1003.1-2001" pthread_t must be defined as an arithmetic type (i.e. > either a floating-point type or an integral type). The pointer type is > NOT an arithmetic type even though some arithmetic operators may be > applied to a pointer. > > René > > -- > B.Sc. in Computer Systems Engineering > The Maersk Mc-Kinney Moller Institute for Production Technology > University of Southern Denmark > http://www.mip.sdu.dk/~fonseca > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/