Sign in
mojo
/
mojo-tools
/
4446eb0e2d7a3e9bca844dc343aa4094eaae9a97
/
.
/
fusl
/
src
/
thread
/
pthread_attr_setguardsize.c
blob: 9f21d24702fbf3874c26e196943653166bb3f818 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_attr_setguardsize
(
pthread_attr_t
*
a
,
size_t
size
)
{
if
(
size
>
SIZE_MAX
/
8
)
return
EINVAL
;
a
->
_a_guardsize
=
size
-
DEFAULT_GUARD_SIZE
;
return
0
;
}