I wanted to take a look at the manpage of pthread_mutex_trylock
.
By typing man pthread_mutex_trylock
, I got No manual entry for pthread_mutex_trylock
.
Then I saw a post suggest doing sudo apt-get install manpages-posix manpages-posix-dev
.
After that I see description like:
PTHREAD_MUTEX_LOCK(3POSIX) POSIX Programmer's Manual PTHREAD_MUTEX_LOCK(3POSIX)
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the cor‐
responding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
What's the difference between this POSIX Programmer's Manual and the Linux Programmer's Manual that I usually see?
What does it mean by saying:
The Linux implementation of this interface may differ (consult the cor‐responding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
So where can I find the manpage for The Linux implementation of pthread_mutex_trylock
? Can I use pthread_mutex_trylock
on my system ? I am using Ubuntu.