Thread Attributes
int pthread_attr_init(pthread_attr_t * attr);
int pthread_attr_destroy(pthread_attr_t * attr);
int pthread_attr_getdetachstate(pthread_attr_t * attr, int * state);
int pthread_attr_setdetachstate(pthread_attr_t * attr, int state);
int pthread_attr_getstacksize(pthread_attr_t * attr, size_t * stacksize);
int pthread_attr_setstacksize(pthread_attr_t * attr, size_t stacksize);
int pthread_attr_getstackaddr(pthread_attr_t * attr, void ** stackaddr);
int pthread_attr_setstackaddr(pthread_attr_t * attr, void * stackaddr);
int pthread_attr_setcleanup(pthread_attr_t * attr, void * arg);