Bug 42293

Summary: copystr(9) man page incorrectly describes it as copying from kernel-space to kernel-space
Product: Documentation Reporter: Anatoly Karp <karp>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Anatoly Karp 2002-09-01 19:20:01 UTC
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

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.
How-To-Repeat: man 9 copystr
Comment 1 robert 2003-03-14 14:01:28 UTC
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
Comment 2 Hiten Pandya freebsd_committer freebsd_triage 2003-05-09 00:54:22 UTC
State Changed
From-To: open->closed

As Robert mentioned, the manual page is in agreement. 
I have checked this with it's usage in the kernel sources.