aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/thr_new.2
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2016-06-03 14:30:32 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2016-06-03 14:30:32 +0000
commit28e3357884527e90cfc843e4a95d66661669fbf4 (patch)
tree17cddcede90e8cc90ec4e14fc732321eecd7ee8f /lib/libc/sys/thr_new.2
parentd1cf30f4f18124441de37d61516fa9034aa52fda (diff)
downloadsrc-28e3357884527e90cfc843e4a95d66661669fbf4.tar.gz
src-28e3357884527e90cfc843e4a95d66661669fbf4.zip
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
Notes
Notes: svn path=/head/; revision=301274
Diffstat (limited to 'lib/libc/sys/thr_new.2')
-rw-r--r--lib/libc/sys/thr_new.211
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libc/sys/thr_new.2 b/lib/libc/sys/thr_new.2
index 1de5f92ad56c..27f4191ae8b5 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 ,