NetBSD Problem Report #49988
From www@NetBSD.org Sat Jun 20 01:20:58 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 021ADA6562
for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Jun 2015 01:20:58 +0000 (UTC)
Message-Id: <20150620012056.817CEA65C8@mollari.NetBSD.org>
Date: Sat, 20 Jun 2015 01:20:56 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: bcopy(3) mentions wrongly bcmp(3) in the manpage
X-Send-Pr-Version: www-1.0
>Number: 49988
>Category: lib
>Synopsis: bcopy(3) mentions wrongly bcmp(3) in the manpage
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 20 01:25:00 +0000 2015
>Closed-Date: Sat Jun 20 07:43:44 +0000 2015
>Last-Modified: Sat Jun 20 07:43:44 +0000 2015
>Originator: Kamil Rytarowski
>Release: -current
>Organization:
>Environment:
NetBSD compaq 7.99.18 NetBSD 7.99.18 (GENERIC) #0: Sun May 31 01:37:05 UTC 2015 root@chieftec:/tmp/netbsd-tmp/sys/arch/amd64/compile/GENERIC amd64
>Description:
The bcopy(3) manpage mentions wrongl bcmp in the STANDARDS page.
BCOPY(3) Library Functions Manual BCOPY(3)
NAME
bcopy -- copy byte string
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <strings.h>
void
bcopy(const void *src, void *dst, size_t len);
DESCRIPTION
The bcopy() function copies len bytes from string src to string dst. The
two strings may overlap. If len is zero, no bytes are copied.
This function is obsolete. The functions memcpy(3) and/or memmove(3)
should be used instead. Note that bcopy() takes its src and dst
arguments in the opposite order from these.
SEE ALSO
memccpy(3), memcpy(3), memmove(3), strcpy(3), strncpy(3)
STANDARDS
The bcmp() function conforms to IEEE Std 1003.1-2001 (``POSIX.1''). The
IEEE Std 1003.1-2004 (``POSIX.1'') revision marked it as legacy; the IEEE
Std 1003.1-2008 (``POSIX.1'') revision removed it from the specification.
HISTORY
A bcopy() function appeared in 4.2BSD.
NetBSD 7.99 May 5, 2012 NetBSD 7.99
>How-To-Repeat:
man bcopy
>Fix:
Index: lib/libc/string/bcopy.3
===================================================================
RCS file: /cvsroot/src/lib/libc/string/bcopy.3,v
retrieving revision 1.14
diff -u -r1.14 bcopy.3
--- lib/libc/string/bcopy.3 5 May 2012 21:24:19 -0000 1.14
+++ lib/libc/string/bcopy.3 20 Jun 2015 01:15:34 -0000
@@ -79,7 +79,7 @@
.Xr strncpy 3
.Sh STANDARDS
The
-.Fn bcmp
+.Fn bcopy
function conforms to
.St -p1003.1-2001 .
The
>Release-Note:
>Audit-Trail:
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/49988 CVS commit: src/lib/libc/string
Date: Sat, 20 Jun 2015 04:18:01 +0000
Module Name: src
Committed By: dholland
Date: Sat Jun 20 04:18:00 UTC 2015
Modified Files:
src/lib/libc/string: bcopy.3
Log Message:
PR 49988 Kamil Rytarowski: fix pasto
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 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.
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 20 Jun 2015 07:43:44 +0000
State-Changed-Why:
dholland fixed it, thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.