search for: _pthread_mutexattr_settype

Displaying 1 result from an estimated 1 matches for "_pthread_mutexattr_settype".

2008 Mar 20
1
pthread_mutexattr_settype non-conformance to man-page and POSIX
..., an error number is returned to indicate the error. ... ERRORS ... The pthread_mutexattr_settype() function will fail if: [EINVAL] Invalid value for attr, or invalid value for type. """ This does not happen (at least not in libthr): """ int _pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) { int ret; if (attr == NULL || *attr == NULL || type >= PTHREAD_MUTEX_TYPE_MAX) { errno = EINVAL; ret = -1; } else { (*attr)->m_type = type; ret = 0; }...