123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <assert.h>
- #include "pthreadP.h"
- int
- __pthread_attr_getstacksize (
- const pthread_attr_t *attr,
- size_t *stacksize)
- {
- struct pthread_attr *iattr;
- assert (sizeof (*attr) >= sizeof (struct pthread_attr));
- iattr = (struct pthread_attr *) attr;
-
- *stacksize = iattr->stacksize ?: __default_stacksize;
- return 0;
- }
- strong_alias (__pthread_attr_getstacksize, pthread_attr_getstacksize)
|