summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-04 09:58:17 +0000
committerphk <phk@FreeBSD.org>2002-10-04 09:58:17 +0000
commitae4fc4e63ee57d562ca2d8a1983a0ca4720ab436 (patch)
tree769a78b7fdf83c2fefa71b0a4bfd162f398a203c /share
parent3bf276fb33027a974490c4c9f1a20b2a406efc3a (diff)
downloadFreeBSD-src-ae4fc4e63ee57d562ca2d8a1983a0ca4720ab436.zip
FreeBSD-src-ae4fc4e63ee57d562ca2d8a1983a0ca4720ab436.tar.gz
Add the new function "sbuf_done()" which returns non-zero if the sbuf is
finished. This allows sbufs to be used for request/response scenarioes without needing additional communication flags. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/sbuf.95
1 files changed, 5 insertions, 0 deletions
diff --git a/share/man/man9/sbuf.9 b/share/man/man9/sbuf.9
index 8e40f26..1aa5324 100644
--- a/share/man/man9/sbuf.9
+++ b/share/man/man9/sbuf.9
@@ -46,6 +46,7 @@
.Nm sbuf_finish ,
.Nm sbuf_data ,
.Nm sbuf_len ,
+.Nm sbuf_done ,
.Nm sbuf_delete
.Nd safe string formatting
.Sh SYNOPSIS
@@ -85,6 +86,8 @@
.Fn sbuf_data "struct sbuf *s"
.Ft int
.Fn sbuf_len "struct sbuf *s"
+.Ft int
+.Fn sbuf_done "struct sbuf *s"
.Ft void
.Fn sbuf_delete "struct sbuf *s"
.Sh DESCRIPTION
@@ -279,6 +282,8 @@ functions return the actual string and its length, respectively;
.Fn sbuf_data
only works on a finished
.Fa sbuf .
+.Fn sbuf_done
+returns non-zero if the sbuf is finished.
.Pp
Finally, the
.Fn sbuf_delete
OpenPOWER on IntegriCloud