Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (n - p) pthread_attr_getstacksize(2)
NAME
pthread_attr_getstacksize
- Obtains the stacksize attribute of a thread attributes object
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int pthread_attr_getstacksize(
const pthread_attr_t *attr,
size_t *stacksize );
PARAMETERS
attr species the address of the thread attributes object whose stacksize attribute is
obtained.
stacksize receives the value of the stacksize attribute.
DESCRIPTION
This function obtains the value of the stacksize attribute of the thread attributes object specied
by the attr parameter and returns it in the stacksize parameter.
RETURN VALUES
On successful completion, this function returns a 0 (zero) and the stacksize attribute value is
returned in stacksize.
If an error condition occurs, this function returns an integer value indicating the type of error.
Possible return values are:
0 Successful completion.
[EINVAL] The value specied by the attr parameter is invalid.
RELATED INFORMATION
Functions: pthread_attr_init(2), pthread_attr_setstacksize(2), pthread_create(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. Interfaces documented on this
reference page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 525