Obtains the guardsize attribute of the specified thread attributes object.
pthread_attr_getguardsize_np( attr );
Argument Data Type Accessattr opaque pthread_attr_t read
unsigned long pthread_attr_getguardsize_np ( pthread_attr_t attr);
A guard area helps to detect stack overflows by preventing memory access beyond the thread's stack. Large guard areas are necessary when threads might allocate large structures on the stack.
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 DescriptionGuardsize Successful completion. attribute -1 [EINVAL] The value specified by attr is invalid.