pthread_attr_getstacksize(3) — Subroutines
Digital
NAME
pthread_attr_getstacksize − Obtains the value of the stacksize attribute in the specified thread attributes object.
SYNOPSIS
#include <pthread.h>
unsigned long pthread_attr_getstacksize(
pthread_attr_t attr );
PARAMETERS
attrThread 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 parameter.
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 completion. | |
| −1 | [EINVAL] | The value specified by attr is invalid. The value specified by attr does not refer to an existing thread attributes object. |
RELATED INFORMATION
pthread_attr_create(3), pthread_attr_setstacksize(3), pthread_create(3)