PTHREAD_ATTR_GETSTACKADDR(3)BSD Programmer's ManuaPTHREAD_ATTR_GETSTACKADDR(3)NAME
pthread_attr_getstacksize, pthread_attr_setstacksize - pthread creation
stacksize attribute
SYNOPSIS
#include <pthread.h>
int
pthread_attr_getstacksize(pthread_attr_t *attr, size_t **stacksize);
int
pthread_attr_setstacksize(pthread_attr_t *attr, size_t *stacksize);
DESCRIPTION
This interface is defined by IEEE Std1003.1c (``POSIX'').
The pthread_attr_getstacksize() and pthread_attr_setstacksize() functions
retrieve and establish the stacksize attribute in the pthread creation
attribute pointed to by attr.
RETURN VALUES
Upon successful completion the pthread_attr_getstacksize and
pthread_attr_setstacksize functions both return 0. A non-zero result in-
dicates an error occurred. Upon successful completion the
pthread_attr_getstacksize function returns a copy of the stacksize at-
tribute value in the location pointed to by stacksize.
ERRORS
The pthread_attr_getstacksize and pthread_attr_setstacksize functions may
fail and return the following error:
[EINVAL] The value of a function argument is invalid.
SEE ALSOpthreads(3), pthread_attr(3), pthread_create(3)STANDARDS
The pthread_attr_getstacksize and pthread_attr_setstacksize functions
conform to IEEE Std1003.1c (``POSIX'').
HISTORY
The pthread_attr_getstacksize and pthread_attr_setstacksize functions
first appeared in BSD/OS 4.0.
4th Berkeley Distribution May 29, 1998 1