The user specified a stack address and the size of the area was not
large enough to meet this processor's minimum stack requirements.
EINVAL
The specified scheduler inheritance policy was invalid.
ENOTSUP
The specified contention scope was PTHREAD_SCOPE_PROCESS.
EINVAL
The specified thread priority was invalid.
EINVAL
The specified scheduling policy was invalid.
EINVAL
The scheduling policy was SCHED_SPORADIC and the specified replenishment
period is less than the initial budget.
EINVAL
The scheduling policy was SCHED_SPORADIC and the specified low priority
is invalid.
EAGAIN
The system lacked the necessary resources to create another thread, or the
self imposed limit on the total number of threads in a process
PTHREAD_THREAD_MAX would be exceeded.