Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/string Mark these obsolete as well.
details: https://anonhg.NetBSD.org/src/rev/f25ffa4e5814
branches: trunk
changeset: 779138:f25ffa4e5814
user: dholland <dholland%NetBSD.org@localhost>
date: Sat May 05 21:24:19 2012 +0000
description:
Mark these obsolete as well.
diffstat:
lib/libc/string/bcmp.3 | 9 +++++++--
lib/libc/string/bcopy.3 | 18 ++++++++++++++++--
2 files changed, 23 insertions(+), 4 deletions(-)
diffs (63 lines):
diff -r 99c96f0dcccb -r f25ffa4e5814 lib/libc/string/bcmp.3
--- a/lib/libc/string/bcmp.3 Sat May 05 21:18:43 2012 +0000
+++ b/lib/libc/string/bcmp.3 Sat May 05 21:24:19 2012 +0000
@@ -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 @@
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 ,
diff -r 99c96f0dcccb -r f25ffa4e5814 lib/libc/string/bcopy.3
--- a/lib/libc/string/bcopy.3 Sat May 05 21:18:43 2012 +0000
+++ b/lib/libc/string/bcopy.3 Sat May 05 21:24:19 2012 +0000
@@ -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 @@
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 ,
Home |
Main Index |
Thread Index |
Old Index