Fix small errors in the sbuf(9) man page.

This commit is contained in:
mdf 2010-09-09 16:27:02 +00:00
parent a03821b388
commit 667f651319

View File

@ -98,7 +98,7 @@
The The
.Nm .Nm
family of functions allows one to safely allocate, construct and family of functions allows one to safely allocate, construct and
release bounded null-terminated strings in kernel space. release bounded NUL-terminated strings in kernel space.
Instead of arrays of characters, these functions operate on structures Instead of arrays of characters, these functions operate on structures
called called
.Fa sbufs , .Fa sbufs ,
@ -289,7 +289,7 @@ overflowed.
.Pp .Pp
The The
.Fn sbuf_finish .Fn sbuf_finish
function null-terminates the function NUL-terminates the
.Fa sbuf .Fa sbuf
and marks it as finished, which means that it may no longer be and marks it as finished, which means that it may no longer be
modified using modified using
@ -298,7 +298,10 @@ modified using
.Fn sbuf_cpy , .Fn sbuf_cpy ,
.Fn sbuf_printf .Fn sbuf_printf
or or
.Fn sbuf_putc . .Fn sbuf_putc ,
until
.Fn sbuf_clear
is used to reset the sbuf.
.Pp .Pp
The The
.Fn sbuf_data .Fn sbuf_data
@ -309,7 +312,9 @@ functions return the actual string and its length, respectively;
only works on a finished only works on a finished
.Fa sbuf . .Fa sbuf .
.Fn sbuf_done .Fn sbuf_done
returns non-zero if the sbuf is finished. returns non-zero if the
.Fa sbuf
is finished.
.Sh NOTES .Sh NOTES
If an operation caused an If an operation caused an
.Fa sbuf .Fa sbuf