diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/string/memcpy.3 | 16 | 
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/libc/string/memcpy.3 b/src/lib/libc/string/memcpy.3 index e95d670ad9..51c458ee3e 100644 --- a/src/lib/libc/string/memcpy.3 +++ b/src/lib/libc/string/memcpy.3  | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: memcpy.3,v 1.8 2011/07/25 00:38:52 schwarze Exp $ | 1 | .\" $OpenBSD: memcpy.3,v 1.9 2013/06/04 03:02:09 deraadt Exp $ | 
| 2 | .\" | 2 | .\" | 
| 3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 
| 4 | .\" All rights reserved. | 4 | .\" All rights reserved. | 
| @@ -31,7 +31,7 @@ | |||
| 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 
| 32 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. | 
| 33 | .\" | 33 | .\" | 
| 34 | .Dd $Mdocdate: July 25 2011 $ | 34 | .Dd $Mdocdate: June 4 2013 $ | 
| 35 | .Dt MEMCPY 3 | 35 | .Dt MEMCPY 3 | 
| 36 | .Os | 36 | .Os | 
| 37 | .Sh NAME | 37 | .Sh NAME | 
| @@ -50,6 +50,9 @@ bytes from buffer | |||
| 50 | .Fa src | 50 | .Fa src | 
| 51 | to buffer | 51 | to buffer | 
| 52 | .Fa dst . | 52 | .Fa dst . | 
| 53 | If the two buffers may overlap, | ||
| 54 | .Xr memmove 3 | ||
| 55 | must be used instead. | ||
| 53 | .Sh RETURN VALUES | 56 | .Sh RETURN VALUES | 
| 54 | The | 57 | The | 
| 55 | .Fn memcpy | 58 | .Fn memcpy | 
| @@ -74,12 +77,3 @@ function first appeared in | |||
| 74 | .At V | 77 | .At V | 
| 75 | and was reimplemented for | 78 | and was reimplemented for | 
| 76 | .Bx 4.3 Tahoe . | 79 | .Bx 4.3 Tahoe . | 
| 77 | .Sh CAVEATS | ||
| 78 | In this implementation | ||
| 79 | .Fn memcpy | ||
| 80 | is implemented using | ||
| 81 | .Xr bcopy 3 , | ||
| 82 | and therefore the buffers may overlap. | ||
| 83 | On other systems, copying overlapping buffers may produce surprises. | ||
| 84 | A portable, safe solution is to use | ||
| 85 | .Xr memmove 3 . | ||
