Page MenuHomeFreeBSD

Move PTHREAD_ values to limits.h to conform POSIX.
Needs ReviewPublic

Authored by mchoo on Apr 7 2023, 5:18 PM.
Referenced Files
Unknown Object (File)
Fri, Oct 2, 11:26 AM
Unknown Object (File)
Thu, Oct 1, 10:48 AM
Unknown Object (File)
Sun, Sep 20, 7:55 PM
Unknown Object (File)
Sep 5 2026, 12:53 AM
Unknown Object (File)
Sep 5 2026, 12:28 AM
Unknown Object (File)
Sep 5 2026, 12:20 AM
Unknown Object (File)
Aug 19 2026, 5:15 PM
Unknown Object (File)
Aug 18 2026, 8:18 PM

Details

Reviewers
None
Group Reviewers
Contributor Reviews (src)
Summary

Related: FreeBSD wiki

POSIX standard says that PTHREAD_DESTRUCTOR_ITERATIONS, PTHREAD_KEYS_MAX, PTHREAD_STACK_MIN, PTHREAD_THREADS_MAX should be in limits.h rather than pthread.h.

OpenZFS now uses those values from limits.h starting from 2.2.0. Github commit

Test Plan

make buildworld && make kernel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 52689
Build 49580: arc lint + arc unit

Event Timeline

mchoo requested review of this revision.Apr 7 2023, 5:18 PM
mchoo retitled this revision from Define some PTHREAD_ values in limits.h to conform POSIX. to Move PTHREAD_ values to limits.h to conform POSIX..Jul 18 2023, 7:50 PM
mchoo edited the summary of this revision. (Show Details)
mchoo edited the test plan for this revision. (Show Details)

New diff file