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.
https://reviews.freebsd.org/D42344
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(+)
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(+)
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(+)