Follow the change made in libthr, add ERANGE error code and more

EINVAL error cases.
This commit is contained in:
David Xu 2010-10-28 02:59:25 +00:00
parent 35928b338e
commit 1200ef56b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214443

View File

@ -94,8 +94,6 @@ to indicate the error.
.Sh ERRORS .Sh ERRORS
The The
.Fn pthread_attr_getaffinity_np .Fn pthread_attr_getaffinity_np
and
.Fn pthread_attr_setaffinity_np
functions will fail if: functions will fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
@ -103,6 +101,10 @@ The
.Fa pattr .Fa pattr
or the attribute specified by it is or the attribute specified by it is
.Dv NULL . .Dv NULL .
.It Bq Er ERANGE
The
.Fa cpusetsize
is too small.
.El .El
.Pp .Pp
The The
@ -114,6 +116,14 @@ The
.Fa pattr .Fa pattr
or the attribute specified by it is or the attribute specified by it is
.Dv NULL . .Dv NULL .
.It Bq Er EINVAL
The
.Fa cpusetp
specified a CPU that was outside the set supported by the kernel.
.It Bq Er ERANGE
The
.Fa cpusetsize
is too small.
.It Bq Er ENOMEM .It Bq Er ENOMEM
Insufficient memory exists to store the cpuset mask. Insufficient memory exists to store the cpuset mask.
.El .El