aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_setscope.c
blob: c7f57ab4ffcb91b43924d12c9ce55998fb1b6d30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "pthread_impl.h"

int pthread_attr_setscope(pthread_attr_t *a, int scope)
{
	switch (scope) {
	case PTHREAD_SCOPE_SYSTEM:
		return 0;
	case PTHREAD_SCOPE_PROCESS:
		return ENOTSUP;
	default:
		return EINVAL;
	}
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif