1 <assertions> 2 <assertion id="1" tag="ref:XSH6:34360:34368"> 3 The function 4 5 int pthread_mutexattr_setprotocol(const pthread_mutexattr_t *restrict attr, 6 int protocol); 7 8 Sets the protocol attribute of a mutex attribute object which was prev. created 9 by the function pthread_mutexattr_init(). 10 </assertion> 11 12 <assertion id="2" tag="ref:XSH6:34402:34405"> 13 Upon success, it returns 0. 14 </assertion> 15 <assertion id="3" tag="ref:XSH6:34406:34412"> 16 It Shall fail if: 17 [ENOTSUP] The value specified by protocol is an unsupported value. 18 19 If may fail if: 20 [EINVAL] - 'attr' or 'protocol' is invalid. 21 [EPERM] - The caller doesn't have the privilege to perform the operation. 22 23 Shall not return error code of [EINTR]. 24 </assertion> 25 </assertions> 26