2011-02-12 00:22:29 -05:00
|
|
|
#include "pthread_impl.h"
|
|
|
|
|
|
|
|
int pthread_attr_setguardsize(pthread_attr_t *a, size_t size)
|
|
|
|
{
|
|
|
|
if (size > SIZE_MAX/8) return EINVAL;
|
2011-02-17 17:16:20 -05:00
|
|
|
a->_a_guardsize = size - DEFAULT_GUARD_SIZE;
|
2011-02-12 00:22:29 -05:00
|
|
|
return 0;
|
|
|
|
}
|