File: assertions.xml

package info (click to toggle)
posixtestsuite 1.5.2-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,440 kB
  • sloc: ansic: 117,313; xml: 7,497; sh: 1,148; makefile: 281; perl: 34
file content (25 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<assertions>
  <assertion id="1" tag="ref:XSH6:34360:34368">
   The function

   int pthread_mutexattr_setprotocol(const pthread_mutexattr_t *restrict attr, 
	int protocol);

  Sets the protocol attribute of a mutex attribute object which was prev. created
  by the function pthread_mutexattr_init().
  </assertion>  

  <assertion id="2" tag="ref:XSH6:34402:34405">
  Upon success, it returns 0.
  </assertion>
  <assertion id="3" tag="ref:XSH6:34406:34412">
  It Shall fail if:
  	[ENOTSUP] The value specified by protocol is an unsupported value.

  If may fail if:
	[EINVAL] - 'attr' or 'protocol' is invalid.
  	[EPERM] - The caller doesn't have the privilege to perform the operation.

  Shall not return error code of [EINTR].
  </assertion>
</assertions>