Add POSIX test suite 1.5.2 (http://sourceforge.net/projects/posixtest/).
[dragonfly.git] / test / contrib / posixtestsuite-1.5.2 / conformance / interfaces / mq_setattr / assertions.xml
1 <assertions>
2   <assertion id="1" tag="ref:XSH6:26031:26038 pt:MSG">
3 The mq_setattr() will set attributes associated with the open message queue description referenced by the message queue descriptor specified by mqdes.
4 The following members of mq_attr will be set to the specified value:
5   mq_flags is the bitwise-logical OR of zero or more of O_NONBLOCK an
6 d any implementation-defined flags.
7   mq_maxmsg, mq_msgsize, and mq_curmsgs memebers of the mq_attr stru
8 cture shall be ignored by mq_setattr().
9   </assertion>
10   <assertion id="2" tag="ref:XSH6:26039:26041 pt:MSG">
11 If omqstat is non-NULL, mq_setattr() will store the previous message queue attributes and the current queue status in the location referenced by omqstat. These values will be the same as would be returned by a call to mq_getattr() at that point.
12   </assertion>
13   <assertion id="3" tag="ref:XSH6:26043:26044 pt:MSG">
14 If mq_setattr() is successful, it will return a value of zero and the attributes of the message queue will change as specified.
15   </assertion>
16   <assertion id="4" tag="ref:XSH6:26045:26046 pt:MSG">
17 If mq_setattr() is not successful, the message queue attributes will be unchanged, and the function will return a value of -1 and set errno to indicate the error.
18   </assertion>
19   <assertion id="5" tag="ref:XSH6:26048:26049 pt:MSG">
20 mq_setattr() fails with EBADF if mqdes argument is not a valid message descriptor.
21   </assertion>
22 </assertions>