From nobody@FreeBSD.org  Sun Sep  1 11:15:14 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C795137B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Sep 2002 11:15:14 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 86AB843E3B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Sep 2002 11:15:14 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g81IFDOT014018
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 Sep 2002 11:15:13 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g81IFDlL014017;
	Sun, 1 Sep 2002 11:15:13 -0700 (PDT)
Message-Id: <200209011815.g81IFDlL014017@www.freebsd.org>
Date: Sun, 1 Sep 2002 11:15:13 -0700 (PDT)
From: Anatoly Karp <karp@internet2.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: copystr(9) man page incorrectly describes it as copying from kernel-space to kernel-space
X-Send-Pr-Version: www-1.0

>Number:         42293
>Category:       docs
>Synopsis:       copystr(9) man page incorrectly describes it as copying from kernel-space to kernel-space
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 01 11:20:01 PDT 2002
>Closed-Date:    Thu May 08 16:56:27 PDT 2003
>Last-Modified:  Thu May 08 16:56:27 PDT 2003
>Originator:     Anatoly Karp
>Release:        4.6-STABLE
>Organization:
Internet2
>Environment:
FreeBSD nsk.internet2.edu 4.6-STABLE FreeBSD 4.6-STABLE #1: Sun Jul 14 13:24:51 EDT 2002     root@nsk.internet2.edu:/usr/obj/usr/src/sys/NSK4  i386
>Description:
man 9 copystr says:

copystr()     Copies a NUL-terminated string, at most len bytes long,
                   from kernel-space address kfaddr to kernel-space address
                   kdaddr.

I believe this is incorrect since the destination address is in user
space
>How-To-Repeat:
man 9 copystr
>Fix:
     Replace the mentioned piece with:

 copystr()     Copies a NUL-terminated string, at most len bytes long,
                   from kernel-space address kfaddr to user-space address
                   kdaddr.
>Release-Note:
>Audit-Trail:

From: Robert Drehmel <robert@zoot.drehmel.com>
To: freebsd-gnats-submit@FreeBSD.org, karp@internet2.edu
Cc:  
Subject: Re: docs/42293: copystr(9) man page incorrectly describes it as...
Date: Fri, 14 Mar 2003 15:01:28 +0100

 Hello.
 
 The manual page is correct and in agreement with how the
 function is implemented and used: copying of a NUL-terminated
 string in kernel space.
 
 ciao,
 -robert
State-Changed-From-To: open->closed 
State-Changed-By: hmp 
State-Changed-When: Thu May 8 16:54:22 PDT 2003 
State-Changed-Why:  
As Robert mentioned, the manual page is in agreement. 
I have checked this with it's usage in the kernel sources. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42293 
>Unformatted:
