Note that we can pass NULL as 4th argument for copystr() and copyinstr()

functions.

With little mdoc(7) help from:	hmp
This commit is contained in:
Pawel Jakub Dawidek 2004-03-29 19:23:45 +00:00
parent 7a5fa7f1e7
commit 449dfbbc83
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127581

View file

@ -93,7 +93,11 @@ to kernel-space address
.Pa kdaddr .
The number of bytes actually copied, including the terminating
NUL, is returned in
.Pa *done .
.Pa *done
(if
.Pa done
is
.No non- Ns Dv NULL Ns ).
.It Fn copyinstr
Copies a NUL-terminated string, at most
.Pa len
@ -103,7 +107,11 @@ to kernel-space address
.Pa kaddr .
The number of bytes actually copied, including the terminating
NUL, is returned in
.Pa *done .
.Pa *done
(if
.Pa done
is
.No non- Ns Dv NULL Ns ).
.\" .It Fn copyoutstr
.\" Copies a NUL-terminated string, at most
.\" bytes long, from kernel-space address