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:
parent
7a5fa7f1e7
commit
449dfbbc83
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user