aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-08-26 17:06:16 +0000
committerWarner Losh <imp@FreeBSD.org>2020-08-26 17:06:16 +0000
commit513575d446ecb488e677538312ac8cf8e2893a5a (patch)
tree1d14781861a619cf6a29ee0c8c52bf3fc67f16e7
parent3971092e119dd117e9e40f6b5955f54a2762dcf3 (diff)
downloadsrc-513575d446ecb488e677538312ac8cf8e2893a5a.tar.gz
src-513575d446ecb488e677538312ac8cf8e2893a5a.zip
Make sbuf_setpos match the implementation.
sbuf_setpos can only be used to truncate the buffer, never to make it longer. Update the documentation to reflect this. Reviewed By: allanjude, phk Differential Revision: https://reviews.freebsd.org/D26198
Notes
Notes: svn path=/head/; revision=364824
-rw-r--r--share/man/man9/sbuf.97
1 files changed, 3 insertions, 4 deletions
diff --git a/share/man/man9/sbuf.9 b/share/man/man9/sbuf.9
index 8f266890c902..071e6f11e02e 100644
--- a/share/man/man9/sbuf.9
+++ b/share/man/man9/sbuf.9
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 7, 2019
+.Dd August 26, 2020
.Dt SBUF 9
.Os
.Sh NAME
@@ -370,9 +370,8 @@ function sets the
.Fa sbuf Ns 's
end position to
.Fa pos ,
-which is a value between zero and one less than the size of the
-storage buffer.
-This effectively truncates the sbuf at the new position.
+which is a value between zero and the current position in the buffer.
+It can only truncate the sbuf to the new position.
.Pp
The
.Fn sbuf_bcat