repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cuserid: support invocation with a null pointer argument
[musl.git]
/
src
/
thread
/
pthread_attr_setinheritsched.c
blob
ca264be7c4d969a9dd12cbd8a80c6a1911533473
1
#include
"pthread_impl.h"
2
#include
"syscall.h"
3
4
int
pthread_attr_setinheritsched
(
pthread_attr_t
*
a
,
int
inherit
)
5
{
6
if
(
inherit
>
1U
)
return
EINVAL
;
7
a
->
_a_sched
=
inherit
;
8
return
0
;
9
}