delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/24/18:06:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <3CC72C34.10502@mip.sdu.dk>
Date: Thu, 25 Apr 2002 00:05:40 +0200
From: =?ISO-8859-1?Q?Ren=E9_M=F8ller_Fonseca?= <fonseca AT mip DOT sdu DOT dk>
Reply-To: cygwin AT cygwin DOT com
Organization: The Maersk Institute, University of Southern Denmark
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: pthread_t and strict standards compliance
References: <BF35D9C143BCCC4EB63181B67C9320C83A9C08 AT serv-075 DOT icon-germany DOT local>
X-Virus-Scanned: by AMaViS perl-11

Hi Heribert,

Of course, you are right. But I'm interested in the most correct 
implementation of the standard(s) and that implies following the very 
word of the standard in question. This policy will generally reduce the 
work required when the standard is revised. Something  that seems not to 
be a problem may turn out to be a big one when the standard is revised 
and things MUST BE kept backwards-compatible.

René

Heribert Dahms wrote:
> 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
>>
> 
> 



-- 
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019