summaryrefslogtreecommitdiff
path: root/sys/kern/subr_sbuf.c
Commit message (Expand)AuthorAgeFilesLines
* MFC r349190: Fix typo in r349178.Alexander Motin2019-07-071-1/+1
* MFC r349178: Optimize kern.geom.conf* sysctls.Alexander Motin2019-07-071-0/+15
* sys/kern: adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
* An off-by-one error exists in sbuf_vprintf()'s use of SBUF_HASROOM() when anLawrence Stewart2017-08-181-7/+5
* Implement simple record boundary tracking in sbuf(9) to avoid record splittingLawrence Stewart2017-08-171-2/+10
* Fix whitespace regression accidentally checked in via ^/head@r280149Enji Cooper2017-07-181-1/+1
* Fail the sbuf if vsnprintf(3) fails.Poul-Henning Kamp2015-10-021-0/+4
* sbuf: Process more than one char at a timeConrad Meyer2015-09-251-35/+39
* The minimum sbuf buffer size is 2 bytes (a byte plus a nulterm), assert that.Ian Lepore2015-03-171-2/+4
* Update an sbuf assertion to allow for the new SBUF_INCLUDENUL flag. IfIan Lepore2015-03-161-5/+12
* Add a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags.Ian Lepore2015-03-141-1/+29
* Unbreak the ABI by reverting r268494 until the compat shims are providedPietro Cerutti2014-07-281-16/+7
* Implement Short/Small String Optimization in SBUF(9) and change lengths andPietro Cerutti2014-07-101-7/+16
* Always request zeroed memory, in case we're dumb enough to leak it later.Dag-Erling Smørgrav2013-09-221-2/+2
* A library function shall not set errno to 0.Jaakko Heinonen2013-05-161-2/+3
* Add sbuf_start_section() and sbuf_end_section() functions, which canMikolaj Golub2013-04-111-1/+71
* r222015 introduced a new assertion that the size of a fixed-length sbufRobert Watson2011-08-191-1/+1
* Use memset() instead of bzero() and memcpy() instead of bcopy(), therePoul-Henning Kamp2011-05-171-26/+43
* Don't expect PAGE_SIZE to exist on all platforms (It is a pretty arbitraryPoul-Henning Kamp2011-05-171-27/+33
* Change the length quantities of sbufs to be ssize_t rather than int.Poul-Henning Kamp2011-05-161-7/+9
* Re-add r212370 now that the LOR in powerpc64 has been resolved:Matthew D Fleming2010-09-161-2/+2
* Revert r212370, as it causes a LOR on powerpc. powerpc does a fewMatthew D Fleming2010-09-131-2/+2
* Add missing pointer increment to sbuf_cat.Alexander Kabaev2010-09-111-1/+1
* Replace sbuf_overflowed() with sbuf_error(), which returns any errorMatthew D Fleming2010-09-101-28/+25
* Add a drain function for struct sysctl_req, and use it for a variety ofMatthew D Fleming2010-09-091-2/+2
* Add drain functionality to sbufs. The drain is a function that isMatthew D Fleming2010-09-091-6/+99
* Refactor sbuf code so that most uses of sbuf_extend() are in a newMatthew D Fleming2010-09-091-25/+69
* Use a better #if guard.Matthew D Fleming2010-09-031-1/+1
* Style(9) fixes and eliminate the use of min().Matthew D Fleming2010-09-031-12/+15
* Fix user-space libsbuf build. Why isn't CTASSERT available toMatthew D Fleming2010-09-031-0/+2
* Fix brain fart when converting an if statement into a KASSERT.Matthew D Fleming2010-09-031-1/+1
* Use math rather than iteration when the desired sbuf size is larger thanMatthew D Fleming2010-09-031-5/+9
* Switch to simplified BSD license (with phk's approval), plus whitespaceDag-Erling Smørgrav2008-08-091-29/+45
* Make sbuf_copyin() return the number of bytes copied on success.Poul-Henning Kamp2005-12-231-1/+1
* Make a bunch of malloc types static.Poul-Henning Kamp2005-02-101-1/+1
* Cosmetic adjustment to previous commit: name the second argument toDag-Erling Smørgrav2004-07-091-4/+4
* Have sbuf_bcat() and sbuf_bcpy() take a const void * instead of aDag-Erling Smørgrav2004-07-091-3/+5
* Mechanical whistespace cleanup.Dag-Erling Smørgrav2004-02-171-19/+19
* Use __FBSDID().David E. O'Brien2003-06-111-2/+3
* Copy the va_list in sbuf_vprintf() before passing it to vsnprintf(),Peter Wemm2003-05-251-1/+4
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
* Add the new function "sbuf_done()" which returns non-zero if the sbuf isPoul-Henning Kamp2002-10-041-0/+10
* Add a cast to make this file compile in userland on sparc64 withoutPoul-Henning Kamp2002-09-161-1/+1
* Fix warnings on gcc-3.1+ where __func__ is a const char * instead of aPeter Wemm2002-03-191-2/+2
* Yet a bug with extensible sbufs being marked as OVERFLOWED. This timePoul-Henning Kamp2002-01-241-1/+1
* In certain cases sbuf_printf() and sbuf_vprintf() could mistakelyPoul-Henning Kamp2002-01-221-1/+1
* Replace spaces after #defines with tabs; this makes all #definesKelly Yancey2002-01-091-20/+20
* * Implement SBUF_AUTOEXTEND flag; sbufs created with this flag areKelly Yancey2002-01-061-23/+108
* Calculate whether the sbuf is dynamic *before* bzero()ing theMatthew Dillon2001-12-191-1/+4