I can't find the manual for pthread_mutex_lock with man pthread_mutex_lock, is that something wrong with manpages-dev ? I got that package installed, but missing some manual.

Should I fire a bug to Ubuntu ?


The documentation for pthreads is in the glibc-doc package.

| improve this answer | |
  • 2
    Note that (as of 19.04 Disco Dingo) glibc-doc includes the Linux-specific man pages for pthreads, whereas the manpages-posix-dev package has the POSIX pthreads man pages – villapx Aug 6 '19 at 15:20
  • @villapx Do you have an idea why some of the Linux-specific man pages for pthread, that is the one including implementation concerns of the pthread API, still refer to LinuxThreads and not NTPL as can be seen for example here manpages.ubuntu.com/manpages/eoan/man3/pthread_cond_wait.3.html ? – Manuel Selva Nov 18 '19 at 15:18
  • @ManuelSelva Great question, I'm not sure. I'm doing some digging at the moment to try and find out why. It doesn't look like the NPTL implementation is descended from LinuxThreads (looking at Wikipedia. etc.), but maybe they did inherit some of the man pages because they were well written? – villapx Nov 18 '19 at 16:50
  • 1
    @villapx maybe yes teh writing style is a motivation. I'll probably ask a separate question, but int the cas of cond_wait this makes a big difference since the glibc-doc does not mention spurious wake-up at all. – Manuel Selva Nov 18 '19 at 19:52

Ubuntu (and Debian) include the desired man pages in the manpages-posix-dev package.

| improve this answer | |

Just for completeness, here a version we can enjoy in our web-browser:


I know, links might get outdated, but if we feed our search-engine we will get a lot of alternative links which deliver the desired information.

Advantage: Better readability, comfortability with use in GUI. We don't need to install anything.

Disadvantage: Requires Internet connection (at least for the time we need to download the site).

| improve this answer | |


sudo apt-get install manpages-posix-dev 
man pthread_mutex_lock(/unlock/destroy/...)

You can see the result ... thank you

| improve this answer | |
  • 1
    Thank you for your contribution. Could you explain why you think this will solve the problem? – Marc Vanhoomissen May 1 '17 at 15:46

For KDE Neon, I was able to find everything with:

sudo apt-get install manpages-posix manpages-posix-dev
sudo apt-get install glibc-doc

I needed the second to find things like man pthread_mutex_unlock

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.