Multithreaded Programming Guide

Return Values

On successful completion, pthread_mutexattr_setrobust_np() returns 0. Any other return value indicates that an error occurred.

If any of the following conditions occurs, pthread_mutexattr_setrobust_np() fails and returns the corresponding value.


ENOSYS

The option _POSIX_THREAD_PRIO__INHERIT is not defined or the implementation does not support pthread_mutexattr_setrobust_np().


ENOTSUP

The value specified by robustness is not supported.

pthread_mutexattr_setrobust_np() might fail if:


EINVAL

The value specified by attr or robustness is invalid.