Changes the stacksize attribute of thread creation.
pthread_attr_setstacksize(
                          attr,
                          stacksize );
 
Argument         Data Type               Access
attr             opaque pthread_attr_t   read
stacksize        longword                read
int pthread_attr_setstacksize ( pthread_attr_t *attr, long stacksize);
A thread's stack is fixed at the time of thread creation. Only the main or initial thread can dynamically extend its stack.
Most compilers do not check for stack overflow. Ensure that your thread stack is large enough for anything that you call from the thread.
Return Error Description0 Successful completion. -1 [EINVAL] The value specified by attr is invalid.