Re: PTHREAD_THREADS_MAX missing?
Dan Kegel <[email protected]>
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
Christoph Hellwig wrote: > On Wed, Apr 02, 2003 at 10:36:03AM -0600, Steven Munroe wrote: > >>Has anyone run LTP against nptl recently? >> >>The ltp-20030324 version compile of trace_sched.c fails because >>PTHREAD_THREADS_MAX is not defined. Linuxthreads defines this in >>/sysdeps/unix/sysv/linux/bits/local_lim.h >> >>Should nptl define this (or similar) symbol? Or should this sort of thing be >>defined only in kernel headers (include/linux/threads.h)? > > > nptl has no hardcoded thread limits, see tst-sysconf.c. The kernel > doesn't have a hardcoded number of threads (well, except PID_MAX) > aswell. Furthermore, Posix does not require PTHREAD_THREADS_MAX be defined; see http://www.opengroup.org/onlinepubs/007904975/basedefs/pthread.h.html Looks like LTP needs to change trace_sched.c to be more posix-compliant. - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045