Loading...
string/FreeBSD/memcpy.3.patch Libc-320 Libc-763.13
--- Libc/Libc-320/string/FreeBSD/memcpy.3.patch
+++ Libc/Libc-763.13/string/FreeBSD/memcpy.3.patch
@@ -1,25 +1,60 @@
---- memcpy.3.orig	Tue May 20 15:23:54 2003
-+++ memcpy.3	Sat Jun 21 06:17:05 2003
-@@ -58,6 +58,18 @@
- .Fa src
- to string
- .Fa dst .
+--- memcpy.3.bsdnew	2009-11-18 18:24:32.000000000 -0800
++++ memcpy.3	2009-11-18 18:24:32.000000000 -0800
+@@ -37,29 +37,45 @@
+ .Os
+ .Sh NAME
+ .Nm memcpy
+-.Nd copy byte string
++.Nd copy memory area
+ .Sh LIBRARY
+ .Lb libc
+ .Sh SYNOPSIS
+ .In string.h
+ .Ft void *
+-.Fn memcpy "void *dst" "const void *src" "size_t len"
++.Fo memcpy
++.Fa "void *restrict s1"
++.Fa "const void *restrict s2"
++.Fa "size_t n"
++.Fc
+ .Sh DESCRIPTION
+ The
+ .Fn memcpy
+ function
+ copies
+-.Fa len
+-bytes from string
+-.Fa src
+-to string
+-.Fa dst .
++.Fa n
++bytes from memory area
++.Fa s2
++to memory area
++.Fa s1 .
 +If 
-+.Fa src
++.Fa s1
 +and 
-+.Fa dst
-+overlap, behaviour is undefined.
++.Fa s2
++overlap, behavior is undefined.
 +Applications in which
-+.Fa src
++.Fa s1
 +and 
-+.Fa dst 
++.Fa s2 
 +might overlap should use
 +.Xr memmove 3
 +instead.
  .Sh RETURN VALUES
  The
  .Fn memcpy
-@@ -75,17 +87,3 @@
+ function
+ returns the original value of
+-.Fa dst .
++.Fa s1 .
+ .Sh SEE ALSO
+ .Xr bcopy 3 ,
+ .Xr memccpy 3 ,
+@@ -72,17 +88,3 @@ The
  function
  conforms to
  .St -isoC .