Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jun 2017 21:34:43 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319991 - head/share/man/man9
Message-ID:  <201706152134.v5FLYhAY083086@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706152134.v5FLYhAY083086>