Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
and set attrp pointing to thread attributes object */
if (argc > 1) {
- int stack_size;
+ size_t stack_size;
void *sp;
attrp = &attr;
{
int s, opt, num_threads;
pthread_attr_t attr;
- int stack_size;
+ size_t stack_size;
void *res;
/* The "\-s" option specifies a stack size for our threads */
pthread_attr_t *attrp)
{
int s, opt, allocate_stack;
- long stack_size, guard_size;
+ size_t stack_size, guard_size;
void *stack_addr;
pthread_attr_t *ret_attrp = NULL; /* Set to attrp if we initialize
a thread attributes object */