POSIX Programmer's Manual vs Linux Programmer's Manual The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsWhere should I install manual pages in user directory?Viewing Linux Programmer's Manual when multiple pages bear the same nameHow do I open BSD System Calls Manual instead of BSD General Commands Manual?Manual pages uses the quotation : `<character/string>' (quoting string inside grave accent and apostrophe)How and what style should I use when writing man pages?How to automatically sort the option flags in a manual?How to check if my manual is POSIX compliant?How to display a remote Linux manual (through ftp/http/https)?Why No manual entry for shopt?Search within man pages of POSIX Programmer's Manual
Single author papers against my advisor's will?
Why did Peik Lin say, "I'm not an animal"?
What information about me do stores get via my credit card?
Do warforged have souls?
Is 'stolen' appropriate word?
Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)
Can I visit the Trinity College (Cambridge) library and see some of their rare books
Deal with toxic manager when you can't quit
What is the role of 'For' here?
How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?
Do ℕ, mathbbN, BbbN, symbbN effectively differ, and is there a "canonical" specification of the naturals?
Does Parliament need to approve the new Brexit delay to 31 October 2019?
Can the DM override racial traits?
What happens to a Warlock's expended Spell Slots when they gain a Level?
My body leaves; my core can stay
US Healthcare consultation for visitors
60's-70's movie: home appliances revolting against the owners
Does Parliament hold absolute power in the UK?
How to determine omitted units in a publication
Can withdrawing asylum be illegal?
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
Windows 10: How to Lock (not sleep) laptop on lid close?
Circular reasoning in L'Hopital's rule
Why not take a picture of a closer black hole?
POSIX Programmer's Manual vs Linux Programmer's Manual
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election ResultsWhere should I install manual pages in user directory?Viewing Linux Programmer's Manual when multiple pages bear the same nameHow do I open BSD System Calls Manual instead of BSD General Commands Manual?Manual pages uses the quotation : `<character/string>' (quoting string inside grave accent and apostrophe)How and what style should I use when writing man pages?How to automatically sort the option flags in a manual?How to check if my manual is POSIX compliant?How to display a remote Linux manual (through ftp/http/https)?Why No manual entry for shopt?Search within man pages of POSIX Programmer's Manual
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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.
man
add a comment |
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.
man
Why downvoted? This is a fairly reasonable question. At least I didn't know I should install the the manual for the library that implements the interface. before someone told me so.
– Rick
Apr 9 at 8:43
Many thanks to @Kusalananda resolving my confusion. See discussion from chat.stackoverflow.com/rooms/191520/…, hope that also help you.
– Rick
Apr 9 at 11:30
add a comment |
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.
man
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.
man
man
asked Apr 9 at 8:00
RickRick
287310
287310
Why downvoted? This is a fairly reasonable question. At least I didn't know I should install the the manual for the library that implements the interface. before someone told me so.
– Rick
Apr 9 at 8:43
Many thanks to @Kusalananda resolving my confusion. See discussion from chat.stackoverflow.com/rooms/191520/…, hope that also help you.
– Rick
Apr 9 at 11:30
add a comment |
Why downvoted? This is a fairly reasonable question. At least I didn't know I should install the the manual for the library that implements the interface. before someone told me so.
– Rick
Apr 9 at 8:43
Many thanks to @Kusalananda resolving my confusion. See discussion from chat.stackoverflow.com/rooms/191520/…, hope that also help you.
– Rick
Apr 9 at 11:30
Why downvoted? This is a fairly reasonable question. At least I didn't know I should install the the manual for the library that implements the interface. before someone told me so.
– Rick
Apr 9 at 8:43
Why downvoted? This is a fairly reasonable question. At least I didn't know I should install the the manual for the library that implements the interface. before someone told me so.
– Rick
Apr 9 at 8:43
Many thanks to @Kusalananda resolving my confusion. See discussion from chat.stackoverflow.com/rooms/191520/…, hope that also help you.
– Rick
Apr 9 at 11:30
Many thanks to @Kusalananda resolving my confusion. See discussion from chat.stackoverflow.com/rooms/191520/…, hope that also help you.
– Rick
Apr 9 at 11:30
add a comment |
1 Answer
1
active
oldest
votes
It says that because there's no guarantee that the POSIX manuals (for anything) corresponds to the actual implementation of the corresponding thing on your particular system.
To get the manual for pthread_mutex_trylock()
, install the the manual for the library that implements the interface.
On Ubuntu systems, the required manual seems to be part of the glibc-doc
package (found by searching for the function name on the Ubuntu package search pages).
The POSIX manual are definitely not useless. The local Linux interface should be compatible with the interface described in the POSIX manual, but the implementation-specific manual may also mentions caveats and Linux-specific implementation details and extensions, and similar non-POSIX functions.
The POSIX manuals becomes extra important if you are concerned about the portability of your code to other Unix systems, in which case you would want to avoid relying on Linux-specific extensions to the POSIX specification.
Ok. Let me check that link. So I should never rely on the POSIX manuals but the manual for the library that implements the interface right?
– Rick
Apr 9 at 8:12
@Rick See updated answer.
– Kusalananda♦
Apr 9 at 8:19
Another question, whypthread_create
is included in the Linux Programmer's Manual, while some other likepthread_mutex_lock
is not? Why?
– Rick
Apr 9 at 8:22
@Rick Sorry, the package seems to beglibc-doc
. I'll look at the followup question when I'm not on the phone. Could you make it part of the main question please?
– Kusalananda♦
Apr 9 at 8:30
@Rick the glibc manpages include one forpthread_mutex_lock
: manpages.ubuntu.com/manpages/cosmic/en/man3/…
– muru
Apr 9 at 8:31
|
show 4 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511395%2fposix-programmers-manual-vs-linux-programmers-manual%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It says that because there's no guarantee that the POSIX manuals (for anything) corresponds to the actual implementation of the corresponding thing on your particular system.
To get the manual for pthread_mutex_trylock()
, install the the manual for the library that implements the interface.
On Ubuntu systems, the required manual seems to be part of the glibc-doc
package (found by searching for the function name on the Ubuntu package search pages).
The POSIX manual are definitely not useless. The local Linux interface should be compatible with the interface described in the POSIX manual, but the implementation-specific manual may also mentions caveats and Linux-specific implementation details and extensions, and similar non-POSIX functions.
The POSIX manuals becomes extra important if you are concerned about the portability of your code to other Unix systems, in which case you would want to avoid relying on Linux-specific extensions to the POSIX specification.
Ok. Let me check that link. So I should never rely on the POSIX manuals but the manual for the library that implements the interface right?
– Rick
Apr 9 at 8:12
@Rick See updated answer.
– Kusalananda♦
Apr 9 at 8:19
Another question, whypthread_create
is included in the Linux Programmer's Manual, while some other likepthread_mutex_lock
is not? Why?
– Rick
Apr 9 at 8:22
@Rick Sorry, the package seems to beglibc-doc
. I'll look at the followup question when I'm not on the phone. Could you make it part of the main question please?
– Kusalananda♦
Apr 9 at 8:30
@Rick the glibc manpages include one forpthread_mutex_lock
: manpages.ubuntu.com/manpages/cosmic/en/man3/…
– muru
Apr 9 at 8:31
|
show 4 more comments
It says that because there's no guarantee that the POSIX manuals (for anything) corresponds to the actual implementation of the corresponding thing on your particular system.
To get the manual for pthread_mutex_trylock()
, install the the manual for the library that implements the interface.
On Ubuntu systems, the required manual seems to be part of the glibc-doc
package (found by searching for the function name on the Ubuntu package search pages).
The POSIX manual are definitely not useless. The local Linux interface should be compatible with the interface described in the POSIX manual, but the implementation-specific manual may also mentions caveats and Linux-specific implementation details and extensions, and similar non-POSIX functions.
The POSIX manuals becomes extra important if you are concerned about the portability of your code to other Unix systems, in which case you would want to avoid relying on Linux-specific extensions to the POSIX specification.
Ok. Let me check that link. So I should never rely on the POSIX manuals but the manual for the library that implements the interface right?
– Rick
Apr 9 at 8:12
@Rick See updated answer.
– Kusalananda♦
Apr 9 at 8:19
Another question, whypthread_create
is included in the Linux Programmer's Manual, while some other likepthread_mutex_lock
is not? Why?
– Rick
Apr 9 at 8:22
@Rick Sorry, the package seems to beglibc-doc
. I'll look at the followup question when I'm not on the phone. Could you make it part of the main question please?
– Kusalananda♦
Apr 9 at 8:30
@Rick the glibc manpages include one forpthread_mutex_lock
: manpages.ubuntu.com/manpages/cosmic/en/man3/…
– muru
Apr 9 at 8:31
|
show 4 more comments
It says that because there's no guarantee that the POSIX manuals (for anything) corresponds to the actual implementation of the corresponding thing on your particular system.
To get the manual for pthread_mutex_trylock()
, install the the manual for the library that implements the interface.
On Ubuntu systems, the required manual seems to be part of the glibc-doc
package (found by searching for the function name on the Ubuntu package search pages).
The POSIX manual are definitely not useless. The local Linux interface should be compatible with the interface described in the POSIX manual, but the implementation-specific manual may also mentions caveats and Linux-specific implementation details and extensions, and similar non-POSIX functions.
The POSIX manuals becomes extra important if you are concerned about the portability of your code to other Unix systems, in which case you would want to avoid relying on Linux-specific extensions to the POSIX specification.
It says that because there's no guarantee that the POSIX manuals (for anything) corresponds to the actual implementation of the corresponding thing on your particular system.
To get the manual for pthread_mutex_trylock()
, install the the manual for the library that implements the interface.
On Ubuntu systems, the required manual seems to be part of the glibc-doc
package (found by searching for the function name on the Ubuntu package search pages).
The POSIX manual are definitely not useless. The local Linux interface should be compatible with the interface described in the POSIX manual, but the implementation-specific manual may also mentions caveats and Linux-specific implementation details and extensions, and similar non-POSIX functions.
The POSIX manuals becomes extra important if you are concerned about the portability of your code to other Unix systems, in which case you would want to avoid relying on Linux-specific extensions to the POSIX specification.
edited Apr 9 at 8:28
answered Apr 9 at 8:06
Kusalananda♦Kusalananda
141k17263439
141k17263439
Ok. Let me check that link. So I should never rely on the POSIX manuals but the manual for the library that implements the interface right?
– Rick
Apr 9 at 8:12
@Rick See updated answer.
– Kusalananda♦
Apr 9 at 8:19
Another question, whypthread_create
is included in the Linux Programmer's Manual, while some other likepthread_mutex_lock
is not? Why?
– Rick
Apr 9 at 8:22
@Rick Sorry, the package seems to beglibc-doc
. I'll look at the followup question when I'm not on the phone. Could you make it part of the main question please?
– Kusalananda♦
Apr 9 at 8:30
@Rick the glibc manpages include one forpthread_mutex_lock
: manpages.ubuntu.com/manpages/cosmic/en/man3/…
– muru
Apr 9 at 8:31
|
show 4 more comments
Ok. Let me check that link. So I should never rely on the POSIX manuals but the manual for the library that implements the interface right?
– Rick
Apr 9 at 8:12
@Rick See updated answer.
– Kusalananda♦
Apr 9 at 8:19
Another question, whypthread_create
is included in the Linux Programmer's Manual, while some other likepthread_mutex_lock
is not? Why?
– Rick
Apr 9 at 8:22
@Rick Sorry, the package seems to beglibc-doc
. I'll look at the followup question when I'm not on the phone. Could you make it part of the main question please?
– Kusalananda♦
Apr 9 at 8:30
@Rick the glibc manpages include one forpthread_mutex_lock
: manpages.ubuntu.com/manpages/cosmic/en/man3/…
– muru
Apr 9 at 8:31
Ok. Let me check that link. So I should never rely on the POSIX manuals but the manual for the library that implements the interface right?
– Rick
Apr 9 at 8:12
Ok. Let me check that link. So I should never rely on the POSIX manuals but the manual for the library that implements the interface right?
– Rick
Apr 9 at 8:12
@Rick See updated answer.
– Kusalananda♦
Apr 9 at 8:19
@Rick See updated answer.
– Kusalananda♦
Apr 9 at 8:19
Another question, why
pthread_create
is included in the Linux Programmer's Manual, while some other like pthread_mutex_lock
is not? Why?– Rick
Apr 9 at 8:22
Another question, why
pthread_create
is included in the Linux Programmer's Manual, while some other like pthread_mutex_lock
is not? Why?– Rick
Apr 9 at 8:22
@Rick Sorry, the package seems to be
glibc-doc
. I'll look at the followup question when I'm not on the phone. Could you make it part of the main question please?– Kusalananda♦
Apr 9 at 8:30
@Rick Sorry, the package seems to be
glibc-doc
. I'll look at the followup question when I'm not on the phone. Could you make it part of the main question please?– Kusalananda♦
Apr 9 at 8:30
@Rick the glibc manpages include one for
pthread_mutex_lock
: manpages.ubuntu.com/manpages/cosmic/en/man3/…– muru
Apr 9 at 8:31
@Rick the glibc manpages include one for
pthread_mutex_lock
: manpages.ubuntu.com/manpages/cosmic/en/man3/…– muru
Apr 9 at 8:31
|
show 4 more comments
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511395%2fposix-programmers-manual-vs-linux-programmers-manual%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why downvoted? This is a fairly reasonable question. At least I didn't know I should install the the manual for the library that implements the interface. before someone told me so.
– Rick
Apr 9 at 8:43
Many thanks to @Kusalananda resolving my confusion. See discussion from chat.stackoverflow.com/rooms/191520/…, hope that also help you.
– Rick
Apr 9 at 11:30