pthread_t not defined by sys/types.h

Brooks Davis brooks at one-eyed-alien.net
Tue Mar 8 15:04:42 GMT 2005


It turns out that SUSv3:

http://www.opengroup.org/onlinepubs/000095399/toc.htm

states that following variables must be defined in sys/types.h (their
definitions in pthread.h must be identical)

pthread_attr_t
pthread_barrier_t
pthread_barrierattr_t
pthread_cond_t
pthread_condattr_t
pthread_key_t
pthread_mutex_t
pthread_mutexattr_t
pthread_once_t
pthread_rwlock_t
pthread_rwlockattr_t
pthread_spinlock_t
pthread_t

It has been reported that Sun Grid Engine relies on this behavior.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20050308/144fcbaf/attachment.bin


More information about the freebsd-threads mailing list