Multithreaded Programming Guide

Return Values

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

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


ENOSYS

The option _POSIX_THREAD_PRIO_PROTECT is not defined and the implementation does not support the function.

If either of the following conditions occurs, pthread_mutexattr_getprioceiling() might fail and return the corresponding value.


EINVAL

The value specified by attr is invalid.


EPERM

The caller does not have the privilege to perform the operation.