about summary refs log tree commit diff
path: root/src/thread/pthread_attr_init.c
blob: a962b46080608acf8f20288f36ff6bab9537d11a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "pthread_impl.h"

extern size_t __default_stacksize;
extern size_t __default_guardsize;

int pthread_attr_init(pthread_attr_t *a)
{
	*a = (pthread_attr_t){0};
	a->_a_stacksize = __default_stacksize;
	a->_a_guardsize = __default_guardsize;
	return 0;
}