if (kind != PTHREAD_MUTEX_FAST_NP && kind != PTHREAD_MUTEX_RECURSIVE_NP && kind != PTHREAD_MUTEX_ERRORCHECK_NP) return EINVAL; attr->__mutexkind = kind; return 0;
pthread_mutex_init(&once_masterlock, NULL); pthread_cond_init(&once_finished, NULL);
strong_alias (__pthread_mutexattr_destroy, pthread_mutexattr_destroy)int __pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind){  if (kind != PTHREAD_MUTEX_FAST_NP      && kind != PTHREAD_MUTEX_RECURSIVE_NP      && kind != PTHREAD_MUTEX_ERRORCHECK_NP)    return EINVAL;  attr->__mutexkind = kind;  return 0;}