glibc 2.10, NPTL and missing pthread_mutexattr_settype
Mike Frysinger
vapier@gentoo.org
Wed Dec 2 22:16:00 GMT 2009
On Wednesday 02 December 2009 14:49:40 Chris Hall wrote:
> Hi,
>
> I come desperately seeking enlightenment -- I seem to have hit a brick wall
> trying to find out what NPTL does and does not support.
>
> Can anyone point me in the direction of any authoritative source on this,
> please ?
>
> I have a particular problem with pthread_mutexattr_settype and the related
> PTHREAD_MUTEX_XXX values. (I have Fedora with glibc 2.10.)
>
> These seem to be skipped under _USE_UNIX98 in pthreads.h. I note that this
> is marked optional [XSI] in 1003.1-2004 but moved to Base in 1003.1-2008.
>
> So... should I expect to find them in a current version of glibc ?
>
> So digging some more, I find that in unistd.h there's #define
> _XOPEN_VERSION 700 -- which means I should expect 1003.1-2008, yes ?
> Which includes the pthread_mutexattr_settype etc...
if you just want things to work, define _GNU_SOURCE and you should get access
to everything
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20091202/4f20ad31/attachment.sig>
More information about the Libc-help
mailing list