blob: 366ca3e2184cd193cd36b56f62089c54fa312b36 [file] [log] [blame]
<assertions>
<assertion id="1" tag="ref:XSH6:35257:35259">
The function
int pthread_setcanceltype(int type, int* oldtype);
Atomically sets the cancelability type to 'type' and returns the old
cancelability type in the location referenced by 'oldtype'.
'state' can either be PTHREAD_CANCEL_DEFERRED, or PTHREAD_CANCEL_ASYNCHRONOUS.
</assertion>
<assertion id="2" tag="ref:XSH6:35261:35263">
The cancelability type of a newly created thread is PTHREAD_CANCEL_DEFERRED.
</assertion>
<assertion id="3" tag="ref:XSH6:35267:35276">
It returns a 0 on success. It may return an error code of:
[EINVAL] The specified state is not PTHREAD_CANCEL_DEFERRED or
PTHREAD_CANCEL_ASYNCHRONOUS.
It will not return EINTR.
</assertion>
</assertions>