pthread_attr_getstack()

Get the thread-creation stack attributes

Synopsis:

#include <pthread.h>

int pthread_attr_getstack( const pthread_attr_t *attr,
                           void **stackaddr,
                           size_t *stacksize );

Arguments:

attr
A pointer to the pthread_attr_t structure that defines the attributes to use when creating new threads. For more information, see pthread_attr_init().
stackaddr
A pointer to a location where the function can store the base address of the thread stack.
stacksize
A pointer to a location where the function can store the size of the thread stack, in bytes.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The pthread_attr_getstack() function gets the stack attributes from the given thread attributes.

Returns:

EOK

Classification:

POSIX 1003.1 TSA TSS

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes