pthread_attr_setguardsize.c 189 B

12345678
  1. #include "pthread_impl.h"
  2. int pthread_attr_setguardsize(pthread_attr_t *a, size_t size)
  3. {
  4. if (size > SIZE_MAX/8) return EINVAL;
  5. a->_a_guardsize = size - DEFAULT_GUARD_SIZE;
  6. return 0;
  7. }