}
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;
}
int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol)
{
- *protocol = PTHREAD_PRIO_NONE;
+ *protocol = a->__attr / 8U % 2;
return 0;
}
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared)