| 1 | #include "pthread_impl.h" |
| 2 | |
| 3 | int pthread_getattr_np(pthread_t t, pthread_attr_t *a) |
| 4 | { |
| 5 | 	*a = (pthread_attr_t){0}; |
| 6 | 	/* Can't join main thread. */ |
| 7 | 	a->_a_detach = PTHREAD_CREATE_DETACHED; |
| 8 | 	/* WASI doesn't have memory protection required for stack guards. */ |
| 9 | 	a->_a_guardsize = 0; |
| 10 | 	return 0; |
| 11 | } |