I am working on something and I needed to dig inside the implementation of the pthread_create() function of POSIX threads in Linux.

Where can I find the actual location of the pthread.h file or the actual code implementation of pthread_create() in Linux?

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

One of the easiest ways to find any file on most linux systems is to use the locate command

$ locate pthread.h

That being said, the file on my Ubuntu system is located at: /usr/include/pthread.h

link|improve this answer
feedback

Try Google Codesearch to find the implementation of pthread_create()

link|improve this answer
feedback

Your Answer

 
or
required, but never shown