Module Name: src
Committed By: dholland
Date: Sat May 5 21:24:19 UTC 2012
Modified Files:
src/lib/libc/string: bcmp.3 bcopy.3
Log Message:
Mark these obsolete as well.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/string/bcmp.3 \
src/lib/libc/string/bcopy.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/string/bcmp.3
diff -u src/lib/libc/string/bcmp.3:1.13 src/lib/libc/string/bcmp.3:1.14
--- src/lib/libc/string/bcmp.3:1.13 Thu Apr 29 06:54:26 2010
+++ src/lib/libc/string/bcmp.3 Sat May 5 21:24:19 2012
@@ -28,9 +28,9 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)bcmp.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: bcmp.3,v 1.13 2010/04/29 06:54:26 jruoho Exp $
+.\" $NetBSD: bcmp.3,v 1.14 2012/05/05 21:24:19 dholland Exp $
.\"
-.Dd April 29, 2010
+.Dd May 5, 2012
.Dt BCMP 3
.Os
.Sh NAME
@@ -57,6 +57,11 @@ bytes long.
Zero-length strings are always identical.
.Pp
The strings may overlap.
+.Pp
+This function is obsolete.
+The equivalent function
+.Xr memcmp 3
+should be used instead.
.Sh SEE ALSO
.Xr memcmp 3 ,
.Xr strcasecmp 3 ,
Index: src/lib/libc/string/bcopy.3
diff -u src/lib/libc/string/bcopy.3:1.13 src/lib/libc/string/bcopy.3:1.14
--- src/lib/libc/string/bcopy.3:1.13 Thu Apr 29 07:27:30 2010
+++ src/lib/libc/string/bcopy.3 Sat May 5 21:24:19 2012
@@ -29,9 +29,9 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)bcopy.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: bcopy.3,v 1.13 2010/04/29 07:27:30 wiz Exp $
+.\" $NetBSD: bcopy.3,v 1.14 2012/05/05 21:24:19 dholland Exp $
.\"
-.Dd April 29, 2010
+.Dd May 5, 2012
.Dt BCOPY 3
.Os
.Sh NAME
@@ -57,6 +57,20 @@ The two strings may overlap.
If
.Fa len
is zero, no bytes are copied.
+.Pp
+This function is obsolete.
+The functions
+.Xr memcpy 3
+and/or
+.Xr memmove 3
+should be used instead.
+Note that
+.Fn bcopy
+takes its
+.Fa src
+and
+.Fa dst
+arguments in the opposite order from these.
.Sh SEE ALSO
.Xr memccpy 3 ,
.Xr memcpy 3 ,