sysconf: add _SC_THREAD_THREADS_MAX response

fix ltp_pthread_create_s_c1 test get wrong PTHREAD_THREADS_MAX.

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
This commit is contained in:
yangyalei 2023-06-26 10:39:32 +08:00 committed by Xiang Xiao
parent c33e6528b1
commit ed705f9cb3
1 changed files with 5 additions and 0 deletions

View File

@ -249,6 +249,11 @@ long sysconf(int name)
case _SC_THREAD_STACK_MIN:
return CONFIG_PTHREAD_STACK_MIN;
/* threads limit to tcb_s->group->tg_nmembers(unint_8) */
case _SC_THREAD_THREADS_MAX:
return UINT8_MAX;
default:
#if 0 /* Assume valid but not implemented for the time being */
errcode = EINVAL;