| 1 | #include "pthread_impl.h" |
| 2 | |
| 3 | static void dummy_0() |
| 4 | { |
| 5 | } |
| 6 | weak_alias(dummy_0, __acquire_ptc); |
| 7 | weak_alias(dummy_0, __release_ptc); |
| 8 | |
| 9 | int __pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict attrp, void *(*entry)(void *), void *restrict arg) |
| 10 | { |
| 11 | 	/* |
| 12 | 		"The system lacked the necessary resources to create another thread, |
| 13 | 		or the system-imposed limit on the total number of threads in a process |
| 14 | 		{PTHREAD_THREADS_MAX} would be exceeded." |
| 15 | 	*/ |
| 16 | 	return EAGAIN; |
| 17 | } |
| 18 | |
| 19 | weak_alias(__pthread_create, pthread_create); |