Bug 274678 - pthread_mutexatte_init(3) does not properly describe pthread_mutexattr_setpshared()
Summary: pthread_mutexatte_init(3) does not properly describe pthread_mutexattr_setpsh...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: threads (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-23 17:06 UTC by Robert Watson
Modified: 2023-11-04 16:02 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Watson freebsd_committer freebsd_triage 2023-10-23 17:06:21 UTC
The pthread_condattr_init(3) man page nicely describes its get/setpshared APIs — including its flag values and their meanings.  The pthread_mutexattr_init(3) does not do the same for its own get/set-shared APIs, but should do.
Comment 1 Konstantin Belousov freebsd_committer freebsd_triage 2023-10-23 22:58:14 UTC
https://reviews.freebsd.org/D42344
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-10-26 21:13:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=2152c4e2db88b9264c6400f2510440465d39c7b8

commit 2152c4e2db88b9264c6400f2510440465d39c7b8
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-10-23 22:54:54 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-10-26 21:05:29 +0000

    pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared

    PR:     274678
    Reviewed by:    emaste
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Differential revision:  https://reviews.freebsd.org/D42344

 share/man/man3/pthread_mutexattr.3 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-10-29 00:47:37 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=578e91188081525fe45abd00cd751600190b4688

commit 578e91188081525fe45abd00cd751600190b4688
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-10-23 22:54:54 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-10-29 00:47:05 +0000

    pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared

    PR:     274678

    (cherry picked from commit 2152c4e2db88b9264c6400f2510440465d39c7b8)

 share/man/man3/pthread_mutexattr.3 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-10-29 00:48:40 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=9fe1192bd9f25e21a7c2cac9a5acd5091ec78de8

commit 9fe1192bd9f25e21a7c2cac9a5acd5091ec78de8
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-10-23 22:54:54 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-10-29 00:47:44 +0000

    pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared

    PR:     274678

    (cherry picked from commit 2152c4e2db88b9264c6400f2510440465d39c7b8)

 share/man/man3/pthread_mutexattr.3 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)