aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_setinheritsched.c
blob: 318ffbdccc457befc69bfa1fa04c7584d03b19a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "pthread_impl.h"
#include "syscall.h"

int pthread_attr_setinheritsched(pthread_attr_t *a, int inherit)
{
	if (inherit > 1U) return EINVAL;
	a->_a_sched = inherit;
	return 0;
}


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