1863edaecSDag-Erling Smørgrav.\"- 2863edaecSDag-Erling Smørgrav.\" Copyright (c) 2000 Poul Henning Kamp and Dag-Erling Co�dan Sm�rgrav 3863edaecSDag-Erling Smørgrav.\" All rights reserved. 4863edaecSDag-Erling Smørgrav.\" 5863edaecSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without 6863edaecSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions 7863edaecSDag-Erling Smørgrav.\" are met: 8863edaecSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright 9863edaecSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer. 10863edaecSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright 11863edaecSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer in the 12863edaecSDag-Erling Smørgrav.\" documentation and/or other materials provided with the distribution. 13863edaecSDag-Erling Smørgrav.\" 14863edaecSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15863edaecSDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16863edaecSDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17863edaecSDag-Erling Smørgrav.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18863edaecSDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19863edaecSDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20863edaecSDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21863edaecSDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22863edaecSDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23863edaecSDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24863edaecSDag-Erling Smørgrav.\" SUCH DAMAGE. 25863edaecSDag-Erling Smørgrav.\" 26863edaecSDag-Erling Smørgrav.\" $FreeBSD$ 27863edaecSDag-Erling Smørgrav.\" 28371c0c84SKelly Yancey.Dd January 3, 2002 295f95f24bSRuslan Ermilov.Dt SBUF 9 303d45e180SRuslan Ermilov.Os 31863edaecSDag-Erling Smørgrav.Sh NAME 32863edaecSDag-Erling Smørgrav.Nm sbuf_new , 33e499b74dSDag-Erling Smørgrav.Nm sbuf_clear , 34863edaecSDag-Erling Smørgrav.Nm sbuf_setpos , 35b0def2b5SDag-Erling Smørgrav.Nm sbuf_bcat , 36b0def2b5SDag-Erling Smørgrav.Nm sbuf_bcopyin , 37b0def2b5SDag-Erling Smørgrav.Nm sbuf_bcpy , 38863edaecSDag-Erling Smørgrav.Nm sbuf_cat , 39b0def2b5SDag-Erling Smørgrav.Nm sbuf_copyin , 40863edaecSDag-Erling Smørgrav.Nm sbuf_cpy , 41863edaecSDag-Erling Smørgrav.Nm sbuf_printf , 42371c0c84SKelly Yancey.Nm sbuf_vprintf , 43863edaecSDag-Erling Smørgrav.Nm sbuf_putc , 44371c0c84SKelly Yancey.Nm sbuf_trim , 45e499b74dSDag-Erling Smørgrav.Nm sbuf_overflowed , 46863edaecSDag-Erling Smørgrav.Nm sbuf_finish , 47863edaecSDag-Erling Smørgrav.Nm sbuf_data , 48863edaecSDag-Erling Smørgrav.Nm sbuf_len , 49863edaecSDag-Erling Smørgrav.Nm sbuf_delete 50863edaecSDag-Erling Smørgrav.Nd safe string formatting 51863edaecSDag-Erling Smørgrav.Sh SYNOPSIS 5232eef9aeSRuslan Ermilov.In sys/types.h 5332eef9aeSRuslan Ermilov.In sys/sbuf.h 548a5bc771SBruce Evans.Ft struct sbuf * 55e499b74dSDag-Erling Smørgrav.Fn sbuf_new "struct sbuf *s" "char *buf" "int length" "int flags" 56e499b74dSDag-Erling Smørgrav.Ft void 57e499b74dSDag-Erling Smørgrav.Fn sbuf_clear "struct sbuf *s" 58863edaecSDag-Erling Smørgrav.Ft int 59e499b74dSDag-Erling Smørgrav.Fn sbuf_setpos "struct sbuf *s" "int pos" 60863edaecSDag-Erling Smørgrav.Ft int 61b0def2b5SDag-Erling Smørgrav.Fn sbuf_bcat "struct sbuf *s" "const char *str" "size_t len" 62b0def2b5SDag-Erling Smørgrav.Ft int 63b0def2b5SDag-Erling Smørgrav.Fn sbuf_bcopyin "struct sbuf *s" "const void *uaddr" "size_t len" 64b0def2b5SDag-Erling Smørgrav.Ft int 65b0def2b5SDag-Erling Smørgrav.Fn sbuf_bcpy "struct sbuf *s" "const char *str" "size_t len" 66b0def2b5SDag-Erling Smørgrav.Ft int 673393f8daSKenneth D. Merry.Fn sbuf_cat "struct sbuf *s" "const char *str" 68863edaecSDag-Erling Smørgrav.Ft int 69b0def2b5SDag-Erling Smørgrav.Fn sbuf_copyin "struct sbuf *s" "const void *uaddr" "size_t len" 70b0def2b5SDag-Erling Smørgrav.Ft int 713393f8daSKenneth D. Merry.Fn sbuf_cpy "struct sbuf *s" "const char *str" 72863edaecSDag-Erling Smørgrav.Ft int 738cce2ebaSDag-Erling Smørgrav.Fn sbuf_printf "struct sbuf *s" "const char *fmt" "..." 74863edaecSDag-Erling Smørgrav.Ft int 75371c0c84SKelly Yancey.Fn sbuf_vprintf "struct sbuf *s" "const char *fmt" "va_list ap" 76371c0c84SKelly Yancey.Ft int 77863edaecSDag-Erling Smørgrav.Fn sbuf_putc "struct sbuf *s" "int c" 78863edaecSDag-Erling Smørgrav.Ft int 79371c0c84SKelly Yancey.Fn sbuf_trim "struct sbuf *s" 80371c0c84SKelly Yancey.Ft int 81e499b74dSDag-Erling Smørgrav.Fn sbuf_overflowed "struct sbuf *s" 82e499b74dSDag-Erling Smørgrav.Ft void 83863edaecSDag-Erling Smørgrav.Fn sbuf_finish "struct sbuf *s" 84863edaecSDag-Erling Smørgrav.Ft char * 85863edaecSDag-Erling Smørgrav.Fn sbuf_data "struct sbuf *s" 86e499b74dSDag-Erling Smørgrav.Ft int 87863edaecSDag-Erling Smørgrav.Fn sbuf_len "struct sbuf *s" 88863edaecSDag-Erling Smørgrav.Ft void 89863edaecSDag-Erling Smørgrav.Fn sbuf_delete "struct sbuf *s" 90863edaecSDag-Erling Smørgrav.Sh DESCRIPTION 91863edaecSDag-Erling SmørgravThe 92863edaecSDag-Erling Smørgrav.Nm sbuf 9367e35919SSheldon Hearnfamily of functions allows one to safely allocate, construct and 94863edaecSDag-Erling Smørgravrelease bounded null-terminated strings in kernel space. 95863edaecSDag-Erling SmørgravInstead of arrays of characters, these functions operate on structures 96863edaecSDag-Erling Smørgravcalled 97863edaecSDag-Erling Smørgrav.Fa sbufs , 98863edaecSDag-Erling Smørgravdefined in 99863edaecSDag-Erling Smørgrav.Aq Pa sys/sbuf.h . 100863edaecSDag-Erling Smørgrav.Pp 101863edaecSDag-Erling SmørgravThe 102863edaecSDag-Erling Smørgrav.Fn sbuf_new 103863edaecSDag-Erling Smørgravfunction initializes the 104863edaecSDag-Erling Smørgrav.Fa sbuf 105863edaecSDag-Erling Smørgravpointed to by its first argument. 106d6479358SDag-Erling SmørgravIf that pointer is 107d6479358SDag-Erling Smørgrav.Dv NULL , 108d6479358SDag-Erling Smørgrav.Fn sbuf_new 109d6479358SDag-Erling Smørgravallocates a 110d68b700aSRuslan Ermilov.Vt struct sbuf 111d6479358SDag-Erling Smørgravusing 112d6479358SDag-Erling Smørgrav.Xr malloc 9 . 113863edaecSDag-Erling SmørgravThe 114863edaecSDag-Erling Smørgrav.Fa buf 115863edaecSDag-Erling Smørgravargument is a pointer to a buffer in which to store the actual string; 116863edaecSDag-Erling Smørgravif it is 117863edaecSDag-Erling Smørgrav.Dv NULL , 118863edaecSDag-Erling Smørgrav.Fn sbuf_new 119863edaecSDag-Erling Smørgravwill allocate one using 120863edaecSDag-Erling Smørgrav.Xr malloc 9 . 121863edaecSDag-Erling SmørgravThe 122863edaecSDag-Erling Smørgrav.Fa length 123371c0c84SKelly Yanceyis the initial size of the storage buffer. 124863edaecSDag-Erling SmørgravThe fourth argument, 125863edaecSDag-Erling Smørgrav.Fa flags , 126371c0c84SKelly Yanceymay be comprised of the following flags: 1273b0536faSRuslan Ermilov.Bl -tag -width ".Dv SBUF_AUTOEXTEND" 128371c0c84SKelly Yancey.It Dv SBUF_FIXEDLEN 1293b0536faSRuslan ErmilovThe storage buffer is fixed at its initial size. 130371c0c84SKelly YanceyAttempting to extend the sbuf beyond this size results in an overflow condition. 131371c0c84SKelly Yancey.It Dv SBUF_AUTOEXTEND 132371c0c84SKelly YanceyThis indicates that the storage buffer may be extended as necessary, so long 133371c0c84SKelly Yanceyas resources allow, to hold additional data. 134371c0c84SKelly Yancey.El 135863edaecSDag-Erling Smørgrav.Pp 136863edaecSDag-Erling SmørgravNote that if 137863edaecSDag-Erling Smørgrav.Fa buf 138863edaecSDag-Erling Smørgravis not 139863edaecSDag-Erling Smørgrav.Dv NULL , 140863edaecSDag-Erling Smørgravit must point to an array of at least 141863edaecSDag-Erling Smørgrav.Fa length 142863edaecSDag-Erling Smørgravcharacters. 143371c0c84SKelly YanceyThe contents of the provided buffer are undefined; to retrieve the sbuf data 144371c0c84SKelly Yancey.Fn sbuf_data 145371c0c84SKelly Yanceymust be called on the finished 146371c0c84SKelly Yancey.Fa sbuf . 147863edaecSDag-Erling Smørgrav.Pp 148863edaecSDag-Erling SmørgravThe 149e499b74dSDag-Erling Smørgrav.Fn sbuf_clear 150e499b74dSDag-Erling Smørgravfunction invalidates the contents of the 151e499b74dSDag-Erling Smørgrav.Fa sbuf 152e499b74dSDag-Erling Smørgravand resets its position to zero. 153e499b74dSDag-Erling Smørgrav.Pp 154e499b74dSDag-Erling SmørgravThe 155863edaecSDag-Erling Smørgrav.Fn sbuf_setpos 156863edaecSDag-Erling Smørgravfunction sets the 157863edaecSDag-Erling Smørgrav.Fa sbuf Ns 's 158371c0c84SKelly Yanceyend position to 159863edaecSDag-Erling Smørgrav.Fa pos , 160863edaecSDag-Erling Smørgravwhich is a value between zero and one less than the size of the 161863edaecSDag-Erling Smørgravstorage buffer. 162371c0c84SKelly YanceyThis effectively truncates the sbuf at the new position. 163863edaecSDag-Erling Smørgrav.Pp 164863edaecSDag-Erling SmørgravThe 165b0def2b5SDag-Erling Smørgrav.Fn sbuf_bcat 166b0def2b5SDag-Erling Smørgravfunction appends the first 167b0def2b5SDag-Erling Smørgrav.Fa len 168b0def2b5SDag-Erling Smørgravbytes from the byte string 169b0def2b5SDag-Erling Smørgrav.Fa str 170b0def2b5SDag-Erling Smørgravto the 171b0def2b5SDag-Erling Smørgrav.Fa sbuf . 172b0def2b5SDag-Erling Smørgrav.Pp 173b0def2b5SDag-Erling SmørgravThe 174b0def2b5SDag-Erling Smørgrav.Fn sbuf_bcopyin 175b0def2b5SDag-Erling Smørgravfunction copies 176b0def2b5SDag-Erling Smørgrav.Fa len 177b0def2b5SDag-Erling Smørgravbytes from the specified userland address into the 178b0def2b5SDag-Erling Smørgrav.Fa sbuf . 179b0def2b5SDag-Erling Smørgrav.Pp 180b0def2b5SDag-Erling SmørgravThe 181b0def2b5SDag-Erling Smørgrav.Fn sbuf_bcpy 182b0def2b5SDag-Erling Smørgravfunction replaces the contents of the 183b0def2b5SDag-Erling Smørgrav.Fa sbuf 184b0def2b5SDag-Erling Smørgravwith the first 185b0def2b5SDag-Erling Smørgrav.Fa len 186b0def2b5SDag-Erling Smørgravbytes from the byte string 187b0def2b5SDag-Erling Smørgrav.Fa str . 188b0def2b5SDag-Erling Smørgrav.Pp 189b0def2b5SDag-Erling SmørgravThe 190863edaecSDag-Erling Smørgrav.Fn sbuf_cat 191b0def2b5SDag-Erling Smørgravfunction appends the NUL-terminated string 192863edaecSDag-Erling Smørgrav.Fa str 193863edaecSDag-Erling Smørgravto the 194863edaecSDag-Erling Smørgrav.Fa sbuf 195863edaecSDag-Erling Smørgravat the current position. 196863edaecSDag-Erling Smørgrav.Pp 197863edaecSDag-Erling SmørgravThe 198b0def2b5SDag-Erling Smørgrav.Fn sbuf_copyin 199b0def2b5SDag-Erling Smørgravfunction copies a NUL-terminated string from the specified userland 200b0def2b5SDag-Erling Smørgravaddress into the 201b0def2b5SDag-Erling Smørgrav.Fa sbuf . 202b0def2b5SDag-Erling SmørgravIf the 203b0def2b5SDag-Erling Smørgrav.Fa len 204b0def2b5SDag-Erling Smørgravargument is non-zero, no more than 205b0def2b5SDag-Erling Smørgrav.Fa len 206b0def2b5SDag-Erling Smørgravcharacters (not counting the terminating NUL) are copied; otherwise 207b0def2b5SDag-Erling Smørgravthe entire string, or as much of it as can fit in the 208b0def2b5SDag-Erling Smørgrav.Fa sbuf , 209b0def2b5SDag-Erling Smørgravis copied. 210b0def2b5SDag-Erling Smørgrav.Pp 211b0def2b5SDag-Erling SmørgravThe 212863edaecSDag-Erling Smørgrav.Fn sbuf_cpy 213863edaecSDag-Erling Smørgravfunction replaces the contents of the 214863edaecSDag-Erling Smørgrav.Fa sbuf 215b0def2b5SDag-Erling Smørgravwith those of the NUL-terminated string 216863edaecSDag-Erling Smørgrav.Fa str . 217863edaecSDag-Erling SmørgravThis is equivalent to calling 218863edaecSDag-Erling Smørgrav.Fn sbuf_cat 219863edaecSDag-Erling Smørgravwith a fresh 220863edaecSDag-Erling Smørgrav.Fa sbuf 221863edaecSDag-Erling Smørgravor one which position has been reset to zero with 222e499b74dSDag-Erling Smørgrav.Fn sbuf_clear 223e499b74dSDag-Erling Smørgravor 224863edaecSDag-Erling Smørgrav.Fn sbuf_setpos . 225863edaecSDag-Erling Smørgrav.Pp 226863edaecSDag-Erling SmørgravThe 227863edaecSDag-Erling Smørgrav.Fn sbuf_printf 228863edaecSDag-Erling Smørgravfunction formats its arguments according to the format string pointed 229863edaecSDag-Erling Smørgravto by 230863edaecSDag-Erling Smørgrav.Fa fmt 231863edaecSDag-Erling Smørgravand appends the resulting string to the 232863edaecSDag-Erling Smørgrav.Fa sbuf 233863edaecSDag-Erling Smørgravat the current position. 234863edaecSDag-Erling Smørgrav.Pp 235863edaecSDag-Erling SmørgravThe 236371c0c84SKelly Yancey.Fn sbuf_vprintf 237371c0c84SKelly Yanceyfunction behaves the same as 238371c0c84SKelly Yancey.Fn sbuf_printf 239371c0c84SKelly Yanceyexcept that the arguments are obtained from the variable-length argument list 240371c0c84SKelly Yancey.Fa ap . 241371c0c84SKelly Yancey.Pp 242371c0c84SKelly YanceyThe 243863edaecSDag-Erling Smørgrav.Fn sbuf_putc 244863edaecSDag-Erling Smørgravfunction appends the character 245863edaecSDag-Erling Smørgrav.Fa c 246863edaecSDag-Erling Smørgravto the 247863edaecSDag-Erling Smørgrav.Fa sbuf 248863edaecSDag-Erling Smørgravat the current position. 249863edaecSDag-Erling Smørgrav.Pp 250863edaecSDag-Erling SmørgravThe 251371c0c84SKelly Yancey.Fn sbuf_trim 252371c0c84SKelly Yanceyfunction removes trailing whitespace from the 253371c0c84SKelly Yancey.Fa sbuf . 254371c0c84SKelly Yancey.Pp 255371c0c84SKelly YanceyThe 256e499b74dSDag-Erling Smørgrav.Fn sbuf_overflowed 257e499b74dSDag-Erling Smørgravfunction returns a non-zero value if the 258e499b74dSDag-Erling Smørgrav.Fa sbuf 259e499b74dSDag-Erling Smørgravoverflowed. 260e499b74dSDag-Erling Smørgrav.Pp 261e499b74dSDag-Erling SmørgravThe 262863edaecSDag-Erling Smørgrav.Fn sbuf_finish 263863edaecSDag-Erling Smørgravfunction null-terminates the 264863edaecSDag-Erling Smørgrav.Fa sbuf 265863edaecSDag-Erling Smørgravand marks it as finished, which means that it may no longer be 266863edaecSDag-Erling Smørgravmodified using 267863edaecSDag-Erling Smørgrav.Fn sbuf_setpos , 268863edaecSDag-Erling Smørgrav.Fn sbuf_cat , 2693393f8daSKenneth D. Merry.Fn sbuf_cpy , 270863edaecSDag-Erling Smørgrav.Fn sbuf_printf 271863edaecSDag-Erling Smørgravor 272863edaecSDag-Erling Smørgrav.Fn sbuf_putc . 273863edaecSDag-Erling Smørgrav.Pp 274863edaecSDag-Erling SmørgravThe 275863edaecSDag-Erling Smørgrav.Fn sbuf_data 276863edaecSDag-Erling Smørgravand 277863edaecSDag-Erling Smørgrav.Fn sbuf_len 278e499b74dSDag-Erling Smørgravfunctions return the actual string and its length, respectively; 279e499b74dSDag-Erling Smørgrav.Fn sbuf_data 280e499b74dSDag-Erling Smørgravonly works on a finished 281863edaecSDag-Erling Smørgrav.Fa sbuf . 282863edaecSDag-Erling Smørgrav.Pp 283863edaecSDag-Erling SmørgravFinally, the 284863edaecSDag-Erling Smørgrav.Fn sbuf_delete 285863edaecSDag-Erling Smørgravfunction clears the 286863edaecSDag-Erling Smørgrav.Fa sbuf 287863edaecSDag-Erling Smørgravand frees its storage buffer if it was allocated by 288863edaecSDag-Erling Smørgrav.Fn sbuf_new . 289863edaecSDag-Erling Smørgrav.Sh NOTES 290863edaecSDag-Erling SmørgravIf an operation caused an 291863edaecSDag-Erling Smørgrav.Fa sbuf 292e499b74dSDag-Erling Smørgravto overflow, most subsequent operations on it will fail until the 293e499b74dSDag-Erling Smørgrav.Fa sbuf 294e499b74dSDag-Erling Smørgravis finished using 295e499b74dSDag-Erling Smørgrav.Fn sbuf_finish 296e499b74dSDag-Erling Smørgravor reset using 297e499b74dSDag-Erling Smørgrav.Fn sbuf_clear , 298e499b74dSDag-Erling Smørgravor its position is reset to a value between 0 and one less than the 299e499b74dSDag-Erling Smørgravsize of its storage buffer using 300863edaecSDag-Erling Smørgrav.Fn sbuf_setpos , 301863edaecSDag-Erling Smørgravor it is reinitialized to a sufficiently short string using 302863edaecSDag-Erling Smørgrav.Fn sbuf_cpy . 303863edaecSDag-Erling Smørgrav.Sh RETURN VALUES 304863edaecSDag-Erling Smørgrav.Fn sbuf_new 305d6479358SDag-Erling Smørgravreturns 306d6479358SDag-Erling Smørgrav.Dv NULL 307d6479358SDag-Erling Smørgravif it failed to allocate a storage buffer, and a pointer to the new 308d6479358SDag-Erling Smørgrav.Fa sbuf 309863edaecSDag-Erling Smørgravotherwise. 310863edaecSDag-Erling Smørgrav.Pp 311863edaecSDag-Erling Smørgrav.Fn sbuf_setpos 312863edaecSDag-Erling Smørgravreturns \-1 if 313863edaecSDag-Erling Smørgrav.Fa pos 314863edaecSDag-Erling Smørgravwas invalid, and zero otherwise. 315863edaecSDag-Erling Smørgrav.Pp 316863edaecSDag-Erling Smørgrav.Fn sbuf_cat , 317863edaecSDag-Erling Smørgrav.Fn sbuf_cpy , 318863edaecSDag-Erling Smørgrav.Fn sbuf_printf , 319371c0c84SKelly Yancey.Fn sbuf_putc , 320863edaecSDag-Erling Smørgravand 321371c0c84SKelly Yancey.Fn sbuf_trim 322863edaecSDag-Erling Smørgravall return \-1 if the buffer overflowed, and zero otherwise. 323863edaecSDag-Erling Smørgrav.Pp 324e499b74dSDag-Erling Smørgrav.Fn sbuf_overflowed 325e499b74dSDag-Erling Smørgravreturns a non-zero value if the buffer overflowed, and zero otherwise. 326e499b74dSDag-Erling Smørgrav.Pp 327863edaecSDag-Erling Smørgrav.Fn sbuf_data 328863edaecSDag-Erling Smørgravand 329863edaecSDag-Erling Smørgrav.Fn sbuf_len 330863edaecSDag-Erling Smørgravreturn 331863edaecSDag-Erling Smørgrav.Dv NULL 332e499b74dSDag-Erling Smørgravand \-1, respectively, if the buffer overflowed. 333863edaecSDag-Erling Smørgrav.Sh SEE ALSO 334863edaecSDag-Erling Smørgrav.Xr printf 3 , 335863edaecSDag-Erling Smørgrav.Xr strcat 3 , 336d68b700aSRuslan Ermilov.Xr strcpy 3 , 337d68b700aSRuslan Ermilov.Xr copyin 9 , 338e05f3134SAndrew R. Reiter.Xr copyinstr 9 , 339e05f3134SAndrew R. Reiter.Xr printf 9 340863edaecSDag-Erling Smørgrav.Sh HISTORY 341863edaecSDag-Erling SmørgravThe 342863edaecSDag-Erling Smørgrav.Nm sbuf 343863edaecSDag-Erling Smørgravfamily of functions first appeared in 34422cbe5e3SDag-Erling Smørgrav.Fx 4.4 . 345863edaecSDag-Erling Smørgrav.Sh AUTHORS 346863edaecSDag-Erling Smørgrav.An -nosplit 347863edaecSDag-Erling SmørgravThe 348863edaecSDag-Erling Smørgrav.Nm sbuf 349863edaecSDag-Erling Smørgravfamily of functions was designed by 350863edaecSDag-Erling Smørgrav.An Poul-Henning Kamp Aq phk@FreeBSD.org 351863edaecSDag-Erling Smørgravand implemented by 352863edaecSDag-Erling Smørgrav.An Dag-Erling Co\(:idan Sm\(/orgrav Aq des@FreeBSD.org . 353e499b74dSDag-Erling SmørgravAdditional improvements were suggested by 354e499b74dSDag-Erling Smørgrav.An Justin T. Gibbs Aq gibbs@FreeBSD.org . 355371c0c84SKelly YanceyAuto-extend support added by 356371c0c84SKelly Yancey.An Kelly Yancey Aq kbyanc@FreeBSD.org . 357863edaecSDag-Erling Smørgrav.Pp 358863edaecSDag-Erling SmørgravThis manual page was written by 359863edaecSDag-Erling Smørgrav.An Dag-Erling Co\(:idan Sm\(/orgrav . 360