HomeFreeBSD

pthread_attr_get_np(3): Revamp

Description

pthread_attr_get_np(3): Revamp

Fix and more thoroughly describe the attributes object lifecycle.

Also, correct the text about which attributes' values are reported.

Add the ENOMEM error.

While here, rephrase unclear passages, add references and fix the
example's style.

Reviewed by: kib, emaste
Approved by: emaste (mentor)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D43330

(cherry picked from commit 6211cd4be32dfdc51b5ac452d4ead98a36ec42a6)

Approved by: markj (mentor)

Details

Provenance
olceAuthored on Jan 5 2024, 1:14 PM
Reviewer
kib
Differential Revision
D43330: pthread_attr_get_np(3): Proper attributes object lifecycle
Parents
rGf68a255ff325: pthread_attr_get_np(): Use malloc(), report ENOMEM, don't tamper on error
Branches
Unknown
Tags
Unknown