there is a resource limit of 0 bits to store the concurrency level
requested. thus any positive level exceeds a resource limit, resulting
in EAGAIN. :-)
int pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
+int pthread_getconcurrency(void);
+int pthread_setconcurrency(int);
+
#include <bits/pthread.h>
int __setjmp(void *);
--- /dev/null
+#include <pthread.h>
+
+int pthread_getconcurrency()
+{
+ return 0;
+}
--- /dev/null
+#include <pthread.h>
+#include <errno.h>
+
+int pthread_setconcurrency(int val)
+{
+ if (val < 0) return EINVAL;
+ if (val > 0) return EAGAIN;
+ return 0;
+}