Sign in
fuchsia
/
zircon
/
c830a868f9c3841f574fa57d2f86587595552928
/
.
/
third_party
/
ulib
/
musl
/
pthread
/
pthread_attr_setdetachstate.c
blob: 0e9df24edf51c574384d81c92e1b21ed45c00881 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_attr_setdetachstate
(
pthread_attr_t
*
a
,
int
state
)
{
if
(
state
!=
PTHREAD_CREATE_DETACHED
&&
state
!=
PTHREAD_CREATE_JOINABLE
)
return
EINVAL
;
a
->
_a_detach
=
state
;
return
0
;
}