projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add memmem function (gnu extension)
[musl]
/
src
/
thread
/
pthread_mutexattr_settype.c
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;
6
*a = (*a & ~3) | type;
7
return 0;
8
}