Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166890652
D39459.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39459.diff
View Options
diff --git a/include/limits.h b/include/limits.h
--- a/include/limits.h
+++ b/include/limits.h
@@ -121,6 +121,14 @@
#define _POSIX_RE_DUP_MAX _POSIX2_RE_DUP_MAX
#endif
+/*
+ * Pthread run-time invariant values:
+ */
+#define PTHREAD_DESTRUCTOR_ITERATIONS 4
+#define PTHREAD_KEYS_MAX 256
+#define PTHREAD_STACK_MIN __MINSIGSTKSZ
+#define PTHREAD_THREADS_MAX __ULONG_MAX
+
#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809
#define NL_ARGMAX 4096 /* max # of position args for printf */
#define NL_MSGMAX 32767
diff --git a/include/pthread.h b/include/pthread.h
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -47,14 +47,11 @@
#include <sys/_sigset.h>
#include <sched.h>
#include <time.h>
+#include <limits.h>
/*
* Run-time invariant values:
*/
-#define PTHREAD_DESTRUCTOR_ITERATIONS 4
-#define PTHREAD_KEYS_MAX 256
-#define PTHREAD_STACK_MIN __MINSIGSTKSZ
-#define PTHREAD_THREADS_MAX __ULONG_MAX
#define PTHREAD_BARRIER_SERIAL_THREAD -1
/*
diff --git a/lib/libstdthreads/tss.c b/lib/libstdthreads/tss.c
--- a/lib/libstdthreads/tss.c
+++ b/lib/libstdthreads/tss.c
@@ -31,6 +31,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <limits.h>
#include <pthread.h>
#include "threads.h"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 1:44 PM (3 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36874204
Default Alt Text
D39459.diff (1 KB)
Attached To
Mode
D39459: Move PTHREAD_ values to limits.h to conform POSIX.
Attached
Detach File
Event Timeline
Log In to Comment