1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "pthread_impl.h" int pthread_mutexattr_settype(pthread_mutexattr_t *a, int type) { if ((unsigned)type > 2) return EINVAL; a->__attr = (a->__attr & ~3) | type; return 0; } #ifdef TEST int main(void) { return 0; } #endif