Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #include "pthread_impl.h" |
2 | |||||
3 | int pthread_mutexattr_settype(pthread_mutexattr_t *a, int type) | ||||
4 | { | ||||
5 | if ((unsigned)type > 2) return EINVAL; | ||||
Rich Felker | 0109d95 | 2013-07-22 13:57:02 -0400 | [diff] [blame] | 6 | a->__attr = (a->__attr & ~3) | type; |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 7 | return 0; |
8 | } |