svn commit: r319991 - head/share/man/man9
Eric van Gyzen
vangyzen at FreeBSD.org
Thu Jun 15 21:34:44 UTC 2017
Author: vangyzen
Date: Thu Jun 15 21:34:43 2017
New Revision: 319991
URL: https://svnweb.freebsd.org/changeset/base/319991
Log:
copy(9): clarify that copystr() does not return EFAULT
The previous wording implied that copystr() could return EFAULT.
MFC after: 6 weeks
Sponsored by: Dell EMC
Modified:
head/share/man/man9/copy.9
Modified: head/share/man/man9/copy.9
==============================================================================
--- head/share/man/man9/copy.9 Thu Jun 15 21:14:48 2017 (r319990)
+++ head/share/man/man9/copy.9 Thu Jun 15 21:34:43 2017 (r319991)
@@ -34,7 +34,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 9, 2011
+.Dd June 15, 2017
.Dt COPY 9
.Os
.Sh NAME
@@ -147,16 +147,20 @@ is
.Sh RETURN VALUES
The
.Nm
-functions return 0 on success or
+functions return 0 on success.
+All but
+.Fn copystr
+return
.Er EFAULT
if a bad address is encountered.
-In addition, the
+The
.Fn copyin_nofault
and
.Fn copyout_nofault
functions return
.Er EFAULT
-if a page fault occurs, and the
+if a page fault occurs.
+The
.Fn copystr
and
.Fn copyinstr
More information about the svn-src-all
mailing list