summaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_attr_get.c')
-rw-r--r--src/thread/pthread_attr_get.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread/pthread_attr_get.c b/src/thread/pthread_attr_get.c
index 3d296bf3..4aa5afdb 100644
--- a/src/thread/pthread_attr_get.c
+++ b/src/thread/pthread_attr_get.c
@@ -7,7 +7,7 @@ int pthread_attr_getdetachstate(const pthread_attr_t *a, int *state)
}
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;
}
@@ -39,14 +39,14 @@ int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr
{
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;
}