Share your knowledge at the LQ Wiki.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 02-02-2007, 01:40 PM   #1
LQ Newbie
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
which headers usr/include/ or /usr/include/nptl/?

Hello, I have a question about the headers under Linux RHEL 4. I'm developing in a multithreaded environment using POSIX threads, and am relatively new to the Linux OS (RHEL 4), but have been working on other multithreaded OS's for several years, and haven't had to look at this kind of detail yet... So, there appears to be this relatively new implementation of POSIX threads for Linux, the NPTL. I am trying to determine whether or not it matters if I compile against the pthread.h headers in

/usr/include/ - which appear to be written for the legacy LinuxThreads implementation

or if I need the ones in


I would like to verify that compiling against /usr/include/ is safe, and that I am not missing anything by not compiling against the older (?) headers. I have verified that I am running the NPTL version of libpthread from /lib/tls/ via the LD_DEBUG and LD_DEBUG_OUTPUT environment variables. There are other headers down in /usr/include/nptl/ that have the same name as the ones in /usr/include/; e.g., semaphore.h, thread_db.h, as well as the stuff in /usr/include/nptl/bits/.


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
Updating kernel headers /usr/include/linux mhansen Slackware 4 11-30-2006 06:31 AM
Missing /usr/include/GL/gl.h openfun Ubuntu 1 04-24-2006 10:24 AM
/usr/include/linux revsteban Debian 1 02-22-2005 10:41 PM
/usr/include/netdb.h on RH 8.0 nxny Red Hat 2 12-09-2003 05:16 PM
HELP! I've lost my /usr/include! bobthebat Linux - General 2 10-29-2001 12:36 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:51 PM.

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
Open Source Consulting | Domain Registration