aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/rtprio.2
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2012-11-16 09:56:25 +0000
committerKevin Lo <kevlo@FreeBSD.org>2012-11-16 09:56:25 +0000
commitb95b21c7abe4ba2ee5fb83d382bc8c2869a93a42 (patch)
treec94d26f74df23c2590a6f41c52d8ec63db1d7f7b /lib/libc/sys/rtprio.2
parent134eb42e2497d74bd1a960b93d125a42345ae5b6 (diff)
downloadsrc-b95b21c7abe4ba2ee5fb83d382bc8c2869a93a42.tar.gz
src-b95b21c7abe4ba2ee5fb83d382bc8c2869a93a42.zip
Document that rtprio(2) and rtprio_thread(2) can fail with EFAULT
due to the invoked copyout(9). Reviewed by: davidxu
Notes
Notes: svn path=/head/; revision=243144
Diffstat (limited to 'lib/libc/sys/rtprio.2')
-rw-r--r--lib/libc/sys/rtprio.212
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/rtprio.2 b/lib/libc/sys/rtprio.2
index ac78b5099514..f30ed225475b 100644
--- a/lib/libc/sys/rtprio.2
+++ b/lib/libc/sys/rtprio.2
@@ -145,13 +145,21 @@ Higher real/idle priority threads
preempt lower real/idle priority threads.
Threads of equal real/idle priority are run round-robin.
.Sh RETURN VALUES
-.Rv -std rtprio
+.Rv -std rtprio rtprio_thread
.Sh ERRORS
The
.Fn rtprio
-system call
+and
+.Fn rtprio_thread
+system calls
will fail if:
.Bl -tag -width Er
+.It Bq Er EFAULT
+The rtp pointer passed to
+.Fn rtprio
+or
+.Fn rtprio_thread
+was invalid.
.It Bq Er EINVAL
The specified
.Fa prio