1#include "threads_impl.h" 2 3int pthread_attr_setstacksize(pthread_attr_t* a, size_t size) { 4 if (size - PTHREAD_STACK_MIN > SIZE_MAX / 4) 5 return EINVAL; 6 a->_a_stackaddr = NULL; 7 a->_a_stacksize = size; 8 return 0; 9} 10
1#include "threads_impl.h" 2 3int pthread_attr_setstacksize(pthread_attr_t* a, size_t size) { 4 if (size - PTHREAD_STACK_MIN > SIZE_MAX / 4) 5 return EINVAL; 6 a->_a_stackaddr = NULL; 7 a->_a_stacksize = size; 8 return 0; 9} 10