summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2016-06-03 14:30:32 +0000
committervangyzen <vangyzen@FreeBSD.org>2016-06-03 14:30:32 +0000
commitc46e1b80b9c6160967bf2db2289a277529a4d2ad (patch)
tree17cddcede90e8cc90ec4e14fc732321eecd7ee8f /lib
parent3ad48fe4cf3af65f4d0b06a73053646934078914 (diff)
downloadFreeBSD-src-c46e1b80b9c6160967bf2db2289a277529a4d2ad.zip
FreeBSD-src-c46e1b80b9c6160967bf2db2289a277529a4d2ad.tar.gz
Improve errno documentation in pthread_create(3) and thr_new(2)
Add some missing errno values to thr_new(2) and pthread_create(3). In particular, EDEADLK was not documented in the latter. While I'm here, improve some English and cross-references. Reviewed by: kib Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D6663
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/cpuset_getaffinity.24
-rw-r--r--lib/libc/sys/thr_new.211
2 files changed, 11 insertions, 4 deletions
diff --git a/lib/libc/sys/cpuset_getaffinity.2 b/lib/libc/sys/cpuset_getaffinity.2
index 7032d2e..c379518 100644
--- a/lib/libc/sys/cpuset_getaffinity.2
+++ b/lib/libc/sys/cpuset_getaffinity.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 20, 2015
+.Dd June 2, 2016
.Dt CPUSET_GETAFFINITY 2
.Os
.Sh NAME
@@ -114,6 +114,8 @@ to the value in
The following error codes may be set in
.Va errno :
.Bl -tag -width Er
+.\" When changing this list, consider updating share/man/man3/pthread_create.3,
+.\" since that function can return any of these errors.
.It Bq Er EINVAL
The
.Fa level
diff --git a/lib/libc/sys/thr_new.2 b/lib/libc/sys/thr_new.2
index 1de5f92..27f4191 100644
--- a/lib/libc/sys/thr_new.2
+++ b/lib/libc/sys/thr_new.2
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 1, 2016
+.Dd June 2, 2016
.Dt THR_NEW 2
.Os
.Sh NAME
@@ -175,6 +175,8 @@ The
.Fn thr_new
operation returns the following errors:
.Bl -tag -width Er
+.\" When changing this list, consider updating share/man/man3/pthread_create.3,
+.\" since that function can return any of these errors.
.It Bq Er EFAULT
The memory pointed to by the
.Fa param
@@ -188,7 +190,7 @@ or
.Fa rtp
arguments is not valid.
.It Bq Er EFAULT
-Specified stack base is invalid, or the kernel was unable to put required
+The specified stack base is invalid, or the kernel was unable to put required
initial data on the stack.
.It Bq Er EINVAL
The
@@ -205,6 +207,9 @@ member is not
and specifies invalid scheduling parameters.
.It Bq Er EINVAL
The specified TLS base is invalid.
+.It Bq Er EPERM
+The caller does not have permission to set the scheduling parameters or
+scheduling policy.
.It Bq Er EPROCLIM
Creation of the new thread would exceed the
.Dv RACCT_NTHR
@@ -216,7 +221,7 @@ Creation of the new thread would exceed the
.Xr sysctl 2
limit.
.It Bq Er ENOMEM
-No kernel memory to allocate for the new thread structures.
+There was not enough kernel memory to allocate the new thread structures.
.El
.Sh SEE ALSO
.Xr ps 1 ,
OpenPOWER on IntegriCloud