<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.freebsd.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.freebsd.org/bugzilla/"
          
          maintainer="bugmeister@FreeBSD.org"
>

    <bug>
          <bug_id>295861</bug_id>
          
          <creation_ts>2026-06-04 23:37:22 +0000</creation_ts>
          <short_desc>_POSIX_THREAD_THREADS_MAX unused const</short_desc>
          <delta_ts>2026-06-05 14:56:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Base System</product>
          <component>bin</component>
          <version>15.0-STABLE</version>
          <rep_platform>Any</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>Not A Bug</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>Affects Some People</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Rozhuk">rozhuk.im</reporter>
          <assigned_to name="freebsd-bugs (Nobody)">bugs</assigned_to>
          <cc>rozhuk.im</cc>
    
    <cc>ziaee</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1427657</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Rozhuk">rozhuk.im</who>
    <bug_when>2026-06-04 23:37:22 +0000</bug_when>
    <thetext>Looks like subject to remove.

# grep -rsp &quot;_POSIX_THREAD_THREADS_MAX&quot; /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:	{ &quot;_POSIX_THREAD_THREADS_MAX&quot;,	_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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1427682</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Ziaee">ziaee</who>
    <bug_when>2026-06-05 05:32:01 +0000</bug_when>
    <thetext>Thanks for the report! I think we&apos;re supposed to keep that because it&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1427786</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Rozhuk">rozhuk.im</who>
    <bug_when>2026-06-05 14:56:46 +0000</bug_when>
    <thetext>At least it can be removed from man and getconf.
I have no idea how to interpret it in man pthread_join.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>