diff options
Diffstat (limited to 'src/lib/libc/string/wmemcpy.3')
| -rw-r--r-- | src/lib/libc/string/wmemcpy.3 | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/lib/libc/string/wmemcpy.3 b/src/lib/libc/string/wmemcpy.3 index 9147bb7964..1102640ad4 100644 --- a/src/lib/libc/string/wmemcpy.3 +++ b/src/lib/libc/string/wmemcpy.3 | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | .\" $OpenBSD: wmemcpy.3,v 1.3 2011/07/25 00:38:53 schwarze Exp $ | ||
| 2 | .\" | ||
| 1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. |
| 2 | .\" All rights reserved. | 4 | .\" All rights reserved. |
| 3 | .\" | 5 | .\" |
| @@ -29,9 +31,7 @@ | |||
| 29 | .\" 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 |
| 30 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. |
| 31 | .\" | 33 | .\" |
| 32 | .\" $OpenBSD: wmemcpy.3,v 1.2 2011/07/09 16:46:58 nicm Exp $ | 34 | .Dd $Mdocdate: July 25 2011 $ |
| 33 | .\" | ||
| 34 | .Dd $Mdocdate: July 9 2011 $ | ||
| 35 | .Dt WMEMCPY 3 | 35 | .Dt WMEMCPY 3 |
| 36 | .Os | 36 | .Os |
| 37 | .Sh NAME | 37 | .Sh NAME |
| @@ -56,6 +56,7 @@ The | |||
| 56 | function returns the original value of | 56 | function returns the original value of |
| 57 | .Fa dst . | 57 | .Fa dst . |
| 58 | .Sh SEE ALSO | 58 | .Sh SEE ALSO |
| 59 | .Xr memcpy 3 , | ||
| 59 | .Xr wcscpy 3 , | 60 | .Xr wcscpy 3 , |
| 60 | .Xr wcslcpy 3 , | 61 | .Xr wcslcpy 3 , |
| 61 | .Xr wmemmove 3 | 62 | .Xr wmemmove 3 |
| @@ -66,12 +67,19 @@ function conforms to | |||
| 66 | .St -isoC-99 | 67 | .St -isoC-99 |
| 67 | and was first introduced in | 68 | and was first introduced in |
| 68 | .St -isoC-amd1 . | 69 | .St -isoC-amd1 . |
| 69 | .Sh BUGS | 70 | .Sh HISTORY |
| 71 | The | ||
| 72 | .Fn wmemcpy | ||
| 73 | function was ported from | ||
| 74 | .Nx | ||
| 75 | and first appeared in | ||
| 76 | .Ox 3.8 . | ||
| 77 | .Sh CAVEATS | ||
| 70 | In this implementation | 78 | In this implementation |
| 71 | .Fn wmemcpy | 79 | .Fn wmemcpy |
| 72 | is implemented using | 80 | is implemented using |
| 73 | .Xr bcopy 3 , | 81 | .Xr bcopy 3 , |
| 74 | and therefore the buffers may overlap. | 82 | and therefore the buffers may overlap. |
| 75 | On other systems, copying overlapping buffers may produce surprises. | 83 | On other systems, copying overlapping buffers may produce surprises. |
| 76 | A simpler solution is to not use | 84 | A portable, safe solution is to use |
| 77 | .Fn wmemcpy . | 85 | .Xr wmemmove 3 . |
