Bug 295861 - _POSIX_THREAD_THREADS_MAX unused const
Summary: _POSIX_THREAD_THREADS_MAX unused const
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 15.0-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-04 23:37 UTC by Ivan Rozhuk
Modified: 2026-06-05 14:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2026-06-04 23:37:22 UTC
Looks like subject to remove.

# grep -rsp "_POSIX_THREAD_THREADS_MAX" /usr/src/
/usr/src/contrib/netbsd-tests/include/t_limits.c:#ifdef	_POSIX_THREAD_THREADS_MAX
/usr/src/contrib/netbsd-tests/include/t_limits.c:	{ "_POSIX_THREAD_THREADS_MAX",	_POSIX_THREAD_THREADS_MAX,	64   },
/usr/src/include/limits.h:#define	_POSIX_THREAD_THREADS_MAX 64
/usr/src/share/man/man3/pthread_join.3:[_POSIX_THREAD_THREADS_MAX].
/usr/src/usr.bin/getconf/limits.gperf:_POSIX_THREAD_THREADS_MAX, _POSIX_THREAD_THREADS_MAX
Comment 1 Alexander Ziaee freebsd_committer freebsd_triage 2026-06-05 05:32:01 UTC
Thanks for the report! I think we're supposed to keep that because it's part of POSIX.1. Old applications in the wild might need it. Please explain further if you think this is an error.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
Comment 2 Ivan Rozhuk 2026-06-05 14:56:46 UTC
At least it can be removed from man and getconf.
I have no idea how to interpret it in man pthread_join.