This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]