How to set the stack size for BeOS/Haiku threads

Hi,

is it possible to set a stack size for an BeOS/Haiku thread? I think on something like: “int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize);”.

greetz
Robert S.