[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: PTHREAD_THREADS_MAX missing?



> That brings up the question: what does sysconf(_SC_THREAD_THREADS_MAX) 
> return in nptl?
> Uh-oh, looks like it might be -1; see
> 
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/posix/sysconf.c?rev=1.32
> 
>      case _SC_THREAD_THREADS_MAX:
> #ifdef  PTHREAD_THREADS_MAX
>        return PTHREAD_THREADS_MAX;
> #else
>        return -1;
> #endif
> 
> Is that compliant?

Yes, if _SC_THREAD_THREADS_MAX truly has no limit (except for actual 
resource
availability), and errno is not changed.


-------------------
Mark S. Brown 
STSM, UNIX/Linux OS Standards
IBM Systems Group
bmark us ibm com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]