Date: Wed, 9 Sep 2020 23:01:55 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r365541 - stable/12/share/man/man9 Message-ID: <202009092301.089N1tMi042352@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Wed Sep 9 23:01:55 2020 New Revision: 365541 URL: https://svnweb.freebsd.org/changeset/base/365541 Log: MFC r364824: r364824 | imp | 2020-08-26 11:06:16 -0600 (Wed, 26 Aug 2020) | 8 lines 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 Modified: stable/12/share/man/man9/sbuf.9 Directory Properties: stable/12/ (props changed) Modified: stable/12/share/man/man9/sbuf.9 ============================================================================== --- stable/12/share/man/man9/sbuf.9 Wed Sep 9 22:59:47 2020 (r365540) +++ stable/12/share/man/man9/sbuf.9 Wed Sep 9 23:01:55 2020 (r365541) @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 23, 2018 +.Dd August 26, 2020 .Dt SBUF 9 .Os .Sh NAME @@ -348,9 +348,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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009092301.089N1tMi042352>