musl/src/thread/pthread_attr_setguardsize.c

9 lines
188 B
C
Raw Normal View History

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;
a->__guardsize = size - DEFAULT_GUARD_SIZE;
return 0;
}