PTHREAD_ATTR_GETSTACKADDR(3)BSD Programmer's ManuaPTHREAD_ATTR_GETSTACKADDR(3)NAME
pthread_attr_getstackaddr, pthread_attr_setstackaddr - pthread creation
stackaddr attribute
SYNOPSIS
#include <pthread.h>
int
pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr);
int
pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr);
DESCRIPTION
This interface is defined by IEEE Std1003.1c (``POSIX'').
The pthread_attr_getstackaddr() and pthread_attr_setstackaddr() functions
retrieve and establish the stackaddr attribute in the pthread creation
attribute pointed to by attr.
RETURN VALUES
Upon successful completion the pthread_attr_getstackaddr and
pthread_attr_setstackaddr functions both return 0. A non-zero result in-
dicates an error occurred. Upon successful completion the
pthread_attr_getstackaddr function returns a copy of the stackaddr at-
tribute value in the location pointed to by stackaddr.
ERRORS
The pthread_attr_getstackaddr and pthread_attr_setstackaddr 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_getstackaddr and pthread_attr_setstackaddr functions
conform to IEEE Std1003.1c (``POSIX'').
HISTORY
The pthread_attr_getstackaddr and pthread_attr_setstackaddr functions
first appeared in BSD/OS 4.0.
4th Berkeley Distribution May 29, 1998 1