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

Notices


Reply
  Search this Thread
Old 02-02-2007, 01:40 PM   #1
Chris.Rector
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

/usr/include/nptl/

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/.
 
  


Reply


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

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:58 AM.

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