pthread_attr_getguardsize() fails if:
EINVAL
The argument attr is invalid, the argument guardsize is invalid, or the argument guardsize contains an invalid value.