pthread_attr_getstacksize(3thr)pthread_attr_getstacksize(3thr)Namepthread_attr_getstacksize - Obtains the value of the stacksize
attribute in the specified thread attributes object.
Syntax
#include <pthread.h>
int pthread_attr_getstacksize (attr)
pthread_attr_t attr;
Arguments
attr Thread attributes object whose stacksize attribute is obtained.
Description
This routine obtains the minimum size (in bytes) of the stack for a
thread created using the thread attributes object specified by the attr
argument.
Return Values
On successful completion, this routine returns the stacksize attribute
value.
If an error condition occurs, this routine returns -1 and sets errno to
the corresponding error value. Possible return values are as follows.
Return Error Description
Stacksize attribute Successful compleā
tion.
-1 [EINVAL] The value specified
by attr is invalid.
pthread_attr_getstacksize(3thr)