summaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_setinheritsched.c
blob: ca264be7c4d969a9dd12cbd8a80c6a1911533473 (plain)
1
2
3
4
5
6
7
8
9
#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;
}