Return Values
pthread_attr_setscope() returns zero after completing successfully. Any other returned value indicates that an error occurred. If the following conditions occur, the function fails and returns the corresponding value.
-
EINVAL
-
An attempt was made to set tattr to a value that is not valid.