Module Name: src Committed By: martin Date: Fri Oct 11 17:26:32 UTC 2024
Modified Files: src/include [netbsd-10]: limits.h Log Message: Pull up following revision(s) (requested by riastradh in ticket #945): include/limits.h: revision 1.45 limits.h: Define PTHREAD_STACK_MIN and tidy up comments. Define this to be 4096, which is (as far as I can tell) the smallest possible page size on any architecture NetBSD supports. This should be MIN_PAGE_SIZE instead, but I don't think that is exposed in any way that doesn't badly pollute the namespace. We should maybe have a __MIN_PAGE_SIZE defined in some header file exposed to userland. Of course, applications actually need to allocate at least sysconf(_SC_THREAD_STACK_MIN) = getpagesize() bytes, which may be larger than PTHREAD_STACK_MIN. The various feature flags (dates) like _POSIX_THREAD_ATTR_STACKADDR are defined (or not defined) by unistd.h, not by limits.h, so there's no value in mentioning them here -- and the comment is wrong about most of them (we have implemented _POSIX_THREAD_ATTR_STACKADDR, for example). PR standards/45435: PTHREAD_KEYS_MAX et al. missing in <limits.h> To generate a diff of this commit: cvs rdiff -u -r1.43.2.1 -r1.43.2.2 src/include/limits.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.