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