Get the thread lazy-stack attribute
#include <pthread.h> int pthread_attr_getstacklazy( const pthread_attr_t * attr, int *lazystack );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_attr_getstacklazy() function gets the thread lazy-stack attribute in the attribute object attr and stores it in the location pointed to by lazystack.
Processes and Threads chapter of Getting Started with QNX Neutrino