1 <assertions> 2 <assertion id="1" tag="ref:XSH6:31637:31638"> 3 The pthread_attr_setstack() shall set the thread creation stack 4 stacksize in the attr ojbect. 5 </assertion> 6 7 <assertion id="2" tag="ref:XSH6:31639:31640"> 8 The stacksize attribute shall define the minimum stack size (in bytes) 9 allocated for the created thread stack. 10 </assertion> 11 12 <assertion id="3" tag="ref:XSH6:31642:31643 ref:XSH6:31644:31645"> 13 If success, it returns zero and stores the stacksize attribute in 14 the stacksize if successful. 15 </assertion> 16 17 <assertion id="4" tag="ref:XSH6:31643:31643 ref:XSH6:31647:31649"> 18 if fail, an error number shall be returned to indicate the error. 19 The pthread_attr_setstacksize() function shall fail if: 20 [EINVAL] The value of stacksize is less than {PTHREAD_STACK_MIN} 21 or exceeds an implementation-defined limit. 22 </assertion> 23 24 <assertion id="5" tag="ref:XSH6:31650:31650"> 25 Shall not return an error code of [EINTR] 26 </assertion> 27 </assertions> 28