Returns the value of the stackaddr attribute of a thread attributes object.
Threads Library (libpthreads.a)
#include <pthread.h> int pthread_attr_getstackaddr (attr, stackaddr) const pthread_attr_t *attr; void **stackaddr;
The pthread_attr_getstackaddr subroutine returns the value of the stackaddr attribute of the thread attributes object attr. This attribute specifies the stack address of the thread created with this attributes object.
attr | Specifies the thread attributes object. |
stackaddr | Points to where the stackaddr attribute value will be stored. |
Upon successful completion, the value of the stackaddr attribute is returned via the stackaddr parameter, and 0 is returned. Otherwise, an error code is returned.
The pthread_attr_getstackaddr subroutine is unsuccessful if the following is true:
EINVAL | The attr parameter is not valid. |
This function will not return EINTR.
The pthread_attr_setstackaddr (pthread_attr_setstackaddr Subroutine) subroutine, pthread_attr_init (pthread_attr_init Subroutine) subroutine, the pthread.h file.
Advanced Attributes in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Threads Library Options and Threads Library Quick Reference in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.