Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pthread_attr_getstacksize(3thr)

Name

pthread_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 completion. 
-1 [EINVAL] The value specified by attr is invalid. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026