Sign in
fuchsia
/
fuchsia
/
6697568849879512cc8452e84c2db4c0da200466
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
pthread
/
pthread_attr_setstacksize.c
blob: 4096d622470c96635fe81424f1451948480d9b23 [
file
] [
log
] [
blame
]
#include
"threads_impl.h"
int
pthread_attr_setstacksize
(
pthread_attr_t
*
a
,
size_t
size
)
{
if
(
size
-
PTHREAD_STACK_MIN
>
SIZE_MAX
/
4
)
return
EINVAL
;
a
->
_a_stackaddr
=
NULL
;
a
->
_a_stacksize
=
size
;
return
0
;
}