aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/sbuf.9
diff options
context:
space:
mode:
Diffstat (limited to 'share/man/man9/sbuf.9')
-rw-r--r--share/man/man9/sbuf.914
1 files changed, 13 insertions, 1 deletions
diff --git a/share/man/man9/sbuf.9 b/share/man/man9/sbuf.9
index 2c1601285944..1db303908a01 100644
--- a/share/man/man9/sbuf.9
+++ b/share/man/man9/sbuf.9
@@ -44,6 +44,7 @@
.Nm sbuf_cat ,
.Nm sbuf_copyin ,
.Nm sbuf_cpy ,
+.Nm sbuf_nl_terminate ,
.Nm sbuf_printf ,
.Nm sbuf_vprintf ,
.Nm sbuf_putc ,
@@ -123,6 +124,8 @@
.Fa "const char *str"
.Fc
.Ft int
+.Fn sbuf_nl_terminate "struct sbuf *"
+.Ft int
.Fo sbuf_printf
.Fa "struct sbuf *s"
.Fa "const char *fmt" "..."
@@ -440,10 +443,14 @@ To do unbuffered draining, initialize the sbuf with a two-byte buffer.
The drain will be called for every byte added to the sbuf.
The
.Fn sbuf_bcopyin ,
+.Fn sbuf_bcpy ,
+.Fn sbuf_clear ,
.Fn sbuf_copyin ,
+.Fn sbuf_cpy ,
.Fn sbuf_trim ,
+.Fn sbuf_data ,
and
-.Fn sbuf_data
+.Fn sbuf_len
functions cannot be used on an sbuf with a drain.
.Pp
The
@@ -476,6 +483,11 @@ or
.Fn sbuf_setpos .
.Pp
The
+.Fn sbuf_nl_terminate
+function appends a trailing newline character, if the current line is non-empty
+and not already terminated by a newline character.
+.Pp
+The
.Fn sbuf_printf
function formats its arguments according to the format string pointed
to by