Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-29-2005, 06:18 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
linux glibc nptl pthread_mutexattr_init function?

I'm using glibc-2.3.3 on i386 platform running kernel 2.6.11. The man page for pthread_mutexattr_init indicates I can use the PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP type of Mutex however the only type I can successfully build my program with is PTHREAD_MUTEX_INITIALIZER.

#include <pthread.h>

Causes the following error when I compile my pgm with gcc.

global.c:471: error: `PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP' undeclared here (not in a function)

Is the man page incorrect? Does Linux/glibc support the PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP? If so is there a trick to using other than the default PTHREAD_MUTEX_INITIALIZER type of mutex?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 04:22 PM
Help! 2.4.29 + nptl = glibc error: cannot compute (long double), 77 Yerp Linux From Scratch 3 03-25-2005 07:28 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 08:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 03:31 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 01:21 PM

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration