}
int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size)
{
- *size = a->_a_guardsize + DEFAULT_GUARD_SIZE;
+ *size = a->_a_guardsize;
return 0;
}
{
if (!a->_a_stackaddr)
return EINVAL;
- *size = a->_a_stacksize + DEFAULT_STACK_SIZE;
+ *size = a->_a_stacksize;
*addr = (void *)(a->_a_stackaddr - *size);
return 0;
}
int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size)
{
- *size = a->_a_stacksize + DEFAULT_STACK_SIZE;
+ *size = a->_a_stacksize;
return 0;
}